Orders
Create, list, and inspect authenticity-check orders.
List orders
Lists the account's orders, newest first. page defaults to 1 and
limit defaults to 10 and can be at most 50.
query Parameters
pageOne-based order result page.
limitRequested order count. Maximum 50.
List orders › Responses
A page of orders.
pagelimitNumber of results requested per page.
totalTotal matching orders before pagination.
Create an order
Creates an authenticity-check order from stable catalog codes and managed photo URLs returned by the photo upload endpoint. Other public or externally hosted photo URLs are rejected.
The chosen answer time must currently be available for the brand/category. Required indexes and per-index photo limits come from the photo-index catalog for the submitted brand/category/model context.
A Test API key requires mock_outcome and immediately creates the order
in the corresponding completed or update-photos state. A Live API
key must omit mock_outcome.
Common domain errors include answer-time-unavailable, photo-index-not-found,
missing-required-photo-indexes, photo-limit-exceeded,
unsupported-photo-url, and mock-outcome-required.
Create an order › Request Body
brand_codeCatalog code returned by the API. Use it unchanged.
category_codeCatalog code returned by the API. Use it unchanged.
external_idOptional client-provided order reference.
answer_timeRequested answer time in minutes from the answer-time catalog.
model_codeOptional model code within the submitted brand/category.
mock_outcomeRequired for Test API keys and rejected for Live API keys. Selects the immediate simulated Test-order state and outcome.
Create an order › Responses
Order created.
idLegitGrails order identifier.
external_idSubmitted alias, or null.
order_numberOrder reference for support communication.
statusInitial public order state.
due_dateExpected completion time, or null when unavailable.
Get an order
Retrieves an order by its LegitGrails UUID or the external_id
supplied at creation.
The response includes requested-photo details and completed-result
fields when applicable. English outcome_reasons and localized
outcome_reasons_locale are returned for authentic/fake outcomes;
outcome_indexes is returned only for a fake outcome. Localized values
fall back to English.
path Parameters
idLegitGrails order UUID or an external_id supplied when creating the order.
query Parameters
localeLocale for *_locale fields. English is always returned separately in
the corresponding non-suffixed field. Missing translations fall back
to English.
Get an order › Responses
Order details.
idstatusCurrent public order state. completed and error are terminal; an
error order has no authentication outcome.
outcomeFinal outcome, or null before one is assigned.
outcome_localeLocalized outcome label with English fallback, or null.
delayeddue_dateupdated_atcertificate_urlCertificate URL for a completed order, when available.
outcome_reasonsEnglish reasons, present for authentic/fake completed outcomes.
outcome_reasons_localeLocalized reasons aligned with outcome_reasons, with per-item English fallback.
outcome_indexesUnique affected index codes, present only for fake outcomes.
Requested photo updates for the order.
Submit requested photos
Resolves the current photos_to_resubmit request for an order selected
by LegitGrails UUID or external_id.
Every requested index_code must appear. For each entry, supply exactly
one of url or is_unable_to_provide: true. Multiple URL entries may
use the same index up to its max_photos; an unable-to-provide entry
must be the sole entry for its index. Every URL must be a managed URL
returned by POST /photos; other URLs are rejected.
Acceptance is reported with HTTP 202 and status: accepted.
path Parameters
idLegitGrails order UUID or an external_id supplied when creating the order.
Submit requested photos › Request Body
Entries resolving every requested index. Repeated URL entries for
one index are allowed up to its max_photos.
noteOptional note about the submitted photos.
Submit requested photos › Responses
The complete photo-update response was accepted.
idstatus