Admin API / Types
StorefrontOrigin
ObjectA storefront origin that the owner claims, such as https://shop.example.com/.
A check sends one GET to wellKnownUrl over https on port 443. It follows no redirect, stops after 5 seconds and reads at most 1 KiB of the body. The check passes when the host answers 200 with verificationToken as the body. Whitespace around the token is ignored.
VERIFIED makes the origin the Marketplace API Marketplace.url and the store link in emails. It does not change deep links, sign-in or the checkout host.
The token is public. Whoever controls the host later can serve it and keep the origin VERIFIED, so release the origin before you give up the host.
type StorefrontOriginFields
| Field | Type | Description |
|---|---|---|
lastCheckedAt | DateTime | When the latest check started. Null before the first check. |
lastFailure | StorefrontOriginFailure | Why the latest check did not pass. Null when it passed or when no check ran. No status code, header or body from the host is returned. Requires the OWNER role or higher.Requires a client key with one of these scopes: admin:storefront:manage |
lastVerifiedAt | DateTime | When a check last passed. Null when no check passed. |
origin | URL! | The claimed origin as a URL with an empty path, such as https://shop.example.com/. |
status | StorefrontOriginStatus! | Whether the host served the verification token. The status tells nothing else about the host. |
verificationToken | String | The token that the host must serve as the body of wellKnownUrl. Requires the OWNER role or higher.Requires a client key with one of these scopes: admin:storefront:manage |
wellKnownUrl | URL! | The URL that a check reads, such as https://shop.example.com/.well-known/district-storefront. |