{"components":{"headers":{"FulfillmentApiVersion":{"description":"The version this answer was served as: the month you requested, or the account's default when you sent no `WHCC-API-Version`. Absent on the `400` that refuses an unsupported version.\n","schema":{"example":"2026-10","type":"string"}},"FulfillmentApiVersionLatest":{"description":"The newest version the API serves, whatever version this answer was served as. Compare it with `WHCC-API-Version` to learn whether a newer one exists.\n","schema":{"example":"2026-10","type":"string"}},"FulfillmentApiVersionRequested":{"description":"The `WHCC-API-Version` you sent, echoed back. Sent only when the request carried the header, so its presence says you asked for a version rather than defaulted to one.\n","schema":{"example":"2026-10","type":"string"}},"FulfillmentEventSubscriptionETag":{"description":"Opaque validator for the subscription in this response. Send it back unaltered as `If-Match` on `PUT /event-subscriptions/{id}` to have the replace refused rather than written if the subscription's configuration differs from what you read. It is computed from the values of `destination`, `eventTypes`, `description` and `status`, and from nothing else: `modifiedAt` and `lastDeliveryError` can change while it stays the same, so deliveries and secret rotations leave it as it was. Absent on the rare response that could not read one; the subscription is still complete, but a replace sending `If-Match` cannot be made against that read.\n","schema":{"example":"\"C2B556BFD059C263B72B8FDE28E8C4FF0B1A7261AD5866DF1C69EEC00481FABE\"","type":"string"}},"FulfillmentResponseTime":{"description":"Server-side response time","schema":{"example":"12.34ms","type":"string"}},"FulfillmentRetryAfter":{"description":"Seconds to wait before sending the same request again.","schema":{"example":5,"minimum":1,"type":"integer"}},"FulfillmentShippingETag":{"description":"Opaque validator for the shipping state in this response. Send it back unaltered as `If-Match` when changing the order's shipping. Sent only when a `changeable` member is `true`.\n","schema":{"example":"W/\"7c9a1f-2026-09-06\"","type":"string"}},"FulfillmentShippingPreviewETag":{"description":"The order's **current** validator -- the same one `GET /orders/{id}/shipping` hands out, and not one the previewed change would produce. This operation reads no `If-Match` and moves no validator; this is here so you can send it as the write's `If-Match` and write exactly what you previewed. Absent on the rare response the upstream store issued none for.\n","schema":{"example":"W/\"7c9a1f-2026-09-06\"","type":"string"}},"FulfillmentVary":{"description":"Names `WHCC-API-Version`, because the version you send selects the version that answers. Any other header an answer varies on is listed alongside it.\n","schema":{"example":"WHCC-API-Version","type":"string"}}},"parameters":{"FulfillmentApiVersion":{"description":"The API version to answer as: a month, such as `2026-10`. Omit the header and you are served the account's default version, currently `2026-10`. Any value other than a supported month -- an unsupported month, a month in the wrong form, an empty value -- is refused `400` before anything else is decided, with `type` `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the months you may send. The refusal is the same whether or not the request is authenticated.\n\nEvery answer to a request served a version says which one in `WHCC-API-Version`, the newest in `WHCC-API-Version-Latest`, and, when you sent the header, what you sent in `WHCC-API-Version-Requested`. The refusal carries none of them.\n","in":"header","name":"WHCC-API-Version","required":false,"schema":{"example":"2026-10","pattern":"^\\d{4}-\\d{2}$","type":"string"}},"FulfillmentEventSubscriptionId":{"description":"Event subscription identifier: the literal prefix `SUB_` followed by fourteen letters or digits. Case-sensitive. An identifier of any other shape is not found.\n","in":"path","name":"id","required":true,"schema":{"example":"SUB_7Kq2mZ1x9PdR4t","pattern":"^SUB_[A-Za-z0-9]{14}$","type":"string"}},"FulfillmentIdempotencyKey":{"description":"Make this request safe to retry. Repeat the same key with the exact same body and the operation is not run a second time: you are handed back what it produced, including the signing secret a create or a rotation shows exactly once. Repeat the same key with a different body and the request is refused, `409 idempotency_key_conflict`, before anything is written; use a new key for a different request. Omit the header and every call is independent, as it was before this header existed.\n\n**What is replayed is the secret, not a frozen copy of the response.** The resource travels with the repeat as it stands at that moment, so a subscription you have since changed with `PUT /api/v1/fulfillment/event-subscriptions/{id}` replays with the secret it was issued alongside its *updated* fields. A subscription you have since deleted is not recreated, and a rotation on one is not repeated: the repeat is refused `409 idempotency_key_conflict`, because minting a second subscription, or rotating a secret, under a key that has already answered once would be the duplicate this header exists to prevent.\n\n**A create's key and a rotation's key on the same subscription never collide.** Each operation claims its own namespace, so replaying one never answers with the other's secret.\n\n**Retention differs by operation.** A create's key is kept for 7 days, a rotation's for 6. A retry arriving after its key's retention has passed is answered as a fresh request rather than replayed.\n\n**A replay never hands back a retired secret.** Rotating moves a subscription's signing secret on, so a key claimed before a rotation stores one the subscription may no longer sign with. Such a key is refused `409 idempotency_key_conflict` rather than replayed — a secret you could install and find nothing verified by it is the worse of the two answers. This applies to a create's key as much as a rotation's.\n","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"pattern":"^[\\x21-\\x7E]{1,255}$","type":"string"}},"FulfillmentOrderId":{"description":"Order identifier. Accepts an order ID string or a numeric order number.","in":"path","name":"id","required":true,"schema":{"type":"string"}}},"responses":{"FulfillmentBadRequest":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"Bad request: a malformed or unsupported request. Also the answer when `WHCC-API-Version` names a version this API does not serve, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"FulfillmentEventSubscriptionNotFound":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"No such subscription on your account. One answer covers both \"no subscription has this identifier\" and \"this one belongs to someone else\", deliberately: two would let a caller enumerate other accounts' subscription identifiers.\n"},"FulfillmentForbidden":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"Forbidden -- missing or insufficient authentication/scope. On an operation not marked `x-whcc-api-key: true`, a credential carrying only `apikey` gets this response: those operations require `client` or `superadmin`. The `detail` names the set the operation accepts.\n"},"FulfillmentMethodNotAllowed":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"HTTP method not allowed for this path. The `Allow` response header names the method(s) this path does support (varies by path -- e.g. `GET` for the read-only routes, `POST` for the mint route).\n","headers":{"Allow":{"description":"Comma-separated list of methods this path supports.","example":"GET","schema":{"type":"string"}}}},"FulfillmentNotFound":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"Resource not found"},"FulfillmentReadTimedOut":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"The request took too long to answer. It only reads, so nothing was changed and it is safe to send again: wait the number of seconds `Retry-After` gives first.\n","headers":{"Retry-After":{"$ref":"#/components/headers/FulfillmentRetryAfter"}}},"FulfillmentShippingBadGateway":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentAnyShippingProblemDetails"}}},"description":"The shipping resource could not be read. The failure is in the service behind this one rather than in this one, so your order is unchanged and the request is safe to repeat.\n\n**A `code` is present when that service said what went wrong** -- `read-failed` or `unhandled-error`, relayed under this status because the failure is not this service's. Its absence means this service could not tell what happened, which is a different thing and is why the two are distinguishable rather than merged.\n"},"FulfillmentShippingNotFound":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentAnyShippingProblemDetails"}}},"description":"**Two shapes, told apart by whether `code` is present.** No `code` means no such order on your account -- the same answer `GET /orders/{id}` gives, and deliberately identical so that ownership reads the same everywhere in this document. A `code` is a refusal from the service behind this one: `order-not-found`, or `shipment-not-found` where the order exists but has no live shipment record. On `GET /orders/{id}/shipping`, a pickup order and an unshipped studio order answer `200` instead.\n"},"FulfillmentShippingPreviewBadGateway":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentAnyShippingProblemDetails"}}},"description":"The change could not be previewed. The failure is in the service behind this one rather than in this one, so your order is unchanged -- nothing was going to be written in any case -- and the request is safe to repeat.\n\n**A `code` is present when that service said what went wrong** -- `read-failed` or `unhandled-error`, relayed under this status because the failure is not this service's. Its absence means this service could not tell what happened, which is a different thing and is why the two are distinguishable rather than merged.\n\n⚠️ **`read-failed` here also covers a tax that could not be calculated for the address you asked about**, including an address the tax service will not accept. The preview settles the same money the change would, so a tax it cannot compute is a preview it cannot answer. One that keeps failing on the same address, and succeeds on others, is telling you something about that address rather than about this service.\n"},"FulfillmentShippingUpstreamConflict":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}}},"description":"A property of the order rather than of your request, so the identical request will keep being refused until the order changes. Read `code`.\n"}},"schemas":{"CatalogConfigurationField":{"properties":{"constraints":{"$ref":"#/components/schemas/constraints"},"default":{"description":"The value that applies when you send none. Present when the product declares one, absent when it does not -- an absent default is not the same as an empty one.","type":"string"},"description":{"description":"A short note about this decision. At most 500 characters.","maxLength":500,"type":"string"},"field":{"description":"The machine-readable code for this decision. It is the key you send under `selections`, and the name any issue about this decision will report -- so you never have to translate between what you read and what you send.","type":"string"},"kind":{"$ref":"#/components/schemas/Model42"},"name":{"description":"The decision's display name, ready to label a form control.","type":"string"},"required":{"description":"Whether this decision must be made. The BASELINE answer, before any of your other selections are taken into account: a rule can make a required field inapplicable.","type":"boolean"},"unit":{"description":"The unit the constraints are expressed in. `in` is inches.","type":"string"},"values":{"$ref":"#/components/schemas/values"}},"required":["field","name","required","kind"],"type":"object"},"CatalogFieldValue":{"properties":{"description":{"description":"A short note about this value, when one is available. At most 500 characters.","maxLength":500,"type":"string"},"enabled":{"description":"Whether this value can be offered. Grey out a disabled value rather than letting a customer pick something that will be rejected.","type":"boolean"},"height":{"description":"The finished size this value produces, in inches. `width` and `height` are present together or not at all, and they describe the CANONICAL box -- `orientation` applies the swap, exactly as the product-level `width`/`height` read.","type":"number"},"id":{"description":"The value to send. Compare and send it verbatim.","type":"string"},"name":{"description":"The value's display name.","type":"string"},"width":{"description":"The finished size this value produces, in inches. `width` and `height` are present together or not at all, and they describe the CANONICAL box -- `orientation` applies the swap, exactly as the product-level `width`/`height` read.","type":"number"},"workflowChange":{"$ref":"#/components/schemas/workflowChange"}},"required":["id","name","enabled"],"type":"object"},"CatalogProduct":{"properties":{"actions":{"$ref":"#/components/schemas/Model9"},"aspect":{"$ref":"#/components/schemas/aspect"},"bleed":{"description":"Bleed in inches. Compose artwork to this rather than guessing.","type":"number"},"category":{"$ref":"#/components/schemas/category"},"completion":{"$ref":"#/components/schemas/completion"},"description":{"description":"A short marketing description, when one is available for this product.","type":"string"},"height":{"description":"Finished height in inches. Present only with `width`.","type":"number"},"kind":{"$ref":"#/components/schemas/kind"},"name":{"description":"The product's display name.","type":"string"},"quantity":{"$ref":"#/components/schemas/quantity"},"ref":{"description":"The product's stable, readable identifier, and the one you pass back to every other endpoint. It is CALLER-RELATIVE, not globally unique: a product restricted to your organization wins the reference for you and the general product wins it for everyone else, which is deliberate. A product id or slug is also accepted wherever a ref is, but neither is published -- store the ref.","type":"string"},"requirements":{"$ref":"#/components/schemas/requirements"},"resolution":{"description":"Required image resolution in DPI.","type":"number"},"sizedBy":{"$ref":"#/components/schemas/sizedBy"},"width":{"description":"Finished width in inches. Present only with `height`.","type":"number"}},"required":["ref","name","completion","actions"],"type":"object"},"CatalogProductDetail":{"properties":{"actions":{"$ref":"#/components/schemas/Model43"},"aspect":{"$ref":"#/components/schemas/aspect"},"bleed":{"description":"Bleed in inches. Compose artwork to this rather than guessing.","type":"number"},"category":{"$ref":"#/components/schemas/category"},"completion":{"$ref":"#/components/schemas/completion"},"configuration":{"$ref":"#/components/schemas/configuration"},"description":{"description":"A short marketing description, when one is available for this product.","type":"string"},"height":{"description":"Finished height in inches. Present only with `width`.","type":"number"},"kind":{"$ref":"#/components/schemas/kind"},"name":{"description":"The product's display name.","type":"string"},"quantity":{"$ref":"#/components/schemas/quantity"},"ref":{"description":"The product's stable, readable identifier, and the one you pass back to every other endpoint. It is CALLER-RELATIVE, not globally unique: a product restricted to your organization wins the reference for you and the general product wins it for everyone else, which is deliberate. A product id or slug is also accepted wherever a ref is, but neither is published -- store the ref.","type":"string"},"requirements":{"$ref":"#/components/schemas/requirements"},"resolution":{"description":"Required image resolution in DPI.","type":"number"},"sizedBy":{"$ref":"#/components/schemas/sizedBy"},"width":{"description":"Finished width in inches. Present only with `height`.","type":"number"}},"required":["ref","name","completion","configuration","actions"],"type":"object"},"CatalogProductList":{"properties":{"nextCursor":{"description":"Pass back as `cursor` to fetch the next page of `GET /api/v1/catalog/products`. ABSENT on the final page, never null.","type":"string"},"products":{"$ref":"#/components/schemas/Model10"},"totalCount":{"description":"How many products match, counted after your own visibility is applied -- so it never hints at products restricted to another organization.","type":"integer"}},"required":["products","totalCount"],"type":"object"},"FulfillmentAcceptedTestEvent":{"description":"A test event that has been queued for delivery. The attempt happens afterwards on the ordinary pipeline and may ultimately fail, so nothing here reports that your endpoint received anything.\n","properties":{"eventType":{"description":"The dotted type that was queued, echoing what you sent.","example":"order.shipped","type":"string"},"notifyUid":{"description":"The correlation handle. Quote it when asking WHCC where a test event went -- it is what identifies this notification everywhere inside WHCC, including the delivery log.\n","example":84512203,"type":"integer"},"orderNumber":{"description":"The order number the webhook carries if it is delivered, or **null** where it will carry none. It is null for `order.rejected`, because an image-rejection notification carries no order number in real life either; and it is null for an order named by `confirmationId` that has not been assigned one yet, for the same reason -- there is no number for the delivery to carry.\n\nWithout `confirmationId` it is the synthetic order's, drawn from a reserved band above every real order number, so it can never collide with one of your orders. With one it is that order's own.\n","example":900041823,"nullable":true,"type":"integer"},"subscriptionId":{"description":"The subscription named in the request, echoed back. It is the one this request was validated against -- ownership, `eventTypes` and the signing-secret pre-flight -- and it is **not** the only destination: every subscription on the account receives the event, whatever its status. No legacy consumer callback receives it.\n","example":"SUB_7Kq2mZ1x9PdR4t","type":"string"}},"required":["notifyUid","eventType","subscriptionId","orderNumber"],"type":"object"},"FulfillmentAccount":{"properties":{"accountId":{"description":"Account identifier in JWT format. Distinct from `id`: this is the form carried in access tokens and used across WHCC services.\n","example":"whcc_88888","type":"string"},"accountLabel":{"description":"UI-display value for the account, unique per brand.","example":"88888","type":"string"},"addresses":{"properties":{"billing":{"allOf":[{"$ref":"#/components/schemas/FulfillmentAddress"}],"nullable":true},"shipping":{"$ref":"#/components/schemas/FulfillmentAddress"}},"type":"object"},"brand":{"description":"Brand name resolved from brands table.","example":"WHCC","type":"string"},"contact":{"description":"Contact person named on the account's finance record. Null when the account has no finance record.","example":"Doc Brown","nullable":true,"type":"string"},"emails":{"example":["doc@example.com"],"items":{"format":"email","type":"string"},"type":"array"},"financials":{"properties":{"activityReports":{"additionalProperties":{"format":"uri","type":"string"},"description":"Map of year to activity report URL","nullable":true,"type":"object"},"payment":{"$ref":"#/components/schemas/FulfillmentAccountPayment"},"paymentTerms":{"deprecated":true,"description":"Deprecated -- use `financials.payment.terms` instead. Raw payment-terms code as recorded in the source system, only trimmed (e.g. `\"COD\"`, `\"NET 30\"`). For a display-friendly normalized form, use `payment.terms`. Will be removed in a future major version.\n","example":"NET 30","nullable":true,"type":"string"},"tax":{"allOf":[{"$ref":"#/components/schemas/FulfillmentAccountTax"}],"nullable":true}},"required":["payment"],"type":"object"},"id":{"description":"The account's identifier: an opaque, stable id when the account has one, otherwise the account number as a string -- the same contract as an order's `id`. The opaque form is recognisable by its `ACCT_` prefix, though both forms address this account. Distinct from `accountId`.\n","example":"ACCT_vY9KecqAFCwFuY","type":"string"},"identity":{"allOf":[{"$ref":"#/components/schemas/FulfillmentAccountIdentity"}],"nullable":true},"name":{"description":"Account/studio name.","example":"Brown Photography","type":"string"},"phone":{"example":"555-867-5309","nullable":true,"type":"string"},"tags":{"description":"Account tags derived from clientTypes flags, sorted alphabetically. Boolean flags appear as simple strings (e.g. \"charity\", \"csp\", \"enterprise\", \"gallery\", \"hive\", \"influencer\", \"partner\", \"project\", \"speaker\"). earlyAccess appears as \"earlyAccess:{value}\" when set (always last).\n","example":["gallery","partner"],"items":{"type":"string"},"type":"array"}},"required":["id","accountId","accountLabel","brand","name","emails","tags","addresses","financials"],"type":"object"},"FulfillmentAccountIdentity":{"description":"This account's identifiers in the namespace of the identity system that issues its logins and API keys. The whole object is null when the account has no record there. When it is present, `organizationId` is always set; `userId` may be null for a caller whose credential does not identify a user.\nThe account's own identifier is the top-level `id`, not a member of this object. That system holds it as the organization's external id, so use `id` when addressing this account by external id there.\n","properties":{"organizationId":{"description":"Identity-system organization identifier. This is the organization that owns the account's API keys.\n","example":"org_01KVXFEJ9JA6YQXS15XA2GNH3T","type":"string"},"userId":{"description":"The identity-system user recorded for this account. Exactly one user is recorded per account, so this is the account's user -- not necessarily the person who made this request, and not a list of everyone who can sign in. It does not indicate whether the account signs in through that system today.\nNull when the credential used for this request does not identify a user. Treat it as absent rather than assuming it is always populated, even if it is populated on every response you currently observe.\n","example":"user_01KVXFEJ9JA6YQXS15XA2GNH3T","nullable":true,"type":"string"}},"required":["organizationId","userId"],"type":"object"},"FulfillmentAccountPayment":{"description":"The account's payment profile -- terms, vault state, saved methods, and what's required of the account. Suggested client behavior per `status`:\n\n  * status=ok, methods non-empty: render the saved methods, default\n    first\n  * status=ok, methods empty: prompt to add a payment method (the\n    customer is enrolled with the payment provider but has no methods\n    on file)\n  * status=no_customer: prompt to add a payment method (same UX as\n    enrolled-but-empty)\n  * status=unavailable: show a soft warning (\"we couldn't load saved\n    payment methods, please try again\"); allow the user to proceed and\n    add a fresh method\n  * status=not_requested: methods were not loaded because the caller\n    did not request them via `?expand=paymentMethods`. Re-fetch with\n    the expand parameter when you actually need to render saved cards.\n","properties":{"actions":{"allOf":[{"$ref":"#/components/schemas/FulfillmentPaymentActions"}],"description":"Always `null` on this (read-only) operation -- minting a launch token is a side effect and has its own dedicated endpoint, `POST /account/payment-method-actions`, whose `200` response body is shaped exactly like this field used to be. This field is kept for schema stability but never populated by `GET /account`.\n","nullable":true},"methods":{"description":"Saved payment methods. Always present; may be empty (`status=no_customer`, `status=unavailable`, and `status=not_requested` always carry an empty array). When `status=ok`, ordering is deterministic: default first, then by descending expiration year and month (for cards), then by ascending token.\n","items":{"$ref":"#/components/schemas/FulfillmentPaymentMethod"},"type":"array"},"provider":{"description":"Lowercase identifier of the payment provider that holds these methods. Free-form string (not an enum) so additional providers can be added without a contract change.\n","example":"braintree","type":"string"},"requirements":{"$ref":"#/components/schemas/FulfillmentAccountPaymentRequirements"},"status":{"description":"Open string (deliberately not an `enum` so the API can introduce new statuses without a breaking schema change). Known values: `ok`, `no_customer`, `unavailable`, `not_requested`. Clients should treat any unknown value as `unavailable` (i.e. methods cannot be relied on for checkout). See the parent `AccountPayment` description for suggested client behavior per known value.\n","example":"not_requested","type":"string"},"terms":{"description":"Display-friendly payment terms for the account. Known values: \"Net 7\", \"Net 30\", \"Net 60\", \"Per Order Credit Card\", \"Weekly Credit Card\". Null when no billing record exists for the account. Open string (not an enum) so additional terms can be added without a contract change. Unaffected by requirements.enforcementExemption: an exemption suppresses the effective requirement booleans, but terms remains the account's underlying billing arrangement, so an exempt COD account still reports \"Per Order Credit Card\".\n","example":"Net 7","nullable":true,"type":"string"}},"required":["provider","status","terms","methods","requirements","actions"],"type":"object"},"FulfillmentAccountPaymentRequirements":{"description":"Effective account requirements after account-wide exemptions. Always populated, with or without paymentMethods expansion. These are independent signals -- an account can need a card on file (for weekly automated billing) without needing one collected at checkout, and vice versa. Enforce a missing saved card only when authoritative is true, enforcementExemption is null, cardOnFile is true, payment.status is ok or no_customer, and no card method exists.\n","properties":{"authoritative":{"description":"Whether billing classification or an explicit account-wide exemption supports these requirements. Independent of payment.status. If false, the booleans are compatibility defaults and must not block or hold. During rolling deployment, treat missing or unknown authority as non-authoritative and fail open.\n","example":true,"type":"boolean"},"cardAtCheckout":{"description":"Whether the account must collect a credit card during the checkout flow rather than being invoiced. True for accounts settled per-order; false for accounts on net terms or with an account-wide enforcement exemption.\n","example":false,"type":"boolean"},"cardOnFile":{"description":"Whether the account must keep a card vaulted with the payment provider. True for accounts that are auto-charged (per-order or on a recurring weekly cadence); false for accounts that pay by check or other manual settlement, or have an account-wide enforcement exemption.\n","example":true,"type":"boolean"},"enforcementExemption":{"description":"Open account-wide payment-enforcement exemption code; null means none. Known codes: internal_account, test_account. Any non-null code, including an unknown future code, means exempt: authoritative is true and both effective requirement booleans are false. Consumers need no account-number list.\n","example":"internal_account","minLength":1,"nullable":true,"type":"string"}},"required":["cardAtCheckout","cardOnFile","authoritative","enforcementExemption"],"type":"object"},"FulfillmentAccountTax":{"description":"Sales-tax info for the account. Null on the parent when the account has no billing record on file or no tax data has been configured.\n","properties":{"exemptCertificate":{"allOf":[{"$ref":"#/components/schemas/FulfillmentExemptCertificate"}],"nullable":true},"taxable":{"description":"Whether sales tax will be charged on this account's orders. The underlying tax-schedule classification is intentionally not surfaced -- consumers should treat this as the single source of truth for \"will tax appear on the invoice?\".\n","example":true,"type":"boolean"}},"required":["taxable","exemptCertificate"],"type":"object"},"FulfillmentAddress":{"description":"A postal address as this API reads it back, wherever one appears -- an account's shipping and billing addresses and a shipment's destination.\n\n**Five members are carried under two names.** `attn`, `addr1`, `addr2`, `zip` and `country` are the names the rest of the WHCC API uses, and are the same names this document's `ShipToAddress` already uses; `attention`, `line1`, `line2`, `postalCode` and `countryCode` are the names this schema has always used. Each pair is one value emitted twice and always identical, so reading either name reads the same address. Read those names in new code: the older spelling is deprecated and will be removed in the next major version. `name`, `city` and `state` are spelled the same in both and appear once.\n\nThis is a read-only shape -- nothing in this API accepts an `Address` as input. The address you can write is `ShipToAddressWrite`, on `PUT /orders/{id}/shipping`.\n","properties":{"addr1":{"description":"First address line. Same value as the deprecated `line1`.\n","example":"742 Evergreen Terrace","type":"string"},"addr2":{"description":"Second address line. Same value as the deprecated `line2`.\n","example":"Suite 200","nullable":true,"type":"string"},"attention":{"deprecated":true,"description":"Deprecated -- use `attn` instead. The same value, under the name this schema used before it converged on the rest of the WHCC API's. Will be removed in a future major version.\n","example":"Doc Brown","nullable":true,"type":"string"},"attn":{"description":"Attention line. Same value as the deprecated `attention`.\n","example":"Doc Brown","nullable":true,"type":"string"},"city":{"example":"Springfield","type":"string"},"country":{"description":"ISO country code. Same value as the deprecated `countryCode`.\n","example":"US","type":"string"},"countryCode":{"deprecated":true,"description":"Deprecated -- use `country` instead. The same value, under the name this schema used before it converged on the rest of the WHCC API's. Will be removed in a future major version.\n","example":"US","type":"string"},"line1":{"deprecated":true,"description":"Deprecated -- use `addr1` instead. The same value, under the name this schema used before it converged on the rest of the WHCC API's. Will be removed in a future major version.\n","example":"742 Evergreen Terrace","type":"string"},"line2":{"deprecated":true,"description":"Deprecated -- use `addr2` instead. The same value, under the name this schema used before it converged on the rest of the WHCC API's. Will be removed in a future major version.\n","example":"Suite 200","nullable":true,"type":"string"},"name":{"description":"Studio name (shipment addresses)","example":"Brown Photography","nullable":true,"type":"string"},"postalCode":{"deprecated":true,"description":"Deprecated -- use `zip` instead. The same value, under the name this schema used before it converged on the rest of the WHCC API's. Will be removed in a future major version.\n","example":"65801","type":"string"},"state":{"example":"MO","type":"string"},"zip":{"description":"Postal code. Same value as the deprecated `postalCode`.\n","example":"65801","type":"string"}},"required":["addr1","line1","city","state","zip","postalCode","country","countryCode"],"type":"object"},"FulfillmentAddressValidationProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"invalidParams":{"description":"One entry per offending member, except that members this service does not read past the fifth are counted in a single entry on the object.\n","items":{"$ref":"#/components/schemas/FulfillmentInvalidParam"},"type":"array"}},"required":["invalidParams"],"type":"object"}],"description":"RFC 7807 Problem Details for an address this service refused locally, before anything was sent or written.\n\nIt carries no `code`: what you branch on is `invalidParams`, which names every offending member in one answer so a single round trip fixes them all. Members this service does not read are named for the first five only, each name truncated past 64 characters, followed by one entry on `shipTo` that counts the rest.\n"},"FulfillmentAnyShippingProblemDetails":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}],"description":"Either shape a refusal on the shipping routes can take, told apart by whether `code` is present: with a `code` the service behind this one decided it and named which rule; without one, this service refused locally or could not tell what happened.\n\n⚠️ `anyOf`, not `oneOf`. `ShippingProblemDetails` `allOf`-extends `ProblemDetails`, which sets no `additionalProperties: false`, so a body carrying `code` satisfies both branches -- and `oneOf` means exactly one, so a perfectly valid refusal would fail validation in a generated client.\n"},"FulfillmentBillingLineItem":{"description":"One billed line of an order.\n\nAs with `financials` itself, each amount is carried twice while a convergence is under way: `amounts` is the shape used everywhere else in this document, and the decimal strings beside it are deprecated. The currency is the order's, and is on each `amounts` member.\n","properties":{"amounts":{"description":"This line's unit price and line total. Prefer these over the deprecated decimal strings alongside them.\n","properties":{"price":{"$ref":"#/components/schemas/FulfillmentMoney"},"total":{"$ref":"#/components/schemas/FulfillmentMoney"}},"required":["price","total"],"type":"object"},"description":{"example":"10x10 Image Box","type":"string"},"price":{"deprecated":true,"description":"Deprecated -- use `amounts.price` instead. Unit price, formatted decimal, e.g. \"0.50\". Still emitted, unchanged; it will be removed in a future major version.\n","example":"135.80","type":"string"},"quantity":{"example":1,"type":"integer"},"sku":{"example":"1048210","type":"string"},"total":{"deprecated":true,"description":"Deprecated -- use `amounts.total` instead. Line total (quantity x price), formatted decimal, e.g. \"5.00\". Still emitted, unchanged; it will be removed in a future major version.\n","example":"135.80","type":"string"}},"required":["sku","description","quantity","price","total","amounts"],"type":"object"},"FulfillmentCancelActions":{"description":"A cancel token, when it stops being honoured, and the eligibility answer it was minted against. The snapshot travels with the token so a caller showing a confirm button has the promise and the answer the promise was made about from a single read, taken at a single instant.\n","properties":{"cancelEligibility":{"$ref":"#/components/schemas/FulfillmentCancelEligibility"},"expiresAt":{"description":"When the token stops being honoured -- 300 seconds after it was minted. Past this, redemption is `422 cancel_token_expired`.\n","example":"2026-02-07T06:28:27.393-06:00","type":"string"},"token":{"description":"Send this back as `cancelToken` in the `POST /orders/{id}/cancellation` body. Opaque: its contents are this service's own and no other party mints or verifies it. Usable exactly once.\n","example":"eyJvcmRlcklkIjoiRk9fQnYzakw4c041eFc2aFpmIn0.k7bR3xQ9pT2mN5wY","type":"string"}},"required":["token","expiresAt","cancelEligibility"],"type":"object"},"FulfillmentCancelActionsRequest":{"additionalProperties":false,"description":"This operation takes its input from the path and the caller's identity, so there is nothing to send. The body may be omitted entirely or sent as `{}`; any key is rejected with `400` rather than ignored.\n","type":"object"},"FulfillmentCancelEligibility":{"description":"Whether this order is eligible for cancellation, and when it is not, why. This is the same answer the cancellation request enforces, so it is not merely advisory.\n","properties":{"eligible":{"description":"True if the order can still be canceled.","example":false,"type":"boolean"},"ineligibleAt":{"description":"When the order became ineligible - when it was canceled, when the cancellation was requested, or when it reached the status named in `status`. Null when eligible is true, and null for not_a_cancelable_kind and order_not_found, which have no such moment.\n","example":"2026-02-07T06:23:27.393-06:00","nullable":true,"type":"string"},"reason":{"allOf":[{"$ref":"#/components/schemas/FulfillmentCancelIneligibilityReason"}],"description":"Why the order cannot be canceled. Null when eligible is true.","nullable":true},"status":{"description":"The order status that put the order past the point of cancellation. Present only when reason is order_completed; null for every other reason and when eligible is true.\n","example":"Premium Packaging","nullable":true,"type":"string"}},"required":["eligible","reason","status","ineligibleAt"],"type":"object"},"FulfillmentCancelIneligibilityReason":{"description":"Why an order may not be canceled. At most one reason is reported, and an\norder that is already canceled says so rather than reporting how far\nproduction got. Modeled as an open string (deliberately not an `enum`)\nso new reasons can be introduced without a breaking schema change;\nclients should treat any unknown value as a generic refusal.\n\n- order_not_found: no order with this identifier belongs to the caller.\n- already_canceled: the order has already been canceled.\n- cancellation_already_requested: a cancellation has already been asked for.\n- not_a_cancelable_kind: remakes cannot be canceled here.\n- order_completed: the order reached a point past which it can no longer be canceled; see `status` and `ineligibleAt`.\n","example":"order_completed","type":"string"},"FulfillmentCancelTokenProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"code":{"description":"Stable machine-readable identifier for the refusal. Absent when a `400` was a malformed body rather than a refused token.\n","enum":["cancel_token_invalid","cancel_token_expired","cancel_token_already_used"],"example":"cancel_token_expired","type":"string"}},"type":"object"}],"description":"RFC 7807 Problem Details for a refused cancel token. It carries no `cancelEligibility`, because none of these refusals is an answer about the order: an expired or already-spent token says nothing about whether the order can still be canceled, and the answer to all three is to request eligibility again.\n"},"FulfillmentCancellationInProgressProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"code":{"description":"Stable machine-readable identifier for the refusal.","enum":["cancellation_in_progress"],"example":"cancellation_in_progress","type":"string"}},"required":["code"],"type":"object"}],"description":"RFC 7807 Problem Details for a cancellation refused because another attempt for the same order is still running. Nothing was done to the order by this request; once that attempt finishes, a repeat is answered `200` with the outcome it reached.\n"},"FulfillmentCancellationOutcome":{"description":"Where the order ended up. The two states are exhaustive: a request that\nwas not refused ends in exactly one of them.\n\n- cancellation_requested: the ask is recorded and a person is completing it. The order shows `Request to Cancel Order`.\n- canceled: the order is voided and the money is on its way back.\n","enum":["cancellation_requested","canceled"],"example":"cancellation_requested","type":"string"},"FulfillmentCancellationProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"cancelEligibility":{"allOf":[{"$ref":"#/components/schemas/FulfillmentCancelEligibility"}],"description":"The order's eligibility answer, in exactly the encoding order detail carries at the same property name -- the refusal and the displayed flag are one derivation, not two.\n"},"code":{"description":"Stable machine-readable identifier for the refusal.","enum":["order_not_cancelable"],"example":"order_not_cancelable","type":"string"}},"required":["code","cancelEligibility"],"type":"object"}],"description":"RFC 7807 Problem Details for a refused cancellation, extended with the order's own eligibility answer so a caller can explain the refusal without re-reading the order. `status` at the top level is RFC 7807's own member -- the HTTP status code; the status that blocked the cancellation is `cancelEligibility.status`.\n"},"FulfillmentCancellationRequest":{"additionalProperties":false,"description":"Carries the cancel token this operation redeems. Any other key is rejected with `400` rather than ignored, so a caller is never left believing it supplied something that was never read.\n","properties":{"cancelToken":{"description":"The token from `POST /orders/{id}/cancel-actions`, carried in the body rather than the request line so it does not land in access logs.\n\n**Required.** A request without one -- or with an empty one -- is `400 cancel_token_invalid`, folded in with every other mismatch. An optional single-use token would not be single-use: replay protection that can be defeated by omitting a field is no protection at all.\n\nThe token is not an authorization credential. The scope gate and the account-ownership check run on every request and neither is ever satisfied from the token's contents -- what the token buys is the freshness grace described on the mint operation, and nothing else.\n","example":"eyJvcmRlcklkIjoiRk9fQnYzakw4c041eFc2aFpmIn0.k7bR3xQ9pT2mN5wY","type":"string"}},"required":["cancelToken"],"type":"object"},"FulfillmentCancellationResult":{"description":"Which order was acted on, and which of the two terminal states the request ended in. The order resource itself is not embedded -- see the operation description.\n","properties":{"id":{"description":"Order identifier, in the same form order detail reports it.","example":"FO_Bv3jL8sN5xW6hZf","type":"string"},"orderNumber":{"example":"90000003","type":"string"},"outcome":{"$ref":"#/components/schemas/FulfillmentCancellationOutcome"}},"required":["id","orderNumber","outcome"],"type":"object"},"FulfillmentConfiguredProduct":{"properties":{"configuredProductId":{"description":"Identifier that maps to `items[].configuredProductId` in a WHCC API order submission","example":"CF_ddTYzrTfjEebOMNAPb5CPbn6RQ0D4hJu8OjT0rIKS7Hc6cH","type":"string"}},"required":["configuredProductId"],"type":"object"},"FulfillmentCreateEventSubscriptionDestination":{"description":"Where to send this subscription's events, on a **write**. The same union as `EventSubscriptionDestination` and deliberately not the same schema: a read must tolerate a `type` it does not recognise, and a write must refuse one. Declaring both off one schema would either open the write to bodies this endpoint answers `422` or close the read against a transport added after the client was generated.\n","discriminator":{"mapping":{"webhook":"#/components/schemas/CreateWebhookDestination"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/FulfillmentCreateWebhookDestination"}]},"FulfillmentCreateEventSubscriptionRequest":{"additionalProperties":false,"description":"**Unknown fields are refused, not ignored**, which is why this object is declared closed: OpenAPI admits additional properties by default, so a schema leaving them open generates validators that accept bodies this endpoint answers `400`. In particular a top-level `webhookVersion` is refused -- the payload version is `destination.version` -- and so is any field naming an account.\n","properties":{"acknowledgeIncompleteCoverage":{"description":"Waives the refusal you get for selecting `order.accepted` without `order.rejected` -- a selection under which a rejected order produces no event at all.\n\n**Request-scoped: it is not stored and never returned.** A later update that still leaves coverage incomplete has to supply it again.\n\nIt has no effect on a `destination.version: 1` subscription, because the refusal does not apply there: `order.rejected` does not exist at version 1, so there is nothing to add: the check never fires at version 1. A version 1 subscription cannot observe rejected orders by any selection; `destination.version: 2` is the only remedy.\n","example":false,"type":"boolean"},"description":{"description":"Free text, for your own reference. At most 255 bytes.","example":"Sunshine Photo Cart -- production","maxLength":255,"type":"string"},"destination":{"$ref":"#/components/schemas/FulfillmentCreateEventSubscriptionDestination"},"eventTypes":{"description":"Which events to receive. Omit for `[\"*\"]`, every event type your `destination.version` can carry, which is what an existing integration would expect.\n\nDotted names are canonical. The legacy wire spellings -- `Processed`, `Shipped`, `Order Cancelled` -- are accepted on input and normalised; `Processed` covers both `order.accepted` and `order.rejected`, because nothing in a selection distinguishes them. Responses are always dotted.\n\n`[\"*\"]` cannot be combined with named types.\n","example":["order.accepted","order.rejected","order.shipped"],"items":{"type":"string"},"minItems":1,"type":"array"},"signingSecret":{"description":"Supply your own key, or omit the field for a generated one. A supplied key must be 32 to 255 printable ASCII characters with no whitespace, and is stored exactly as sent -- nothing is trimmed, because a trimmed key is a key you do not have. Conditioned on `destination.type: webhook`, exactly as `version` is.\n","maxLength":255,"minLength":32,"type":"string"}},"required":["destination"],"type":"object"},"FulfillmentCreateWebhookDestination":{"additionalProperties":false,"description":"An HTTPS endpoint to send signed POSTs to. The write arm of `CreateEventSubscriptionDestination`.\n\n**Closed, because the endpoint refuses unknown members rather than ignoring them.** OpenAPI admits additional properties by default, so leaving this object open -- as the top-level create body is not -- generates validators that accept bodies this endpoint answers `400`. The member most likely to be sent is `webhookVersion`, from the superseded `register` contract; here it is `version`.\n","properties":{"callbackUri":{"description":"Absolute `https` URL that receives deliveries, at most 2048 **bytes**, carrying no `user:pass@` prefix. The limit is the storage column's own width and `varchar` counts bytes, so a URL carrying non-ASCII characters reaches it sooner than its character count suggests. `https` is the only accepted scheme; anything else, a URL that is empty once tab, carriage return and line feed are stripped, or one carrying any of those characters, is `422 invalid_callback_uri`. The port must be `443` or `8443`, written in the URL or implied by `https` -- the ports a test event is delivered to; any other port is `422 invalid_callback_uri`. On `PUT`, resending the subscription's current `callbackUri` unchanged is accepted whatever its port. Delivery itself refuses an endpoint that resolves to a private address, so registering one here registers an endpoint nothing will call.\n","example":"https://partner.example.com/whcc/events","format":"uri","type":"string"},"type":{"description":"Destination transport. `webhook` is the only value this API accepts on a write; anything else is `422 unsupported_destination_type`. The enum is closed here and open on the read shape (`EventSubscriptionDestination`), which is the difference between a value this API will not honour and one a client may not recognise.\n","enum":["webhook"],"example":"webhook","type":"string"},"version":{"default":2,"description":"Payload version. Omit it for `2`, which is the only version that carries rejected and cancelled orders.\n\n**Version 1 requires the `apikey:oas` scope**: a create asking for it from a credential without that scope is refused `403 insufficient_scope` and nothing is written. With the scope it carries `order.accepted` and `order.shipped`, and delivers the ImageDownload body to a `*` subscription only.\n","enum":[1,2],"example":2,"type":"integer"}},"required":["type","callbackUri"],"type":"object"},"FulfillmentCreatedEventSubscription":{"allOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscription"},{"properties":{"signingSecret":{"description":"The key every delivery to this subscription is signed with. Store it now; it cannot be read back.\n","example":"Rk9v2xQ0aJ7pM4sT1wYh8cZdE3bN6uLgKiO5rXyA9fQ","type":"string"}},"required":["signingSecret"],"type":"object"}],"description":"The subscription, plus the signing secret. **The secret appears here and nowhere else** -- no read operation returns it, not even partially.\n"},"FulfillmentDelivery":{"description":"One delivery ATTEMPT against a subscription, as WHCC recorded it.\n\n`callbackUri` and the request and response bodies are recorded but are not published by this operation: returning them in a list would cost a lookup per row against a wide column.\n","properties":{"attempt":{"description":"Which attempt on the retry ladder this was, counting from 1.","example":1,"nullable":true,"type":"integer"},"attemptedAt":{"description":"When the attempt was made, ISO-8601 UTC. Named for what it is: a row exists whether or not anything was delivered.\n","example":"2026-09-30T14:03:22Z","format":"date-time","type":"string"},"eventType":{"description":"The dotted event type this attempt carried. `null` means WHCC could not resolve one and delivered the notification anyway, which a subscription selecting `*` can receive.\n","example":"order.shipped","nullable":true,"type":"string"},"id":{"description":"This attempt's opaque identifier: `DLV_` followed by fourteen alphanumeric characters. Store it, quote it to WHCC support, and deduplicate on it across polls.\n\n`null` on an attempt recorded before this field existed. Treat it as opaque: nothing is encoded in it, and match it whole rather than parsing it.\n","example":"DLV_7Kq2mZ1x9PdR4t","nullable":true,"pattern":"^DLV_[A-Za-z0-9]{14}$","type":"string"},"latencyMs":{"description":"Round-trip milliseconds.","example":145,"nullable":true,"type":"integer"},"notifyUid":{"description":"The notification this attempt carried. `POST /event-subscriptions/{id}/test` returns the same value, so the attempts a test send caused are the rows matching it.\n\n**One notification, several attempts.** A retry ladder writes a row per attempt and they all carry this value; `id` is what tells them apart. `null` on an attempt recorded before this field existed.\n","example":48211907,"nullable":true,"type":"integer"},"outcome":{"description":"`succeeded` for a 2xx, `failed` for anything else including no response at all.\n","enum":["succeeded","failed"],"type":"string"},"reason":{"description":"A short category for a failed attempt -- `http 500`, `timeout`, `transport error`. Never your response body. `null` on success.\n","example":"http 500","nullable":true,"type":"string"},"statusCode":{"description":"The HTTP status the attempt ended on, or `null` when nothing answered -- DNS failure, refused connection, TLS failure, a client-side timeout. `reason` names which. This is the same convention `EventSubscription.lastDeliveryError.statusCode` follows, so one failure reads the same way on both.\n","example":200,"nullable":true,"type":"integer"},"version":{"description":"The payload version this attempt was sent at -- the same fact the subscription publishes as `destination.version`.\n","example":2,"type":"integer"},"willRetry":{"description":"Whether WHCC intended another attempt after this one. Taken after the retry cap, so it cannot be inferred from `statusCode` alone.\n","nullable":true,"type":"boolean"}},"required":["id","notifyUid","attemptedAt","eventType","version","outcome","statusCode","latencyMs","attempt","willRetry","reason"],"type":"object"},"FulfillmentDeliveryListResponse":{"description":"One page of delivery attempts, newest first.","properties":{"items":{"items":{"$ref":"#/components/schemas/FulfillmentDelivery"},"type":"array"},"pagination":{"$ref":"#/components/schemas/FulfillmentDeliveryPagination"}},"required":["items","pagination"],"type":"object"},"FulfillmentDeliveryPagination":{"description":"Where this page sits, and the cursors to the pages either side. The cursor directions are the shared `Pagination` schema's -- `nextBefore` is older, `nextAfter` is newer -- so one client paginator reads this operation and `GET /orders` alike.\n\nDefined separately rather than composed with `allOf`, which does not replace a referenced schema's per-property descriptions: the two schemas differ in WHEN a cursor is published, not in what it means. `GET /orders` publishes only the direction the page was read in; this operation publishes both on any non-empty page, so that the newest attempt's cursor is always in hand to poll with. Composing them would publish the wrong nullability rule in generated documentation.\n","properties":{"hasMore":{"description":"Whether more attempts exist in the direction this page was read.\n","type":"boolean"},"limit":{"description":"The page size that was applied.","example":25,"type":"integer"},"nextAfter":{"description":"Opaque cursor to the page of **newer** attempts. Present on any non-empty page, so it can be replayed to poll for attempts that have happened since. Asking when none exist returns an empty page.\n","example":"MjIxOTQyMjc","nullable":true,"type":"string"},"nextBefore":{"description":"Opaque cursor to the page of **older** attempts. Present on any non-empty page. Asking when none exist returns an empty page.\n","example":"MjIxOTQyMDE","nullable":true,"type":"string"}},"required":["limit","hasMore"],"type":"object"},"FulfillmentEventSubscription":{"description":"One account-level event subscription.","properties":{"accountNo":{"description":"Read-only. The account the credential belongs to. No request can name an account, on any operation of this resource.\n","example":1114,"type":"integer"},"createdAt":{"description":"UTC.","example":"2026-09-14T10:12:04Z","format":"date-time","type":"string"},"description":{"example":"Sunshine Photo Cart -- production","maxLength":255,"nullable":true,"type":"string"},"destination":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionDestination"},"eventTypes":{"description":"The events this subscription receives, always as dotted names. `[\"*\"]` means every event type the subscription's `destination.version` can carry.\n","example":["order.accepted","order.rejected","order.shipped"],"items":{"description":"Known values: `order.accepted`, `order.rejected`, `order.shipped`, `order.cancelled`, and `*`. `order.rejected` and `order.cancelled` exist only at `destination.version: 2`. Treat as an open enum.\n","type":"string"},"type":"array"},"id":{"description":"Read-only identifier, case-sensitive.","example":"SUB_7Kq2mZ1x9PdR4t","pattern":"^[A-Z]{2}_[A-Za-z0-9]{16}$","type":"string"},"lastDeliveryError":{"allOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionDeliveryError"}],"nullable":true},"modifiedAt":{"description":"UTC.","example":"2026-09-14T10:12:04Z","format":"date-time","type":"string"},"status":{"description":"`disabled` -- you stopped it, or it has not been enabled yet. `active` -- receiving. `suspended` -- WHCC stopped it after repeated delivery failures.\n\n**Treat as an open enum.** An unrecognised value means *not active*, and must not be read as `disabled`, which means something you did.\n","example":"disabled","type":"string"},"statusDetail":{"allOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionStatusDetail"}],"nullable":true}},"required":["id","accountNo","destination","eventTypes","description","status","statusDetail","lastDeliveryError","createdAt","modifiedAt"],"type":"object"},"FulfillmentEventSubscriptionDeliveryError":{"description":"The most recent failed delivery, or null if the last attempt succeeded and none has failed since.","properties":{"at":{"example":"2026-09-14T10:12:04Z","format":"date-time","type":"string"},"reason":{"example":"connection refused","nullable":true,"type":"string"},"statusCode":{"description":"The HTTP status the endpoint answered. Null wherever no HTTP response arrived at all -- a refused connection, a TLS failure, a timeout -- which is the commonest kind of delivery failure.\n","example":502,"nullable":true,"type":"integer"}},"required":["at","statusCode","reason"],"type":"object"},"FulfillmentEventSubscriptionDestination":{"description":"Where a subscription's events go. A **union over `type`**, not one object with optional fields: `type` is the discriminator, one variant exists today, and a second transport arrives as a new variant rather than as a new meaning for an existing field. Generate a client from the variant, not from this name -- the union is what keeps a future `email` arm from demoting `callbackUri` and `version` to optional on everything already published.\n\n**Tolerate an unrecognised `type` on a read.** One account can hold several subscriptions, so a client that knows only `webhook` can meet a destination it does not recognise without ever having asked for one -- skip the entry or surface it opaquely, never fail the response.\n","discriminator":{"mapping":{"webhook":"#/components/schemas/WebhookDestination"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/FulfillmentWebhookDestination"}]},"FulfillmentEventSubscriptionListResponse":{"description":"The calling account's subscriptions. An envelope rather than a bare array, so a later `pagination` member is additive -- there is none today because the per-account cap bounds the collection at 25 subscriptions.\n\nNote what the items are: `EventSubscription`, which has no `signingSecret` member at all. A read cannot return the secret.\n","properties":{"items":{"items":{"$ref":"#/components/schemas/FulfillmentEventSubscription"},"type":"array"}},"required":["items"],"type":"object"},"FulfillmentEventSubscriptionProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"code":{"description":"One of `malformed_request`, `insufficient_scope`, `subscription_not_found`, `subscription_limit_reached`, `incomplete_event_coverage`, `unknown_event_type`, `event_type_unavailable_for_version`, `event_type_not_selected`, `unsupported_destination_type`, `invalid_callback_uri`, `invalid_signing_secret`, `invalid_webhook_version`, `webhook_version_unsupported`, `destination_version_immutable`, `etag_mismatch`, `idempotency_key_conflict`, `no_signing_secret`, `shipped_dedup_pending`, `confirmation_not_found`, `event_type_unavailable_in_environment`, `test_events_unavailable_in_environment`, `rate_limited`, `rotation_in_progress` or `invalid_expires_in`.\n","example":"incomplete_event_coverage","type":"string"},"missing":{"description":"Present on `incomplete_event_coverage`: the event types the selection implies but does not include.\n","example":["order.rejected"],"items":{"type":"string"},"type":"array"},"previousSecretExpiresAt":{"description":"Present on `rotation_in_progress`: when the open overlap window closes. Rotate again after this instant.\n","example":"2026-09-21T10:12:04Z","format":"date-time","type":"string"}},"required":["code"],"type":"object"}],"description":"RFC 7807 Problem Details for this resource, extended with a stable machine-readable `code` so callers can branch without parsing `detail`.\n"},"FulfillmentEventSubscriptionStatusDetail":{"description":"Why a subscription is not receiving, and since when. Null while it is `active`, and also null on a subscription that has just been created -- it is stopped because that is how subscriptions start, not because anything happened to it.\n","properties":{"reason":{"description":"`user` -- you stopped it. `deliveryFailures` -- WHCC stopped it after repeated delivery failures. Treat as an open enum.\n","example":"user","type":"string"},"since":{"description":"When it stopped, in UTC.","example":"2026-09-14T10:12:04Z","format":"date-time","type":"string"}},"required":["reason","since"],"type":"object"},"FulfillmentEventTypeCatalogEntry":{"description":"One event type this service knows, selectable or not.\n","properties":{"available":{"description":"Whether any subscription may ever select this type, at any version. `false` means selecting it is always `422 unknown_event_type`; check `unavailableReason` and `seeAlso` for why and for what to select instead.\n","example":true,"type":"boolean"},"eventType":{"description":"The dotted name, as `eventTypes` carries it.","example":"order.rejected","type":"string"},"seeAlso":{"description":"Present on some unavailable types: the dotted name to select instead. Null where there is no substitute.\n","example":"order.rejected","nullable":true,"type":"string"},"unavailableReason":{"description":"Present when `available` is false: why no subscription may select this type. Null when `available` is true.\n","example":"No V2 payload exists for this event. At V2 an image-download notification either reroutes to a Processed/Rejected body (when there are image errors) or sends nothing at all (when there are none), so there is no V2 body a subscriber could receive under this name.","nullable":true,"type":"string"},"versions":{"description":"The `destination.version` values this type is selectable at, when `available` is true. A type available at every version this service can create carries `[1, 2]`; one carrying only `[2]` is V2-only -- selecting it on a `destination.version: 1` subscription is `422 event_type_unavailable_for_version`.\n\n⚠️ **Not empty when `available` is false.** An unavailable type still reports the versions it was ever carried at, so `order.image-download` publishes `available: false` with `versions: [1]`. Read `available` to decide whether a type may be selected at all; read `versions` only to decide at which payload versions an **available** one may be.\n","example":[2],"items":{"type":"integer"},"type":"array"},"wireEvent":{"description":"The legacy wire spelling this dotted name corresponds to. Informational only -- `eventTypes` accepts either spelling, but always echoes the dotted one back.\n","example":"Processed","type":"string"}},"required":["eventType","wireEvent","available","versions","seeAlso","unavailableReason"],"type":"object"},"FulfillmentEventTypeCatalogResponse":{"description":"Every event type this service knows, in a stable order. Unpaginated: the vocabulary is small and fixed by this service's own deployment, not by anything a caller controls.\n","properties":{"items":{"items":{"$ref":"#/components/schemas/FulfillmentEventTypeCatalogEntry"},"type":"array"}},"required":["items"],"type":"object"},"FulfillmentExemptCertificate":{"description":"Sales-tax exempt certificate on file for the account. Present independently of `taxable` -- a certificate may be on file even if the account is currently classified as taxable (or vice versa).\n","properties":{"date":{"description":"Free-form date string. Format is not guaranteed to be ISO 8601; commonly US-style \"M/D/YYYY\".\n","example":"5/12/2024","type":"string"},"number":{"description":"Certificate identifier.","example":"ABC123","type":"string"}},"required":["number","date"],"type":"object"},"FulfillmentInvalidParam":{"description":"One reason one part of a request could not be used.","properties":{"name":{"description":"Dotted path to the offending member, or to the object carrying the rule where no single member is at fault.\n","example":"shipTo.city","type":"string"},"reason":{"description":"What is wrong with it, in a sentence.","example":"Must be 35 characters or fewer.","type":"string"},"value":{"description":"What was sent, truncated. Absent when there was nothing to echo -- a required member you omitted.\n","type":"string"}},"required":["name","reason"],"type":"object"},"FulfillmentMoney":{"description":"An amount of money.\n\nThis is the shape every amount in this document is converging on, and the shipping resources use it exclusively.\n\n`financials` and its line items carry each amount twice: once as this object, under `amounts`, and once as the older decimal string beside a sibling `currency`. The older members are deprecated and will be removed in a future major version. Read `amounts` in new code; nothing you read today changes meaning before that major.\n","properties":{"code":{"description":"ISO 4217 currency code.","example":"USD","type":"string"},"value":{"description":"Amount, always to two decimal places.","example":"1.00","type":"string"}},"required":["value","code"],"type":"object"},"FulfillmentOrder":{"description":"Full order detail. A superset of OrderSummary, except for `configuredProductCount` and `configuredProducts`, which only the list carries: `GET /api/v1/fulfillment/orders/{id}/configured-products` gives the whole set for one order.\n","properties":{"cancelEligibility":{"$ref":"#/components/schemas/FulfillmentCancelEligibility"},"createdAt":{"description":"Timestamp from received_at","example":"2026-02-06T13:38:34.348-06:00","type":"string"},"deliveryLocation":{"$ref":"#/components/schemas/FulfillmentOrderDeliveryLocation"},"entry":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderEntry"}],"description":"The Order Submit API entry this order was imported in. Null when no entry of yours is behind the order: a charge added to your account by hand, or a reprint WHCC made of an order you placed through the WHCC API, which carries that order's `sourceOrder`.\n","nullable":true},"estimatedCompleteDate":{"description":"The requested ship date recorded on the order's sales document in the accounting system. Null when there is none.","example":"2026-02-12","format":"date","nullable":true,"type":"string"},"financials":{"$ref":"#/components/schemas/FulfillmentOrderFinancials"},"id":{"description":"Order ID when available, otherwise the numeric order number as a string","example":"FO_Xt7mK9pR2wQ4nYd","type":"string"},"lifecycle":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderLifecycle"}],"deprecated":true,"description":"Deprecated -- use `progress.billing` instead, which carries the same value. Still emitted, unchanged; it will be removed in a future major version.\n"},"links":{"$ref":"#/components/schemas/FulfillmentOrderDetailLinks"},"orderNumber":{"description":"Numeric WHCC order number","example":"90000003","type":"string"},"productType":{"description":"Product category. Known values include: Loose Prints, Book, Canvas Wrap, Metal Print, Acrylic Print, Image Box, Press Cards, Albums, and others. New values may be added without a version change.\n","example":"Image Box","type":"string"},"progress":{"$ref":"#/components/schemas/FulfillmentOrderProgress"},"reference":{"description":"Empty strings are normalized to null","example":"PS 1000002-TnVsbFJlZg","nullable":true,"type":"string"},"shipments":{"items":{"$ref":"#/components/schemas/FulfillmentOrderShipment"},"type":"array"},"shippingFrom":{"description":"WHCC production city","example":"Waukesha","type":"string"},"shippingMethod":{"description":"How the order is set to be handed over, in a name a person can read -- the carrier method for an order that will be carried, and \"Pick Up\" for an order that asked to be collected. It is set well before anything ships, so an order that has shipped nothing can still carry one; it is null when the order names a method there is no readable name for.\n\nRead `deliveryLocation` rather than matching on this string. This one is display copy and may be reworded; that one is a fixed value to branch on.\n\nIt is not the shipping option the order requested and is billed for. The two are separate facts and are permitted to differ by design, so neither is a stale copy of the other -- read `GET /orders/{id}/shipping` for what was requested. That resource is also the only source of an `If-Match` validator: this response is cacheable for 30 seconds, so a validator taken from here would be one that was fresh when the cache filled and stale when it fires.\n","example":"FedEx Ground","nullable":true,"type":"string"},"sourceOrder":{"allOf":[{"$ref":"#/components/schemas/FulfillmentSourceOrderReference"}],"description":"The WHCC API submission this order was split from: its `id` is the submission's `submission.id`. Null when the order did not come from one. For the Order Submit API entry behind the order, whatever its channel, read `entry`.\n","nullable":true},"status":{"description":"Most recent status from statusHistory, provided at the top level for convenience.","example":"Shipped","type":"string"},"statusAt":{"description":"Timestamp of the most recent status from statusHistory, provided at the top level for convenience.","example":"2026-02-10T11:10:49.907-06:00","type":"string"},"statusHistory":{"items":{"$ref":"#/components/schemas/FulfillmentOrderTracking"},"type":"array"}},"required":["id","orderNumber","entry","createdAt","productType","lifecycle","status","progress","statusAt","shippingFrom","deliveryLocation","cancelEligibility","links","financials","statusHistory","shipments"],"type":"object"},"FulfillmentOrderBillingProgress":{"description":"Where the order's sales document in the accounting system stands, as\na fixed vocabulary safe to branch on. The same values the deprecated\n`lifecycle` carries.\n- pending: No sales document exists for the order in the accounting\n  system yet.\n- processing: A sales document exists and is open -- not voided and\n  not yet settled.\n- complete: The sales document is settled. Either it has been posted,\n  which counts as invoiced outright, or it is still open with every\n  hold on it released. One outstanding hold keeps it out of\n  `complete`, and an open document with no hold recorded on it at\n  all is `processing`, not `complete`.\n- canceled: The sales document has been voided.\n\nThis describes the sales document and nothing else. It does not say\nwhether the account has paid -- no payment or receivable is read --\nand it does not say whether anything has been produced or has left\nthe building; `progress.fulfillment` says that.\n","enum":["pending","processing","complete","canceled"],"type":"string"},"FulfillmentOrderConfiguredProductGroup":{"properties":{"configuredProducts":{"items":{"$ref":"#/components/schemas/FulfillmentConfiguredProduct"},"type":"array"},"orderId":{"description":"Order ID when available, otherwise the numeric order number as a string","example":"FO_Xt7mK9pR2wQ4nYd","type":"string"},"orderNumber":{"description":"Numeric WHCC order number","example":"90000003","type":"string"},"sourceOrder":{"$ref":"#/components/schemas/FulfillmentSourceOrderReference"}},"required":["orderId","orderNumber","sourceOrder","configuredProducts"],"type":"object"},"FulfillmentOrderConfiguredProductsResponse":{"description":"Configured product IDs associated with a single order.","properties":{"items":{"description":"Each configured product once, in the order the order's items were recorded. An order summary's `configuredProducts` is always the start of this list.\n","items":{"$ref":"#/components/schemas/FulfillmentConfiguredProduct"},"type":"array"}},"required":["items"],"type":"object"},"FulfillmentOrderConfiguredProductsSearchResponse":{"description":"Fulfillment orders matching a source order, each with associated configured product IDs.","properties":{"items":{"items":{"$ref":"#/components/schemas/FulfillmentOrderConfiguredProductGroup"},"type":"array"}},"required":["items"],"type":"object"},"FulfillmentOrderDeliveryLocation":{"description":"Where the order asked to end up, as a fixed vocabulary safe to branch\non.\n- pickup: Collected in person at the production location.\n- account: Sent to the account holder.\n- dropship: Sent on to the account holder's own customer.\n\nThis is what the order requested, not a statement about what happens\nto it. A pickup order can still carry tracking, shipments and a shipped\nstatus, so a client that hides any of those on the strength of `pickup`\nwill contradict the order detail's `shipments`. Read `shipments` on\n`GET /orders/{id}` for what became of the order; the list carries no\nshipment member of its own.\n\nAlways present and never null, and every order is one of these\nvalues.\n","enum":["pickup","account","dropship"],"type":"string"},"FulfillmentOrderDetailLinks":{"description":"Superset of OrderSummaryLinks.","properties":{"cancelActions":{"description":"Relative URL of the endpoint that mints a cancel token for this order. The key is always present and is `null` exactly when `cancelEligibility.eligible` is false -- the two are the same answer in two encodings and cannot disagree.\n\nA link, not a credential: it is safe in this cacheable response because the token itself is only ever minted by the POST behind it, whose responses are `no-store`.\n","example":"/api/v1/fulfillment/orders/FO_Bv3jL8sN5xW6hZf/cancel-actions","nullable":true,"type":"string"},"cartSummary":{"description":"Cart summary URL. Null when not available.","example":"https://www.whcc.com/account/order/Xk9mT4rB2nQ7wYp3H","format":"uri","nullable":true,"type":"string"},"entry":{"description":"Relative URL to the order list narrowed to this order's entry: every order the entry produced, this one included. Null when `entry` is null.\n","example":"/api/v1/fulfillment/orders?entryConfirmationId=f27c9d34-c2ce-4685-b667-25c99fb4855f","nullable":true,"type":"string"},"invoice":{"description":"Invoice document URL. Present only once the order's billing has settled -- `progress.billing` is `complete`, meaning the financial hold has been released or the document has posted to accounting history. Null before then, and null for a canceled order.","example":"https://www.whcc.com/account/docs/request/invoice/90000003/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6","format":"uri","nullable":true,"type":"string"},"self":{"description":"Relative URL to the order detail endpoint","example":"/api/v1/fulfillment/orders/FO_Bv3jL8sN5xW6hZf","type":"string"},"shipping":{"description":"Relative URL to this order's shipping state -- where the parcel is going and which shipping option it holds. Always present. Unlike `cancelActions` it is never `null`: there is no *order* whose shipping state that resource would refuse to read.\n\nThe link asserts nothing about whether the order's shipping can be *changed*. Follow it and read the state to learn that.\n\nThe resource behind this link accepts the same credentials this one does, including an API key carrying `apikey` -- all three shipping operations were opened together (ENG-4414). Following it with the key that read this document needs no second credential.\n","example":"/api/v1/fulfillment/orders/FO_Bv3jL8sN5xW6hZf/shipping","type":"string"},"tracking":{"description":"Combined shipping tracking URL. Null when no shipments exist yet.","example":"https://www.fedex.com/fedextrack/?trknbr=794644790128","format":"uri","nullable":true,"type":"string"}},"required":["self","tracking","invoice","cartSummary","cancelActions","shipping","entry"],"type":"object"},"FulfillmentOrderEntry":{"description":"The Order Submit API entry an order was imported in, with the\nidentifiers that API returned and you sent. One entry can produce\nseveral orders: they share `confirmationId` and `entryId`, and differ\nby `sequenceNumber`.\n\nEvery order imported from an entry of yours has an `entry`, whichever\nway it was submitted.\nAn order submitted through the WHCC API also has a `sourceOrder`, which\nis the submission it came from; the WHCC API imports one entry per\norder, so group those orders by `sourceOrder`, not `entry`.\n","properties":{"confirmationId":{"description":"The `ConfirmationID` the entry was given, in lowercase. Compare it without regard to case. Filter the list on it with `entryConfirmationId`.\n","example":"f27c9d34-c2ce-4685-b667-25c99fb4855f","format":"uuid","type":"string"},"entryId":{"description":"The `EntryID` the entry was imported under, as you sent it. Not unique: a resubmission can reuse one. Null where the entry carried none.\n","example":"5003627682","nullable":true,"type":"string"},"sequenceNumber":{"description":"This order's `SequenceNumber` within its entry, as you sent it. Text, not a number: compare it as a string.\n","example":"3","type":"string"}},"required":["confirmationId","entryId","sequenceNumber"],"type":"object"},"FulfillmentOrderFinancials":{"description":"What this order costs and whether it has been invoiced.\n\nThis object carries each amount twice while a convergence is under way. `amounts` is the shape used everywhere else in this document, including the shipping resources; the decimal string beside a sibling `currency` is the older shape and is deprecated. The two are always the same amount -- read `amounts` in new code, and expect the deprecated members to be removed in a future major version.\n","properties":{"amounts":{"description":"This order's amounts. Prefer these over the deprecated decimal strings alongside them: each carries its own currency code, so there is no separate `currency` member to read.\n","properties":{"discount":{"$ref":"#/components/schemas/FulfillmentMoney"},"subtotal":{"$ref":"#/components/schemas/FulfillmentMoney"},"tax":{"$ref":"#/components/schemas/FulfillmentMoney"},"total":{"$ref":"#/components/schemas/FulfillmentMoney"}},"required":["subtotal","tax","discount","total"],"type":"object"},"currency":{"deprecated":true,"description":"Deprecated -- the currency is carried on each amount in `financials.amounts`, so there is nothing this member says that those do not. ISO 4217 currency code. Still emitted, unchanged; it will be removed in a future major version.\n","example":"USD","type":"string"},"discount":{"deprecated":true,"description":"Deprecated -- use `financials.amounts.discount` instead. Formatted decimal. Still emitted, unchanged; it will be removed in a future major version.\n","example":"0.00","type":"string"},"invoiced":{"example":true,"type":"boolean"},"items":{"items":{"$ref":"#/components/schemas/FulfillmentBillingLineItem"},"type":"array"},"subtotal":{"deprecated":true,"description":"Deprecated -- use `financials.amounts.subtotal` instead. Formatted decimal, e.g. \"50.00\". Still emitted, unchanged; it will be removed in a future major version.\n","example":"135.80","type":"string"},"tax":{"deprecated":true,"description":"Deprecated -- use `financials.amounts.tax` instead. Formatted decimal. Still emitted, unchanged; it will be removed in a future major version.\n","example":"0.00","type":"string"},"total":{"deprecated":true,"description":"Deprecated -- use `financials.amounts.total` instead. Formatted decimal. Still emitted, unchanged; it will be removed in a future major version.\n","example":"135.80","type":"string"}},"required":["currency","subtotal","tax","discount","total","invoiced","items","amounts"],"type":"object"},"FulfillmentOrderFulfillmentProgress":{"description":"How far fulfilment of the order has got -- making it and handing it\nover -- as a fixed vocabulary safe to branch on. It classifies the\n`status` beside it and never replaces it: new status values appear\nwithout a version change, and this is how a client handles one it\ndoes not recognise.\n- pending: Accepted and waiting to be produced.\n- in_progress: Being printed, finished or packed.\n- produced: Produced and packed. On a pickup order it can come before\n  `ready_for_collection`, or without it, so it does not mean the order\n  can be collected.\n- ready_for_collection: Ready to be collected in person.\n- fulfilled: Left the building, handed to a carrier or collected in\n  person. It is not a delivery confirmation.\n- blocked: Halted until something is resolved. The `status` beside\n  it says what.\n- cancel_requested: A cancellation has been requested and is not yet\n  final.\n- canceled: The order has been canceled.\n- none: No fulfilment applies to this record, such as an applied\n  credit or discount on a remake that is never produced. It says\n  nothing about money; `progress.billing` does.\n- unknown: The status beside it is one this vocabulary does not yet\n  classify. Every current status classifies, so this appears only\n  when a new status is introduced, and it is never an error.\n\nOn an order, this is the progress of the latest status, never the\nfurthest step the order has reached. Production can move backwards --\nan order ready to leave can return to production -- so a client\ndrawing progress redraws from the current value and does not keep a\nstep it once saw finished. Each `statusHistory` entry carries the\nprogress of that entry alone.\n\nAlways present and never null. Whether the order is collected or\nshipped is `deliveryLocation`, not this. No label or ordering is\nincluded, so each client supplies its own wording.\n","enum":["pending","in_progress","produced","ready_for_collection","fulfilled","blocked","cancel_requested","canceled","none","unknown"],"type":"string"},"FulfillmentOrderLifecycle":{"description":"Where the order's sales document in the accounting system stands.\n- pending: No sales document exists for the order in the accounting\n  system yet.\n- processing: A sales document exists and is open -- not voided and\n  not yet settled.\n- complete: The sales document is settled. Either it has been posted,\n  which counts as invoiced outright, or it is still open with every\n  hold on it released. One outstanding hold keeps it out of\n  `complete`, and an open document with no hold recorded on it at\n  all is `processing`, not `complete`.\n- canceled: The sales document has been voided.\n\nThis describes the sales document and nothing else. It does not say\nwhether the account has paid -- no payment or receivable is read --\nand it does not say whether anything has been produced or has left\nthe building; `progress.fulfillment` says that.\n","enum":["pending","processing","complete","canceled"],"type":"string"},"FulfillmentOrderListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FulfillmentOrderSummary"},"type":"array"},"pagination":{"$ref":"#/components/schemas/FulfillmentPagination"},"searchScope":{"$ref":"#/components/schemas/FulfillmentOrderSearchScope"}},"required":["items","pagination"],"type":"object"},"FulfillmentOrderProgress":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderStatusProgress"},{"properties":{"billing":{"$ref":"#/components/schemas/FulfillmentOrderBillingProgress"}},"required":["billing"],"type":"object"}],"description":"The two lifecycles of an order: how far fulfilment has got, and where its billing stands. They almost always agree, and are separate members because where they differ each is a fact worth keeping -- a payment problem can halt production, and a credit can change billing without fulfilment moving.\n\nWhere the two lifecycles share a concept they share a word, and where they diverge the words diverge. `pending` means that lifecycle has not started and `canceled` means it was cancelled, in either member; every other value belongs to one member only, because being produced and being invoiced are not the same activity.\n"},"FulfillmentOrderSearchScope":{"description":"Which orders a `search` matched by reference. Present only when the\nrequest sent `search`. Each page reports its own coverage, so as new\norders arrive, a `recent` search's `oldestSearched` can move to a newer\norder between pages. It describes the reference match alone: an order\nnumber is matched across every order whatever the scope.\n","properties":{"complete":{"description":"True when the reference match covered every order on your account:\nalways for `all`, and for `recent` when the account has no more\norders than `orderLimit`. When false, `searchScope=all` can find\nreferences this search did not reach.\n","example":false,"type":"boolean"},"oldestSearched":{"description":"The oldest order the reference match covered. Null when `complete`\nis true, or when none of the orders it covered is on your order list.\n","nullable":true,"properties":{"createdAt":{"description":"When the order was received, as `createdAt` on an order summary.","example":"2026-06-16T20:09:17.000-05:00","format":"date-time","type":"string"},"orderNumber":{"example":"22478746","type":"string"}},"required":["orderNumber","createdAt"],"type":"object"},"orderLimit":{"description":"How many of your newest orders a `recent` search covers. Null for `all`.","example":50000,"nullable":true,"type":"integer"},"scope":{"description":"The `searchScope` the search ran with.","enum":["recent","all"],"example":"recent","type":"string"}},"required":["scope","complete","orderLimit","oldestSearched"],"type":"object"},"FulfillmentOrderShipment":{"properties":{"address":{"allOf":[{"$ref":"#/components/schemas/FulfillmentAddress"}],"description":"Where this shipment went, as recorded when its label was bought. Provenance rather than intent: it is never rewritten afterwards, so it can differ from where the order is currently addressed. `GET /orders/{id}/shipping` is the authority on that.\n"},"carrier":{"example":"FedEx","type":"string"},"shippingMethod":{"description":"The service this shipment was actually bought on, off the record written when its label was bought. It says what happened rather than what was asked for and is never rewritten, so it is not the order's requested shipping option and need not match the order's own carrier method.\n","example":"FedEx Ground","nullable":true,"type":"string"},"trackingNumber":{"description":"Raw tracking number","example":"794644790128","nullable":true,"type":"string"},"trackingUrl":{"example":"https://www.fedex.com/fedextrack/?trknbr=794644790128","format":"uri","nullable":true,"type":"string"},"weight":{"example":5.2,"format":"float","nullable":true,"type":"number"}},"required":["carrier","address"],"type":"object"},"FulfillmentOrderShipping":{"description":"An order's shipping state: where the parcel is going, which shipping option it currently holds, and whether its shipping is billed to your own carrier account.\n","properties":{"changeable":{"$ref":"#/components/schemas/FulfillmentOrderShippingChangeable"},"deliveryLocation":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderDeliveryLocation"}],"description":"Where the order asked to end up: the same value, from the same derivation, that `deliveryLocation` reports on `GET /orders/{id}` for this order. A property of the order, not of its shipping state: it is answered on the read and on the response to a change, and a change request cannot set it.\n\n`pickup` appears here with `shipTo` `null`. The other shipping routes answer a pickup order `404`.\n","readOnly":true},"shipTo":{"allOf":[{"$ref":"#/components/schemas/FulfillmentShipToAddress"}],"description":"Where the parcel is going. `null` on a pickup order, which is collected rather than shipped.\n","nullable":true},"shippingCharge":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"What the order is actually billed for its current shipping option, which can differ from that option's listed price. Absent when nothing is billed for shipping on this order.\n"},"shippingOptionId":{"description":"The shipping option the order currently holds, as the same identifier the shipping options list reports -- so selecting an option elsewhere is a copy rather than a lookup. Opaque and stable; do not parse it. Absent when the order holds none, which is ordinary for an order that is not billed to your own carrier account.\n","example":"USPS_1CLASS","type":"string"},"thirdPartyBilled":{"description":"Whether this order's shipping is billed to your own carrier account. Orders that are not cannot have their shipping changed through this API, and read as `false` here with the shipping option and charge absent.\n","example":true,"type":"boolean"}},"required":["shipTo","thirdPartyBilled","deliveryLocation","changeable"],"type":"object"},"FulfillmentOrderShippingChangeable":{"description":"Whether this order allows its ship-to address and its shipping option to be changed, and why not where it does not. Read this rather than working it out from `thirdPartyBilled`, `deliveryLocation` or whether an `ETag` came back.\n\nBoth are `false` while shipping changes are switched off in an environment, when a change would be answered `503`.\n\nIt says the order allows a change, not that every change will be accepted. A change can still be refused for something only the request decides: an option the order cannot move to (`offer-not-available`), an address in a different country (`boundary-crossing-withheld`), or a change that would take the order below what it may be credited to or leave a charge unsettled (`credit-floor-withheld`, `negative-balance-withheld`, `derived-charge-withheld`). It is also a reading, not a lock: the order can move between this read and your change, which is what the `ETag` is for.\n","properties":{"reason":{"description":"Why neither can be changed. Present when both members are `false` and the reason is known; absent when a change is allowed, and when the reason is that changes are switched off. An open string: treat a value you do not recognise as \"cannot be changed\". Known values, which are the same codes a change to this order would be refused with:\n\n- `order-not-editable` -- the order is voided, or has been\n  released for billing, which shipped orders have.\n\n- `not-changeable-online` -- the order's shipping is not billed to\n  your own carrier account, and only those can be changed online\n  today. Other programmes are expected later.\n\n- `shipment-not-found` -- the order has no shipment record to\n  change yet.\n\n- `pickup` -- the order is collected rather than shipped.\n","example":"not-changeable-online","type":"string"},"shipTo":{"description":"Whether the order allows its ship-to address to be changed.","example":true,"type":"boolean"},"shippingOption":{"description":"Whether the order allows its shipping option to be changed.","example":true,"type":"boolean"}},"required":["shipTo","shippingOption"],"type":"object"},"FulfillmentOrderShippingOptions":{"description":"The shipping options an order may be moved to, and -- where there are none -- why.\n","properties":{"options":{"description":"In catalogue order. Always present; empty where nothing is offered for this order, in which case `unavailable` says why.\n","items":{"$ref":"#/components/schemas/FulfillmentShippingOption"},"type":"array"},"unavailable":{"allOf":[{"$ref":"#/components/schemas/FulfillmentShippingOptionAvailability"}],"description":"Why `options` is empty, in the same shape an option's own availability takes. Absent whenever there are options to list, and absent too on the rare empty list no reason was given for.\n"}},"required":["options"],"type":"object"},"FulfillmentOrderShippingPreview":{"description":"What a shipping change would do, with nothing written.\n\n**Every member is a statement about the previewed change**, never about the order as it stands. That is what makes the body readable beside a state read: anything here that did not move is something the change would not have moved. It is also why `deliveryLocation` is not here -- it is a property of the order that no shipping change can alter, so reporting it would be answering a different question in the middle of this one.\n\n**Exactly one of `refusal` and the two money members is populated.** A change that would be made settles money and carries `refusal: null`; one that would be refused settles nothing and carries `shippingCharge` and `amounts` as `null`. `shipTo` and `options` are populated either way: they are what you asked for and what is on offer, and both are answers whichever way the change would go.\n","properties":{"amounts":{"allOf":[{"$ref":"#/components/schemas/FulfillmentPreviewedAmounts"}],"description":"What the whole order would be worth after the change. `null` when `refusal` is set.\n","nullable":true},"options":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderShippingOptions"}],"description":"The options at the destination the change would move the parcel to -- at the order's own destination where the address does not move. Same item shape as `GET /orders/{id}/shipping/options`.\n\n⚠️ **Where the address moves, `availability` reads `unknown`**, because whether a carrier reaches an address is read from the destination the order already has. `unknown` is not a refusal and such an option can still be chosen; re-read the options list after the change to see real availability at the new address.\n"},"refusal":{"allOf":[{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}],"description":"The problem document `PUT /orders/{id}/shipping` would answer for this change, whole -- or `null` where the change would be made. Parse it exactly as you parse a refused write; its own `status` is the status that write would have answered, and `code` is what you branch on. The response carrying it is a `200`, because finding this out is what you asked for.\n","nullable":true},"shipTo":{"allOf":[{"$ref":"#/components/schemas/FulfillmentShipToAddress"}],"description":"The address the change would store -- what you sent, trimmed, with blank members cleared, `country` upshifted and `phone` written as E.164. Compare it with the address you sent to see what this service corrected.\n"},"shippingCharge":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"The shipping line the order would be billed under -- the same meaning this member has on `GET /orders/{id}/shipping` and on a successful change. It does **not** include tax, the statutory delivery fee or surcharges; `amounts` is where those land. `null` when `refusal` is set, because a refused change bills nothing.\n","nullable":true},"shippingOptionId":{"description":"The option the change would leave the order holding. On a refusal, the one your body named, or the order's own where it named none. Absent on an order that holds no option, which is the same order that answers `thirdPartyBilled: false`.\n","example":"USPS_1CLASS","type":"string"},"thirdPartyBilled":{"description":"Whether the order's shipping is billed to your own carrier account. `false` is a reading rather than a refusal, and the same reading `GET /orders/{id}/shipping` gives.\n","example":true,"type":"boolean"},"wouldChange":{"description":"Whether the change would actually change anything -- that is, whether it would move the order's validator. Always `false` on a refusal.\n\n⚠️ It is not \"the body differs from what you read\". Restating a stored phone number in a different spelling reads as `true`, because this service writes it as E.164 and that is a different stored value.\n","example":true,"type":"boolean"}},"required":["shipTo","thirdPartyBilled","shippingCharge","amounts","options","refusal","wouldChange"],"type":"object"},"FulfillmentOrderStatusProgress":{"description":"How far fulfilment has got, as the order list and each `statusHistory` entry carry it. The same object, at the same path, as `progress` on `GET /orders/{id}`, less `billing`: these payloads do not report billing, so the member is absent rather than null. Read it from the order detail. An absent `billing` says this payload does not carry billing; it is unrelated to a `fulfillment` of `none`, which says the status was classified and has no fulfilment.\n","properties":{"fulfillment":{"$ref":"#/components/schemas/FulfillmentOrderFulfillmentProgress"}},"required":["fulfillment"],"type":"object"},"FulfillmentOrderSummary":{"properties":{"configuredProductCount":{"description":"Number of distinct configured products on the order, regardless of the quantity ordered of each. 0 when the order carries none.\n","example":12,"minimum":0,"type":"integer"},"configuredProducts":{"description":"The order's first configured products, at most three, in the order its items were recorded. Always the start of the list `GET /api/v1/fulfillment/orders/{id}/configured-products` returns, which is where the rest are. Empty when `configuredProductCount` is 0.\n","items":{"$ref":"#/components/schemas/FulfillmentConfiguredProduct"},"maxItems":3,"type":"array"},"createdAt":{"description":"Timestamp from received_at","example":"2026-02-15T14:22:08.483-06:00","type":"string"},"deliveryLocation":{"$ref":"#/components/schemas/FulfillmentOrderDeliveryLocation"},"entry":{"allOf":[{"$ref":"#/components/schemas/FulfillmentOrderEntry"}],"description":"The Order Submit API entry this order was imported in, as on the order's detail. Null when no entry of yours is behind the order: a charge added to your account by hand, or a reprint WHCC made of an order you placed through the WHCC API, which carries that order's `sourceOrder`.\n","nullable":true},"id":{"description":"Order ID when available, otherwise the numeric order number as a string","example":"FO_Xt7mK9pR2wQ4nYd","type":"string"},"links":{"$ref":"#/components/schemas/FulfillmentOrderSummaryLinks"},"orderNumber":{"description":"Numeric WHCC order number","example":"90000001","type":"string"},"productType":{"description":"Product category. Known values include: Loose Prints, Book, Canvas Wrap, Metal Print, Acrylic Print, Image Box, Press Cards, Albums, and others. New values may be added without a version change.\n","example":"Book","type":"string"},"progress":{"$ref":"#/components/schemas/FulfillmentOrderStatusProgress"},"reference":{"description":"Empty strings are normalized to null","example":"SR 1000001-TnVsbFJlZg","nullable":true,"type":"string"},"sourceOrder":{"allOf":[{"$ref":"#/components/schemas/FulfillmentSourceOrderReference"}],"description":"The WHCC API submission this order was split from, as on the order's detail: its `id` is the submission's `submission.id`. Null when the order did not come from one. For the Order Submit API entry behind the order, whatever its channel, read `entry`.\n","nullable":true},"status":{"description":"Defaults to \"Order Received\" when no tracking data exists yet","example":"In Production","type":"string"},"statusAt":{"description":"Timestamp of the status with timezone. Defaults to createdAt when no tracking data exists yet.","example":"2026-02-16T06:21:43.223-06:00","type":"string"}},"required":["id","orderNumber","sourceOrder","entry","createdAt","productType","status","progress","statusAt","deliveryLocation","configuredProductCount","configuredProducts","links"],"type":"object"},"FulfillmentOrderSummaryLinks":{"properties":{"entry":{"description":"Relative URL to the order list narrowed to this order's entry: every order the entry produced, this one included. Null when `entry` is null.\n","example":"/api/v1/fulfillment/orders?entryConfirmationId=f27c9d34-c2ce-4685-b667-25c99fb4855f","nullable":true,"type":"string"},"self":{"description":"Relative URL to the order detail endpoint","example":"/api/v1/fulfillment/orders/FO_Xt7mK9pR2wQ4nYd","type":"string"},"tracking":{"description":"Combined shipping tracking URL. Null when no shipments exist yet.","example":"https://www.fedex.com/fedextrack/?trknbr=794644790128","format":"uri","nullable":true,"type":"string"}},"required":["self","tracking","entry"],"type":"object"},"FulfillmentOrderTracking":{"properties":{"lastConfirmedAt":{"description":"Last time this status was re-recorded, or null if it only occurred once","example":"2026-02-07T17:45:12.110-06:00","nullable":true,"type":"string"},"occurredAt":{"description":"When the order entered this status","example":"2026-02-07T06:23:27.393-06:00","type":"string"},"progress":{"$ref":"#/components/schemas/FulfillmentOrderStatusProgress"},"status":{"example":"In Production","type":"string"}},"required":["occurredAt","status","progress"],"type":"object"},"FulfillmentPagination":{"properties":{"hasMore":{"description":"Whether more results exist beyond this page","example":true,"type":"boolean"},"limit":{"description":"Requested page size","example":25,"type":"integer"},"nextAfter":{"description":"Opaque cursor token. Pass as `?after=` to fetch the next page of newer orders. Null when no newer orders precede this page, and always null on a page fetched with `before` or with none of `before`, `after` and `startAt`.","nullable":true,"type":"string"},"nextBefore":{"description":"Opaque cursor token. Pass as `?before=` to fetch the next page of older orders. Null when no older orders follow this page, and always null on a page fetched with `after`.","example":"OTAwMDAwMDE","nullable":true,"type":"string"}},"required":["limit","hasMore"],"type":"object"},"FulfillmentPaymentActions":{"properties":{"setCard":{"$ref":"#/components/schemas/FulfillmentSetCardAction"}},"required":["setCard"],"type":"object"},"FulfillmentPaymentMethod":{"description":"Polymorphic saved payment method. Today only `type: card` is emitted. Other `type` values are reserved so additional method types (PayPal accounts, Apple Pay, Google Pay, bank accounts, Venmo) can be added in the future without breaking consumers.\n","discriminator":{"mapping":{"card":"#/components/schemas/CardPaymentMethod"},"propertyName":"type"},"properties":{"isDefault":{"description":"Whether this is the account's default method.","example":true,"type":"boolean"},"token":{"description":"Persistent identifier for the saved method, scoped to the account's payment provider. Reusable across multiple transactions; this is NOT a single-use nonce. Treat as sensitive: do not log or leak outside the authenticated session.\n","example":"abc123vault","type":"string"},"type":{"description":"Discriminator. Today only `card` is emitted; the other values are reserved for forward compatibility.\n","enum":["card","paypal","apple_pay","google_pay","bank_account","venmo"],"type":"string"}},"required":["type","token","isDefault"],"type":"object"},"FulfillmentPreviewedAmounts":{"description":"What an order would be worth after a shipping change: the same four amounts `financials.amounts` carries on order detail, so \"before\" and \"after\" are the same four members rather than two vocabularies.\n\n⚠️ **`statutoryDeliveryFee` is already included in `subtotal` and `total`.** It is one of the order's lines, the subtotal is the sum of the lines, and the total is subtotal less discount plus tax. It is published on its own so you can name it to a customer; adding it to `total` charges it twice.\n","properties":{"discount":{"$ref":"#/components/schemas/FulfillmentMoney"},"statutoryDeliveryFee":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"The Colorado or Minnesota statutory delivery fee the destination owes. **Absent where it owes none** -- which is a different statement from a fee of zero, and a state fee is never zero. Already counted in `subtotal` and `total`.\n"},"subtotal":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"The order's lines, the statutory delivery fee among them where the destination owes one.\n"},"tax":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"The tax the destination the change would move to owes. A tax that could not be calculated fails the preview with `502 read-failed` rather than reading as zero.\n"},"total":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"Subtotal less discount, plus tax."}},"required":["subtotal","discount","tax","total"],"type":"object"},"FulfillmentProblemDetails":{"description":"RFC 7807 Problem Details","properties":{"detail":{"type":"string"},"status":{"type":"integer"},"title":{"type":"string"},"type":{"default":"about:blank","type":"string"}},"required":["title","status"],"type":"object"},"FulfillmentRotateEventSubscriptionSecretRequest":{"additionalProperties":false,"description":"Optional, and usually omitted entirely. Every field defaults, so an absent body and `{}` are the same request.\n","properties":{"expiresIn":{"default":3600,"description":"How long the secret this rotation replaces keeps signing deliveries alongside the fresh one, in seconds. Omit it, send `null`, or send `{}` for the default of one hour, which is also the minimum.\n\n**An hour is your runway to install the new secret, not a promise that every delivery already in flight stays verifiable.** A delivery is signed when it is sent, and a failing one is retried for up to 9,330 minutes -- 6 days, 11.5 hours. A delivery first sent before you rotated can therefore arrive long after the overlap has closed, carrying only the secret the rotation retired. If you need those to keep verifying, ask for a window that covers the retry ladder (`559800` or more) rather than taking the default, or keep the previous secret on your side until the ladder is exhausted.\n","example":3600,"maximum":2592000,"minimum":3600,"nullable":true,"type":"integer"}},"type":"object"},"FulfillmentSetCardAction":{"description":"A single-use launch link for setting the account's card on file. Navigate/redirect the user to `url`; do not attempt to construct this URL yourself or reuse it past `expiresAt`.\n","properties":{"expiresAt":{"description":"When the launch URL stops working. Re-request the expansion for a fresh one.","example":"2026-07-11T12:15:00.000-05:00","format":"date-time","type":"string"},"url":{"description":"Single-use launch URL carrying a short-lived signed token. Treat as sensitive -- do not log the full URL.\n","example":"https://payments.whcc.com/card?t=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...","format":"uri","type":"string"}},"required":["url","expiresAt"],"type":"object"},"FulfillmentShipToAddress":{"description":"Where an order's parcel is going, as this API reads it back.\n\n**This is what the stores hold, relayed as they hold it.** Nothing here is normalised, padded or corrected on the way out, and no member is constrained: values predating this API can be shorter, longer or differently formatted than a change to the address would accept. Every member is always present, `null` where nothing is held, so an unchanged read-modify-write is a straight copy -- every member is `required` here for that reason, though any of them may be `null`. A blank string is a real stored value and is not the same as `null`.\n\nThe rules a *change* must satisfy are on the shipping change operation, not here.\n","properties":{"addr1":{"example":"64 Dikeman St","nullable":true,"type":"string"},"addr2":{"nullable":true,"type":"string"},"addr3":{"nullable":true,"type":"string"},"attn":{"description":"The person the parcel is addressed to.","example":"Dana Whitfield","nullable":true,"type":"string"},"city":{"example":"Brooklyn","nullable":true,"type":"string"},"country":{"description":"Two-letter country code. Stored values may be in either case.","example":"US","nullable":true,"type":"string"},"name":{"description":"The business or studio name on the label, where there is one.","example":"Whitfield Studio","nullable":true,"type":"string"},"phone":{"description":"Contact number for the delivery. Stored in a range of formats; newer values are in E.164.\n","example":"+17185551234","nullable":true,"type":"string"},"state":{"description":"State or province. Absent for destinations that have none.","example":"NY","nullable":true,"type":"string"},"zip":{"example":"11231-1506","nullable":true,"type":"string"}},"required":["attn","name","addr1","addr2","addr3","city","state","zip","country","phone"],"type":"object"},"FulfillmentShipToAddressWrite":{"additionalProperties":false,"description":"Where you are asking an order's parcel to go.\n\n**A full-state address: a member you omit is a member you are clearing.** This is the same field set `ShipToAddress` reads back, with the rules a change has to satisfy. Those rules are here and not on the read, because stored values predate them: an address you read back may legitimately be longer or differently formatted than one you may write.\n\n`addr1`, `city`, `zip` and `country` are required, and at least one of `attn` and `name`. That pair is enforced when the request is handled rather than by this schema, so the refusal can name the members. A `US` address needs a two-letter `state` and a `zip` of at least five characters. Every member is trimmed; a blank one clears.\n","properties":{"addr1":{"example":"64 Dikeman St","maxLength":50,"type":"string"},"addr2":{"maxLength":50,"type":"string"},"addr3":{"maxLength":50,"type":"string"},"attn":{"description":"The person the parcel is addressed to. Required unless `name` is given.\n","example":"Dana Whitfield","maxLength":50,"type":"string"},"city":{"description":"35 characters, which is narrower than the other lines.","example":"Brooklyn","maxLength":35,"type":"string"},"country":{"description":"Two-letter country code. Accepted in either case and upshifted. A change that moves the parcel to a different country is refused.\n","example":"US","maxLength":2,"minLength":2,"type":"string"},"name":{"description":"The business or studio name on the label. Required unless `attn` is given, so a consumer with no business name does not force one.\n","example":"Whitfield Studio","maxLength":50,"type":"string"},"phone":{"description":"Contact number for the delivery, sent on in E.164. Common US shapes are read and converted; a value carrying letters or an extension is refused rather than guessed at.\n","example":"+17185551234","maxLength":50,"type":"string"},"state":{"description":"State or province. Required and exactly two letters on a `US` address; optional elsewhere, because much of the world has none.\n","example":"NY","maxLength":10,"type":"string"},"zip":{"description":"Postal code. At least five characters on a `US` address; ZIP+4 is accepted.\n","example":"11231-1506","maxLength":10,"type":"string"}},"required":["addr1","city","zip","country"],"type":"object"},"FulfillmentShippingChangeRequest":{"additionalProperties":false,"description":"A replacement shipping state. Unknown keys are refused with `400` rather than ignored.\n","properties":{"shipTo":{"$ref":"#/components/schemas/FulfillmentShipToAddressWrite"},"shippingOptionId":{"description":"The option to move the order onto, as an `id` from `GET /orders/{id}/shipping/options`. **Omit it to leave the order on the option it already holds** -- this is the only member of this request whose absence does not clear something. Sending the option the order already holds is a satisfied request that changes nothing.\n","example":"USPS_1CLASS","minLength":1,"type":"string"}},"required":["shipTo"],"type":"object"},"FulfillmentShippingOption":{"description":"One thing an order may be moved to ship on, priced for your account.\n\nNot a shipping method: the same carrier service delivered Saturday and delivered on a weekday are two options, because they differ in delivery date, price and availability.\n\n`label` is what to show a person; `id` is what to select the option by.\n","properties":{"accessorials":{"description":"Extras folded into this option, which change its delivery date, price or both -- so an option carrying one is a different option rather than the same one with a flag. Open array, empty on most options. Lowercase. Known value: saturday.\n","example":["saturday"],"items":{"type":"string"},"type":"array"},"availability":{"$ref":"#/components/schemas/FulfillmentShippingOptionAvailability"},"carrier":{"description":"Who carries the parcel. Open string -- carriers are added without a change to this contract. Lowercase. Known values: fedex, usps, ups.\n","example":"usps","type":"string"},"current":{"description":"Whether this is the option the order holds today -- what a change would be moving it from. Exactly one option in the list carries `true`.\n\nAdvisory: it is what this list saw. `GET /orders/{id}/shipping` is the authority, and is where the validator for a change comes from.\n","example":true,"type":"boolean"},"estimatedDeliveryDate":{"description":"When the parcel would arrive on this option. **Absent where nothing dated it, which is ordinary rather than a fault** -- most options are undated. It is not an availability claim: a date says when the parcel would arrive if the carrier takes it, not that it will.\n","example":"2026-09-12","format":"date","type":"string"},"id":{"description":"The identifier a change names this option by, and the same one `GET /orders/{id}/shipping` reports as `shippingOptionId`. Opaque and stable: do not parse it, and do not construct one.\n","example":"USPS_1CLASS","type":"string"},"label":{"description":"The carrier's name for this option, for display -- including any extras it carries, such as Saturday delivery. Always present and never empty. Not an identifier: select and compare options by `id`.\n","example":"USPS Ground Advantage","minLength":1,"type":"string"},"price":{"allOf":[{"$ref":"#/components/schemas/FulfillmentMoney"}],"description":"What this option costs your account. This is the option's price, which can differ from what the order is currently billed -- for that, read `shippingCharge` on the order's shipping state.\n"}},"required":["id","carrier","label","accessorials","price","current","availability"],"type":"object"},"FulfillmentShippingOptionAvailability":{"description":"Whether an order may take an option and, where it may not, why.\n\nThree-valued deliberately: `unknown` is not a euphemism for available and not an error -- it means a check has not been run, and an option carrying it can still be chosen. Treat an `unknown` option as selectable and show `detail` to a customer who asks.\n","properties":{"detail":{"description":"What to say to the person asking. Always present, and the member to show when `status` alone would not explain anything -- which is the common case today.\n","example":"Whether the carrier reaches this destination on this service has not been measured. The option can still be chosen.","type":"string"},"reason":{"description":"Which check refused. Present exactly when `status` is `unavailable`, absent otherwise. Open string -- reasons arrive as checks arrive and go when a check goes, so branch on the ones you know and treat an unrecognised one as unavailable. Known values: `not-serviceable` (the carrier does not reach this destination on this service: a route the carrier has declined to serve, or a PO Box for a FedEx option; where the carrier's answer is not known the option reads `unknown` instead), `country-not-supported` (the option and the destination are not both in the one country served today), `not-billable-to-partner` (you hold no carrier account this option's carrier could bill the label to).\n","example":"not-serviceable","type":"string"},"status":{"description":"Open string. Known values: `available` (every check was run and said yes), `unavailable` (one said no -- `reason` says which), `unknown` (one has not been run). Treat a value you do not recognise as unavailable rather than as an error.\n","example":"unknown","type":"string"}},"required":["status","detail"],"type":"object"},"FulfillmentShippingProblemDetails":{"allOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"properties":{"code":{"description":"Stable machine-readable identifier for the refusal.\n\n**Casing says which service decided.** The two values this service owns are snake_case: `shipping_change_not_begun` (503 -- the change was never begun, so re-send it) and `shipping_change_unconfirmed` (504 -- the change was sent and never answered, so re-read before re-sending). Every other value is kebab-case and comes from the service behind this one, relayed unaltered. Known kebab-case values include `etag-mismatch` (412), `if-match-required` (428), `not-changeable-online`, `order-not-editable`, `carrier-account-unresolvable`, `negative-balance-withheld`, `current-offer-unreadable` (409), `invalid-address`, `offer-not-available`, `boundary-crossing-withheld`, `credit-floor-withheld`, `region-surcharge-withheld`, `derived-charge-withheld`, `unwritable-fields` (422), `order-not-found` and `shipment-not-found` (404), and `read-failed`, `shipping-change-failed` and `unhandled-error` (502 -- the service behind this one reporting its own failure, answered under this status so that its failures stay distinguishable from this service's). Each operation's description lists the codes it can answer, with what re-sending does and how permanent each is.\n","example":"etag-mismatch","type":"string"},"reason":{"description":"Why, in the same open vocabulary an option's `availability.reason` uses -- so \"not yet\" and \"never\" stay distinguishable. `offer-not-available` is the refusal that carries one today; it is relayed wherever it is sent, so a refusal that starts reporting one reaches you rather than having it dropped. Absent otherwise.\n","example":"not-serviceable","type":"string"}},"required":["code"],"type":"object"}],"description":"RFC 7807 Problem Details for a shipping refusal that names which rule said no, extended with a stable machine-readable `code`.\n\n**Almost every one of these came from the service behind this one** and is relayed unaltered. The two exceptions are this service's own answers about its time budget -- `shipping_change_not_begun` and `shipping_change_unconfirmed` on `PUT /orders/{id}/shipping` -- and `code` tells you which is which by its casing: snake_case is this service, kebab-case is the one behind it.\n\n**`code` is an open string, not a fixed list.** Values are added as new rules arrive; branch on the ones you know and treat an unrecognised one as a refusal rather than as a fault. `detail` is the sentence to show a customer.\n"},"FulfillmentSourceOrderReference":{"properties":{"duplicateIndex":{"description":"Duplicate item index when present, otherwise null","example":null,"nullable":true,"type":"integer"},"id":{"description":"Source order identifier","example":"Q4SWdKQhLgLTxQFNE","type":"string"},"orderIndex":{"description":"Position of this fulfillment order within the source order","example":1,"type":"integer"}},"required":["id","orderIndex","duplicateIndex"],"type":"object"},"FulfillmentTestEventRequest":{"additionalProperties":false,"description":"Which event to fire, and optionally which of your orders to fire it against. No field carries payload data: the shipment rows and image errors a synthetic payload needs are generated by WHCC, so nothing a caller sends can put a tracking number that looks real into a webhook.\n","properties":{"confirmationId":{"description":"One of your own orders, named by its confirmation ID, for the webhook to be built from. Omit it to fire against the synthetic order WHCC keeps for your account.\n\nIt must name an order on the calling account: anything else answers `404 confirmation_not_found`, which covers \"no such order\" and \"somebody else's order\" with one response. Nothing is written to the order, and its state is not advanced -- the notification is built from it and delivered, and that is all.\n","example":"8f14e45f-ceea-467a-9f3c-4f2d1a6b7c05","format":"uuid","type":"string"},"eventType":{"description":"One dotted event type. It must exist at this subscription's `destination.version` **and** be one this subscription's `eventTypes` selects.\n","example":"order.shipped","type":"string"}},"required":["eventType"],"type":"object"},"FulfillmentUnsupportedApiVersionProblemDetails":{"description":"The refusal of a `WHCC-API-Version` this API does not serve. It carries no `code` and no `instance`, so it stands alone rather than extending `ProblemDetails`: a body can then be told apart from every other `400` by its `type`, and a union that includes it never has to relax a sibling's required `code`. `supportedVersions` lists the months you may send.\n","properties":{"detail":{"example":"API version '2026-09' is not supported. Use one of the supported versions.","type":"string"},"status":{"enum":[400],"type":"integer"},"supportedVersions":{"example":["2026-10"],"items":{"type":"string"},"type":"array"},"title":{"enum":["Unsupported API version"],"type":"string"},"type":{"enum":["https://developer.whcc.com/problems/unsupported-api-version"],"type":"string"}},"required":["type","title","status","detail","supportedVersions"],"type":"object"},"FulfillmentUpdateEventSubscriptionRequest":{"additionalProperties":false,"description":"A full replace of `destination`, `eventTypes` and `description` -- **not a patch.** A field you omit is not carried over from the current resource: `eventTypes` omitted means `[\"*\"]`, exactly as on a create, and `description` omitted means null. `id`, `accountNo`, `status` and `signingSecret` are all immutable and are refused by name if sent -- this object is declared closed for the same reason `CreateEventSubscriptionRequest` is.\n","properties":{"acknowledgeIncompleteCoverage":{"description":"Same as on a create, and not carried over from one: request-scoped, not stored, so a `PUT` that still leaves coverage incomplete has to supply it again.\n","example":false,"type":"boolean"},"description":{"description":"Free text, for your own reference. At most 255 bytes. Omit to clear it.","example":"Sunshine Photo Cart -- production","maxLength":255,"type":"string"},"destination":{"allOf":[{"$ref":"#/components/schemas/FulfillmentCreateEventSubscriptionDestination"}],"description":"Same validation as a create's `destination`, with one addition: `version` cannot disagree with the subscription's current one. Omit it to keep the current version; send a different one and the request is refused, `422 destination_version_immutable`.\n"},"eventTypes":{"description":"Same rules as a create's `eventTypes`. Omit for `[\"*\"]`.\n","example":["order.accepted","order.rejected","order.shipped"],"items":{"type":"string"},"minItems":1,"type":"array"}},"required":["destination"],"type":"object"},"FulfillmentWebhookDestination":{"description":"An HTTPS endpoint that receives signed POSTs. The `webhook` arm of `EventSubscriptionDestination`, declared standalone rather than by `allOf` on the union: a variant that composed the union it belongs to would validate against its own siblings.\n","properties":{"callbackUri":{"description":"Absolute `https` URL that receives deliveries, at most 2048 **bytes**, carrying no `user:pass@` prefix. The limit is the storage column's own width and `varchar` counts bytes, so a URL carrying non-ASCII characters reaches it sooner than its character count suggests. `https` is the only accepted scheme; anything else, a URL that is empty once tab, carriage return and line feed are stripped, or one carrying any of those characters, is `422 invalid_callback_uri`. A URI written now is on port `443` or `8443`; one written before that rule may carry any port, and is still delivered to. Delivery itself refuses an endpoint that resolves to a private address, so registering one here registers an endpoint nothing will call.\n","example":"https://partner.example.com/whcc/events","format":"uri","type":"string"},"type":{"description":"Destination transport. `webhook` is the only value this API emits today, and it is deliberately **not** declared as a closed enum here: this is the read shape, and a client that knows only `webhook` has to be able to meet a destination it does not recognise without failing the response. The write shape is closed -- `CreateWebhookDestination` -- because a write this API cannot honour is `422 unsupported_destination_type` rather than something to tolerate.\n","example":"webhook","type":"string"},"version":{"default":2,"description":"Payload version. Omit it for `2`, which is the only version that carries rejected and cancelled orders. Always present on a read.\n\nVersion `1` is created behind `apikey:oas`, carries `order.accepted` and `order.shipped`, and delivers the ImageDownload body to a `*` subscription only. It is fixed at create.\n","enum":[1,2],"example":2,"type":"integer"}},"required":["type","callbackUri"],"type":"object"},"Model10":{"description":"This page of products, ordered by name.","items":{"$ref":"#/components/schemas/CatalogProduct"},"type":"array"},"Model104":{"description":"Stripe-style metadata attached to this order item. Echoed on every item read; never forwarded to fulfillment, and excluded from the idempotency checksum.","nullable":true,"type":"object"},"Model105":{"properties":{"cachedUnitPrice":{"description":"Supplied unit price, which may be used if checksum matches. Some products are always re-priced, so a matching checksum does not guarantee this price.","type":"string"},"checksum":{"description":"MD5 checksum of the order item","type":"string"},"configuredProductId":{"anyOf":[{"pattern":"^CF_(?<encoded>[A-Za-z0-9]{23,47})$","type":"string"},{"pattern":"^[23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz]{17}$","type":"string"}],"description":"Id of the configured product to order"},"creatorProduct":{"$ref":"#/components/schemas/creatorProduct"},"editorId":{"description":"Id of the editor to order","type":"string"},"metadata":{"$ref":"#/components/schemas/Model104"},"quantity":{"description":"How many of this item to order, a whole number from 1 to 10000. Omit it to keep the quantity the configured product was built with. Products with ordering rules (for example cards, in steps of 5) also have to satisfy those, or the request returns 400.","maximum":10000,"minimum":1,"type":"integer"},"tracking":{"$ref":"#/components/schemas/tracking"}},"type":"object"},"Model106":{"description":"The items to submit. Each configuredProductId may appear once; a repeat is a 400 naming the repeated line, so set quantity instead. Mapped to the shared editors[] vocabulary before validation of the DOMAIN shape (per-entry) -- the wire-level array key is items, not editors.","items":{"$ref":"#/components/schemas/Model105"},"minItems":1,"type":"array"},"Model107":{"properties":{"addr1":{"nullable":true,"type":"string"},"addr2":{"nullable":true,"type":"string"},"attn":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"country":{"maxLength":2,"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"phone":{"type":"string"},"state":{"maxLength":3,"nullable":true,"type":"string"},"zip":{"nullable":true,"type":"string"},"zipType":{"$ref":"#/components/schemas/zipType"}},"type":"object"},"Model108":{"description":"Integrations send `studio` or `dropship`; `basic` is reserved for WHCC storefronts. `priority` must belong to this type -- a priority from a different type is rejected as a 400 identifying both `shipping.type` and `shipping.priority`. Must also be one of the shipping types your account offers for these products -- an unsupported type is rejected as a 400 identifying `shipping.type` on submit, and reported in `validation.invalidParams` on calculate.","enum":["dropship","studio","basic"],"nullable":true,"type":"string","x-convert":{"trim":true}},"Model109":{"description":"Return address printed on the shipping label of a drop-ship order. Not allowed with studio shipping. Only the shipping label changes; packing slips, inserts and emails do not.","properties":{"addr1":{"description":"Street address, line 1.","type":"string","x-convert":{"trim":true}},"addr2":{"description":"Street address, line 2.","type":"string","x-convert":{"trim":true}},"city":{"description":"City.","type":"string","x-convert":{"trim":true}},"country":{"$ref":"#/components/schemas/country"},"name":{"description":"Name printed as the sender on the shipping label.","type":"string","x-convert":{"trim":true}},"phone":{"description":"Optional. Exactly 10 digits, no spaces or punctuation.","pattern":"^\\d{10}$","type":"string"},"state":{"description":"State or territory code.","type":"string","x-convert":{"trim":true}},"zip":{"description":"Postal code.","type":"string","x-convert":{"trim":true}}},"required":["name","addr1","city","state","zip","country"],"type":"object"},"Model110":{"properties":{"packagingId":{"$ref":"#/components/schemas/packagingId"},"shipmentId":{"type":"string"},"shippingPriorityId":{"description":"Shipping priority option.","pattern":"^flat_rate_\\w*|^basic_expedited_\\w*|^basic_overnight_\\w*|^studio_\\w+|^dropship_\\w+","type":"string","x-convert":{"trim":true}}},"required":["shipmentId","shippingPriorityId"],"type":"object"},"Model111":{"description":"Shipping priority & Packaging choices for the previously-identified product groups","items":{"$ref":"#/components/schemas/Model110"},"type":"array"},"Model112":{"description":"Shipping information for the end user","properties":{"address":{"$ref":"#/components/schemas/Model107"},"priority":{"description":"The specific shipping speed within `shipping.type`. Validated by family: it must belong to `shipping.type` (`studio_*` or `dropship_*`; the `flat_rate_*`/`basic_*` family is reserved for WHCC storefronts), or both fields are reported in a 400. Availability for the order's destination is checked at calculate and submit once an address is known; an unavailable priority is rejected as a 400 identifying `shipping.priority`. Omit it to get the usual choice for the destination and `shipping.type`.","pattern":"^flat_rate_\\w*|^basic_expedited_\\w*|^basic_overnight_\\w*|^studio_\\w+|^dropship_\\w+","type":"string","x-convert":{"trim":true}},"returnAddress":{"$ref":"#/components/schemas/Model109"},"shipments":{"$ref":"#/components/schemas/Model111"},"type":{"$ref":"#/components/schemas/Model108"}},"required":["address"],"type":"object"},"Model113":{"description":"Flat string-to-string map (Stripe-style metadata). Max 50 keys, key length <= 40 Unicode code points (may not start with '$' or contain '.', '[', ']', or a null character), value length <= 500 Unicode code points. Absent or null means an empty map. Nested objects/arrays and non-string values are rejected.","nullable":true,"type":"object"},"Model114":{"description":"Optional. Where the buyer is shopping, recorded on the order for reporting: { type: external, id } (id is your own identifier for the place of sale) or { type: collaborationShare, id, linkId } (the share and the share link the buyer arrived through). Any other type, an unknown key, external with a linkId, or collaborationShare without one is a 400. A collaborationShare whose link is not in your account, is revoked or expired, or does not belong to share id is a 422 with code cart.salesChannel.invalid; a share with sales switched off is accepted. It does not change the price and is not sent for fulfillment.","properties":{"id":{"description":"collaborationShare: the share id. external: the caller's own identifier for the place of sale.","maxLength":255,"minLength":1,"type":"string"},"linkId":{"description":"collaborationShare only, required: the share link the buyer arrived through.","maxLength":255,"minLength":1,"type":"string"},"type":{"$ref":"#/components/schemas/type"}},"required":["type","id","linkId"],"type":"object"},"Model115":{"description":"POST /api/v1/commerce/submissions payload. Exactly these six root keys -- any other key (`submit` included) is a 400.","properties":{"instructions":{"nullable":true,"type":"string"},"items":{"$ref":"#/components/schemas/Model106"},"metadata":{"$ref":"#/components/schemas/Model113"},"reference":{"description":"Short, opaque, partner-supplied identifier surfaced on the fulfillment run sheet. Capped at a fixed-width column limit; a longer value is rejected. When an order is split into more than one WHCC order, ' - X of Y' is appended to this value AFTER that cap is applied, so the usable length is shorter in that case.","maxLength":32,"nullable":true,"type":"string"},"salesChannel":{"$ref":"#/components/schemas/Model114"},"shipping":{"$ref":"#/components/schemas/Model112"}},"required":["items","shipping"],"type":"object"},"Model116":{"description":"The items to submit. Each configuredProductId may appear once; a repeat is a 400 naming the repeated line, so set quantity instead. Mapped to the shared editors[] vocabulary before validation of the DOMAIN shape (per-entry) -- the wire-level array key is items, not editors.","items":{"$ref":"#/components/schemas/Model105"},"minItems":1,"type":"array"},"Model117":{"properties":{"addr1":{"nullable":true,"type":"string"},"addr2":{"nullable":true,"type":"string"},"attn":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"country":{"maxLength":2,"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"phone":{"type":"string"},"state":{"maxLength":3,"nullable":true,"type":"string"},"zip":{"nullable":true,"type":"string"},"zipType":{"$ref":"#/components/schemas/zipType"}},"type":"object"},"Model118":{"description":"Integrations send `studio` or `dropship`; `basic` is reserved for WHCC storefronts. `priority` must belong to this type -- a priority from a different type is rejected as a 400 identifying both `shipping.type` and `shipping.priority`. Must also be one of the shipping types your account offers for these products -- an unsupported type is rejected as a 400 identifying `shipping.type` on submit, and reported in `validation.invalidParams` on calculate.","enum":["dropship","studio","basic"],"nullable":true,"type":"string","x-convert":{"trim":true}},"Model119":{"description":"Return address printed on the shipping label of a drop-ship order. Not allowed with studio shipping. Only the shipping label changes; packing slips, inserts and emails do not.","properties":{"addr1":{"description":"Street address, line 1.","type":"string","x-convert":{"trim":true}},"addr2":{"description":"Street address, line 2.","type":"string","x-convert":{"trim":true}},"city":{"description":"City.","type":"string","x-convert":{"trim":true}},"country":{"$ref":"#/components/schemas/country"},"name":{"description":"Name printed as the sender on the shipping label.","type":"string","x-convert":{"trim":true}},"phone":{"description":"Optional. Exactly 10 digits, no spaces or punctuation.","pattern":"^\\d{10}$","type":"string"},"state":{"description":"State or territory code.","type":"string","x-convert":{"trim":true}},"zip":{"description":"Postal code.","type":"string","x-convert":{"trim":true}}},"required":["name","addr1","city","state","zip","country"],"type":"object"},"Model120":{"properties":{"packagingId":{"$ref":"#/components/schemas/packagingId"},"shipmentId":{"type":"string"},"shippingPriorityId":{"description":"Shipping priority option.","pattern":"^flat_rate_\\w*|^basic_expedited_\\w*|^basic_overnight_\\w*|^studio_\\w+|^dropship_\\w+","type":"string","x-convert":{"trim":true}}},"required":["shipmentId","shippingPriorityId"],"type":"object"},"Model121":{"description":"Shipping priority & Packaging choices for the previously-identified product groups","items":{"$ref":"#/components/schemas/Model120"},"type":"array"},"Model122":{"description":"Shipping information for the end user","properties":{"address":{"$ref":"#/components/schemas/Model117"},"priority":{"description":"The specific shipping speed within `shipping.type`. Validated by family: it must belong to `shipping.type` (`studio_*` or `dropship_*`; the `flat_rate_*`/`basic_*` family is reserved for WHCC storefronts), or both fields are reported in a 400. Availability for the order's destination is checked at calculate and submit once an address is known; an unavailable priority is rejected as a 400 identifying `shipping.priority`. Omit it to get the usual choice for the destination and `shipping.type`.","pattern":"^flat_rate_\\w*|^basic_expedited_\\w*|^basic_overnight_\\w*|^studio_\\w+|^dropship_\\w+","type":"string","x-convert":{"trim":true}},"returnAddress":{"$ref":"#/components/schemas/Model119"},"shipments":{"$ref":"#/components/schemas/Model121"},"type":{"$ref":"#/components/schemas/Model118"}},"type":"object"},"Model123":{"description":"POST /api/v1/commerce/submissions/calculate payload. Identical to the submit payload except shipping.address is optional -- the same body works on both routes. An unrecognized key (submit included) is a 400.","properties":{"instructions":{"nullable":true,"type":"string"},"items":{"$ref":"#/components/schemas/Model116"},"metadata":{"$ref":"#/components/schemas/Model113"},"reference":{"description":"Short, opaque, partner-supplied identifier surfaced on the fulfillment run sheet. Capped at a fixed-width column limit; a longer value is rejected. When an order is split into more than one WHCC order, ' - X of Y' is appended to this value AFTER that cap is applied, so the usable length is shorter in that case.","maxLength":32,"nullable":true,"type":"string"},"salesChannel":{"$ref":"#/components/schemas/Model114"},"shipping":{"$ref":"#/components/schemas/Model122"}},"required":["items","shipping"],"type":"object"},"Model158":{"description":"Optional editor settings: hidePricing, disableUploads, productSwitcher, sizeSelector, quantitySelector, wallArrangement, multiProduct, addToProject, presentationMode. Stored on the item; the last call that sends `settings` wins, a setting it leaves out goes back to the default, and a call without `settings` keeps the stored ones. Simple items created by the same request share one editor, so the settings apply to all of them.","properties":{"addToProject":{"description":"Shows (`true`) or hides (`false`) add to project.","type":"boolean"},"disableUploads":{"description":"`true` hides the photo upload control in the editor. It hides the control only; it does not block uploads.","type":"boolean"},"hidePricing":{"description":"`true` hides prices in the editor. Applies to the link this call returns.","type":"boolean"},"multiProduct":{"description":"Turns multi-product editing on (`true`) or off (`false`). Simple editor.","type":"boolean"},"presentationMode":{"description":"Turns presentation mode on (`true`) or off (`false`).","type":"boolean"},"productSwitcher":{"description":"Shows (`true`) or hides (`false`) the product switcher. Simple, album and book editors.","type":"boolean"},"quantitySelector":{"description":"Shows (`true`) or hides (`false`) the quantity selector. Simple editor.","type":"boolean"},"sizeSelector":{"description":"Shows (`true`) or hides (`false`) the size selector. Simple, album and book editors.","type":"boolean"},"wallArrangement":{"description":"Turns wall arrangements on (`true`) or off (`false`). Simple editor.","type":"boolean"}},"type":"object"},"Model159":{"properties":{"redirects":{"$ref":"#/components/schemas/redirects"},"settings":{"$ref":"#/components/schemas/Model158"}},"required":["redirects"],"type":"object"},"Model16":{"description":"Partner-supported. One processing/validation condition reported against this item.","properties":{"id":{"description":"Partner-supported. Stable numeric code identifying the specific processing/validation condition (e.g. 1005 = still processing, 1006 = processing failed (ours), 1007 = image unavailable or could not be fetched (check the URL)); partners are expected to branch on this value.","type":"number"},"level":{"description":"Partner-supported. Severity level of this validation-summary entry.","type":"string"},"message":{"description":"UI-only. Human-readable explanation of the condition; branch on `id`, not on this text.","type":"string"}},"required":["id","level","message"],"type":"object"},"Model160":{"description":"Partner-supported. HTTP method to use with `url` -- always `GET`.","enum":["GET"],"type":"string"},"Model161":{"description":"Partner-supported. Carries exactly the one action this route exists to mint.","properties":{"edit":{"$ref":"#/components/schemas/edit"}},"required":["edit"],"type":"object"},"Model162":{"properties":{"actions":{"$ref":"#/components/schemas/Model161"},"guidance":{"$ref":"#/components/schemas/guidance"}},"required":["actions"],"type":"object"},"Model17":{"description":"Partner-supported. Status of one requested configured product; no price or configuration detail is ever included.","properties":{"configuredProductId":{"description":"Partner-supported. Echoes the id exactly as requested in `ids`.","type":"string"},"status":{"$ref":"#/components/schemas/status"},"validationSummary":{"$ref":"#/components/schemas/validationSummary"}},"required":["configuredProductId","status"],"type":"object"},"Model18":{"description":"Partner-supported. Agent-facing next-step guidance aggregated across every item's status; one of submit (with calculate)/poll/fix is present, chosen by not-found > failed > processing > ready precedence (the create response never has a not-found item). Omitted entirely for an empty batch.","properties":{"calculate":{"$ref":"#/components/schemas/calculate"},"fix":{"$ref":"#/components/schemas/fix"},"poll":{"$ref":"#/components/schemas/poll"},"submit":{"$ref":"#/components/schemas/submit"}},"type":"object"},"Model19":{"properties":{"actions":{"$ref":"#/components/schemas/Model18"},"items":{"$ref":"#/components/schemas/items"}},"required":["items"],"type":"object"},"Model42":{"description":"What sort of domain this field has, and therefore what to render. `enum` carries `values`, a list to pick from -- render a dropdown. `dimension` carries `unit` and `constraints` and no `values`, because its domain is continuous -- render two number inputs and validate against the constraints. Additive-only: treat a `kind` you do not recognize as a field you cannot render, not as an error.","enum":["enum","dimension"],"type":"string"},"Model43":{"description":"What you can do next with this product, keyed by verb.","properties":{"create":{"$ref":"#/components/schemas/create"}},"required":["create"],"type":"object"},"Model6":{"properties":{"code":{"description":"Stable automation contract; a retired code is never reused. Known codes and their meanings:\n- `order.lifecycle.staged` -- The order has been accepted and validated but has not reached fulfillment; its status becomes order_placed only after submission to WHCC succeeds.\n- `order.lifecycle.submission_enqueued` -- The order was accepted for asynchronous submission; the response status is optimistic and placement has not been confirmed yet.\n- `order.correlation.order_id` -- `id` is this order's permanent identifier. Use it to look the order up and to match it to your own records.\n- `order.correlation.confirmation_pending` -- WHCC order numbers are assigned after submission and aren't available yet. Use `id` until they appear.\n- `order.support.cancellation_via_fulfillment` -- This route does not cancel orders. To cancel a placed WHCC order, call POST /api/v1/fulfillment/orders/{id}/cancel-actions, then POST /api/v1/fulfillment/orders/{id}/cancellation with the cancelToken it returns; {id} is the fulfillment order id or WHCC order number. Whether an order can still be canceled is in its cancelEligibility on GET /api/v1/fulfillment/orders/{id}.\n- `order.safe_use.result_ordering_unspecified` -- Result ordering is not guaranteed; correlate results by configuredProductId.\n- `product.correlation.reference_resolved` -- A product slug or marketingSlug was resolved to a specific product; productId in this response is the resolved product and is the stable reference. Slug resolution is scoped to your credentials, so the same slug may resolve to a different product for another caller.\n- `webhook.support.registration_unavailable` -- Webhook registration is not available to API-key integrations; WHCC configures callback URIs during partner onboarding. Contact your WHCC integration contact to have a callback URI registered for your account.\n- `cart.items.limit_exceeded` -- A cart cannot hold more than the maximum number of active items; remove items from the cart, or use a different cart, before adding, restoring or moving items into it.\n- `cart.submit.shipping_address_missing` -- This cart's shipping address is missing required fields: name, addr1, city, state, zip. Submit will be rejected until they are set.\n- `cart.submit.items_missing` -- This cart has no active items; submit will be rejected until at least one is added.\n- `cart.submit.account_identity_missing` -- One or more active items are missing account identity; submit will be rejected until each item either carries a valid whccAccountId or is updated to allow the cart's own account to apply.\n- `cart.items.contains_removed` -- This cart contains soft-removed items; they are excluded from pricing, submit and default listings, and do not affect readiness to submit.\n- `cart.lifecycle.submitted` -- This cart has already been submitted as an order and is now read-only.\n- `cart.lifecycle.deleted` -- This cart has been soft-deleted; restore it before it can be modified or submitted.\n- `cart.lifecycle.submit_in_flight` -- A submit for this cart is being processed; the cart is temporarily read-only until it completes or is repaired.\n- `cart.item.unresolvable` -- One or more items reference an editor that could not be found, so no order preview could be generated for this cart.\n- `cart.salesChannel.invalid` -- The sales channel this cart was created for is no longer open for orders. Submit will be rejected.\n- `cart.submit.items_not_orderable` -- One or more items in this cart are not ready to be ordered. Submit will be rejected until they are.\n- `cart.submit.not_submittable` -- This cart cannot be submitted as it stands. Submit will be rejected until the cause is resolved.\n- `cart.submit.price_mismatch` -- The cart's price could not be confirmed against the fulfillment price. Re-price the cart before charging.\n- `cart.submit.price_unverifiable` -- The cart's price could not be verified right now. Try again shortly; do not charge until it can be verified.\n- `cart.submit.items_not_in_share` -- An item in this cart has a design that was not made for this cart's share link, so it cannot be sold at the share's price. Submit will be rejected until it is removed.\n- `cart.submit.notifications_forbidden` -- This cart carries notifications, and submitting it requires a permission that this caller does not have. Submit will be rejected with a 403, so do not charge.\n- `cart.submit.price_changed` -- The cart's price changed after the charge: the amount paid before tax is not the cart's retail total now. Nothing was ordered and the cart is still active. Do not retry or charge again; refer the payment for manual review.\n- `cart.submit.price_below_cost` -- The cart's retail total is below its cost plus service fee. Nothing was ordered and the cart is still active. Raise the markup so the retail total covers cost plus fee, or price the cart at cost. The response carries retailTotal; it carries costPlusFee only for a caller with the private scope that asked for a view including wholesale. It is returned when the cart is read with expand=submission, before any charge: do not create a charge for this cart.\n- `order.fanout.multiple_whcc_orders` -- A single order can be split into more than one WHCC order; each has its own order number and confirmation id and ships and tracks independently. Do not assume a one-to-one mapping between an order and a WHCC order.\n- `submission.fanout.multiple_orders` -- A single submission can be split into more than one WHCC order; each has its own order number and confirmation id and ships and tracks independently. Do not assume a one-to-one mapping between a submission and a WHCC order.\n- `order.tracking.available_on_ship` -- Shipment details for a WHCC order appear once that order reaches order_shipped. Treat the WHCC order's own status as authoritative for whether it has shipped: in the rare case that a carrier reports a shipment without detail, a shipped order can carry no shipment details at all. Absence therefore means no shipment details have been reported, which is almost always because the order has not shipped yet.\n- `card.redirect.complete_missing_editor_id_token` -- The redirects.complete url sent with this request contains no per-item marker, so every card, album or book you send to this url comes back to the same place. To tell which item completed, put your own correlation key (for example your order or line id) in the url you send, or include the %EDITOR_ID% token, which for card, album and book items is substituted with that item's configuredProductId.\n- `submission.pricing.destination_required_for_full_total` -- No shipping address was supplied, so no destination is assumed: shipping, salesTax, the US MN/CO retail delivery fee and the Canada import surtax are omitted rather than defaulted or reported as zero. totalPrice reflects product, packaging, discount, surcharges and minimumSurcharge only -- it is a product-only subtotal, not a checkout total. Supply shipping.address to receive the full breakdown.\n- `design.correlation.product_refs_index_envelope` -- Several of your requested product references can resolve to the same global product, so a design's productRefs can carry more than one key. Index the response's products envelope by every key in productRefs, not just the first.\n- `submission.pricing.value_includes_tax` -- totalPrice.value includes tax; totalPrice.total.value is the pre-tax amount. Bill the customer totalPrice.value.\n- `order.update.not_allowed_with_retail` -- An order with a retail line cannot be updated: its price was fixed when the cart was submitted. Place a new order instead.\n- `orders.view.forbidden` -- The wholesale view of an order with a retail line needs the private scope. Request view=retail.\n- `cart.discount.not_allowed_with_retail` -- A retail cart takes no discount code. Remove the discount code, or price the cart at wholesale.\n- `cart.financials.not_allowed_with_retail` -- A retail cart takes no financials: the service fee is calculated for you. Remove financials, or price the cart at wholesale.\n- `pricing.price_not_a_quote` -- This is a price, not a frozen quote. It is recomputed from the catalogue on every request -- catalogue prices, volume tiers and product rules can all change between this response and the order that follows it, so re-check before charging a customer rather than trusting a figure from an hour ago.\nConsumers must tolerate unknown future codes.","type":"string"},"message":{"description":"Human-readable explanation. Not part of the contract; wording may change.","type":"string"}},"required":["code","message"],"type":"object"},"Model75":{"properties":{"fileName":{"minLength":1,"type":"string","x-convert":{"trim":true}},"imageId":{"minLength":1,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"Model76":{"items":{"$ref":"#/components/schemas/Model75"},"minItems":0,"type":"array"},"Model77":{"properties":{"designId":{"minLength":1,"type":"string"},"images":{"$ref":"#/components/schemas/Model76"},"productId":{"type":"string"},"selections":{"$ref":"#/components/schemas/selections"}},"required":["productId","selections"],"type":"object"},"Model78":{"properties":{"configuredProducts":{"$ref":"#/components/schemas/configuredProducts"},"defaultGalleryId":{"type":"string"},"designSpaceFeatureType":{"anyOf":[{"$ref":"#/x-alt-definitions/designSpaceFeatureType"},{"$ref":"#/x-alt-definitions/Model2"}],"default":["multiproduct"]}},"required":["configuredProducts"],"type":"object"},"Model79":{"description":"Partner-supported. One attribute-category selection, presented for display.","properties":{"description":{"description":"Partner-supported. Human-readable description of the selected value.","type":"string"},"id":{"description":"Partner-supported. Stable identifier of the selected attribute-category value.","type":"string"},"label":{"description":"Partner-supported. Human-readable label for the selected value.","type":"string"},"name":{"description":"Partner-supported. Human-readable name of the attribute category this selection belongs to.","type":"string"}},"type":"object"},"Model8":{"description":"Fetch this product in full, including its configuration model.","properties":{"method":{"description":"The HTTP method to use.","type":"string"},"url":{"description":"The absolute URL to call, on the public API host.","type":"string"}},"required":["url","method"],"type":"object"},"Model80":{"description":"Partner-supported. Total price for this item (`unitPrice` times `quantity`).","properties":{"code":{"description":"Partner-supported. ISO currency code for `value`.","type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Partner-supported. Price amount."}},"type":"object"},"Model81":{"description":"Partner-supported. Derived readiness state for this item; the root `actions` verb is chosen by aggregating this value across every item, and this is the field a partner polls on. `awaiting-editor` means a product a person finishes in the editor (a card, album or book) was created and has not been edited yet.","enum":["ready","processing","failed","awaiting-editor"],"type":"string"},"Model82":{"description":"Partner-supported. Caller-supplied flat string-to-string annotation map, echoed back unchanged from this configured product's `metadata` on the create request. Always present -- `{}` when none was sent. At most 50 keys, keys at most 40 code points, values at most 500 code points. WHCC never interprets a key and it is never sent downstream to fulfillment; it is annotation only.","type":"object"},"Model83":{"description":"Partner-supported. One priced configured-product item. The key set is closed: exactly the properties listed here are emitted, and nothing else.","properties":{"configuredProductId":{"description":"Partner-supported. The primary orderable handle for this item -- submit it to `POST /v1/commerce/submissions` to order exactly this configured product. Opaque; do not decode or construct it client-side.","type":"string"},"links":{"$ref":"#/components/schemas/links"},"metadata":{"$ref":"#/components/schemas/Model82"},"pricedAs":{"$ref":"#/components/schemas/pricedAs"},"productId":{"description":"Partner-supported. Catalog id of the product ordered for this item; the same identifier space accepted as `configuredProducts[].productId` on the request.","type":"string"},"quantity":{"description":"Partner-supported. Quantity ordered for this item, a whole number from 1 to 10000.","maximum":10000,"minimum":1,"type":"integer"},"selectionsSummary":{"$ref":"#/components/schemas/selectionsSummary"},"status":{"$ref":"#/components/schemas/Model81"},"totalPrice":{"$ref":"#/components/schemas/Model80"},"unitPrice":{"$ref":"#/components/schemas/unitPrice"},"validationSummary":{"$ref":"#/components/schemas/validationSummary"}},"required":["status","metadata"],"type":"object"},"Model84":{"description":"Partner-supported. One entry per configured product created by this request.","items":{"$ref":"#/components/schemas/Model83"},"type":"array"},"Model85":{"properties":{"actions":{"$ref":"#/components/schemas/Model18"},"guidance":{"$ref":"#/components/schemas/guidance"},"items":{"$ref":"#/components/schemas/Model84"},"totalPrice":{"$ref":"#/components/schemas/totalPrice"}},"type":"object"},"Model86":{"description":"Partner-supported. One entry per configured product created by this request.","items":{"$ref":"#/components/schemas/Model83"},"type":"array"},"Model87":{"properties":{"actions":{"$ref":"#/components/schemas/Model18"},"guidance":{"$ref":"#/components/schemas/guidance"},"items":{"$ref":"#/components/schemas/Model86"},"totalPrice":{"$ref":"#/components/schemas/totalPrice"}},"type":"object"},"Model9":{"description":"What you can do next with this row, keyed by verb.","properties":{"detail":{"$ref":"#/components/schemas/Model8"}},"required":["detail"],"type":"object"},"aspect":{"description":"The product's shape, derived from `width` and `height`. Read-only, and distinct from the `orientation` selection you may send when configuring a product -- nothing can be SELECTED square.","enum":["landscape","portrait","square"],"type":"string"},"calculate":{"description":"Partner-supported. Present whenever `submit` is; call `POST /v1/commerce/submissions/calculate` with the body you would send to submit (but no `Idempotency-Key` header, which it rejects; `shipping.address` is optional) to price the order without placing it.","properties":{"instructions":{"description":"Partner-supported. Human-readable, terse next-step instructions for this verb. The presence of the field is what is partner-supported; the prose itself may be reworded at any time, so never parse or match on it -- branch on which verb key is present.","type":"string"},"method":{"$ref":"#/components/schemas/method"},"url":{"description":"Partner-supported. Fully-resolved URL of the endpoint to call next.","format":"uri","type":"string"}},"required":["instructions"],"type":"object"},"cancel":{"description":"Where the editor's exit button sends your customer when they leave without finishing.","properties":{"text":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["text","url"],"type":"object"},"category":{"description":"The product's category, as an opaque filter token and a display name.","properties":{"name":{"description":"The category's display name. Not unique, and not addressable -- filter on `ref`.","type":"string"},"ref":{"description":"An OPAQUE token. Do not parse it: `basic-display-products` is the category named \"Keepsakes\", not a \"display products\" category. Compare it for equality and pass it back as `category`.","type":"string"}},"required":["ref","name"],"type":"object"},"complete":{"description":"Where your customer returns when they finish editing. Put your own key (for example your order id) in the url, and `%EDITOR_ID%` for a card, album or book to receive its configured product id.","properties":{"text":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["text","url"],"type":"object"},"completion":{"description":"Who supplies the order content. `api` means you can finish this product headlessly. `editor` means a person must finish its design in a WHCC editor -- the API can create the item, but it cannot supply the design.","enum":["api","editor"],"type":"string"},"configuration":{"description":"Everything you must decide before you can order this product, in one place. It is the UNCONDITIONAL view: the full domain of every field, regardless of what any particular selection would make applicable.","properties":{"fields":{"$ref":"#/components/schemas/fields"}},"required":["fields"],"type":"object"},"configuredProducts":{"description":"Configured products to price (1–50)","items":{"$ref":"#/components/schemas/Model77"},"maxItems":50,"minItems":1,"type":"array"},"constraints":{"description":"The STATIC envelope: what is possible for this product at all, on EITHER axis -- a 20x16 canvas and a 16x20 canvas are both inside it. Other choices you make narrow it -- at 2 1/2\" depth, for instance, the short side has a higher minimum -- so a value inside this envelope is not yet a value you can order.","properties":{"height":{"$ref":"#/components/schemas/height"},"rule":{"description":"The coupled constraint the two axes must satisfy together.","type":"string"},"width":{"$ref":"#/components/schemas/width"}},"required":["width","height","rule"],"type":"object"},"country":{"description":"Must be `US`; WHCC prints return addresses for US senders only.","enum":["US"],"type":"string"},"create":{"description":"Create an item from this product.","properties":{"instructions":{"description":"What this call does and when to make it.","type":"string"},"method":{"description":"The HTTP method to use.","type":"string"},"url":{"description":"The absolute URL to call, on the public API host.","type":"string"}},"required":["instructions","url","method"],"type":"object"},"creatorProduct":{"properties":{"givenName":{"maxLength":500,"type":"string"}},"type":"object"},"dimensions":{"properties":{"height":{"type":"number","x-constraint":{"sign":"positive"}},"width":{"type":"number","x-constraint":{"sign":"positive"}}},"required":["width","height"],"type":"object"},"edit":{"properties":{"method":{"$ref":"#/components/schemas/Model160"},"url":{"description":"Partner-supported. Freshly minted tokenized editor session URL for the design space this configured product belongs to. Treat it as a bearer credential -- do not cache or log it.","format":"uri","type":"string"}},"required":["url","method"],"type":"object"},"fields":{"description":"Every decision this product takes, one entry per field.","items":{"$ref":"#/components/schemas/CatalogConfigurationField"},"type":"array"},"fix":{"description":"Partner-supported. Present when at least one item failed or (status read only) was not found; carries no url/method since a mixed batch has no single applicable link -- request an editor link for the failing item from POST /v1/commerce/configured-products/{configuredProductId}/edit-link, or re-create a not-found item.","properties":{"instructions":{"description":"Partner-supported. Human-readable, terse next-step instructions for this verb. The presence of the field is what is partner-supported; the prose itself may be reworded at any time, so never parse or match on it -- branch on which verb key is present.","type":"string"},"method":{"$ref":"#/components/schemas/method"},"url":{"description":"Partner-supported. Fully-resolved URL of the endpoint to call next.","format":"uri","type":"string"}},"required":["instructions"],"type":"object"},"guidance":{"description":"Operationally meaningful facts about this response (lifecycle state, correlation hints, API-capability boundaries). Distinct from `actions`: guidance entries never carry a `url` or `method`, and a message names another route only to say where an operation this response cannot perform lives. Omitted entirely when there is nothing to report.","items":{"$ref":"#/components/schemas/Model6"},"minItems":1,"type":"array"},"height":{"description":"The bounds on the long side, in the field's `unit`.","properties":{"max":{"description":"The largest value this axis accepts, inclusive.","type":"number"},"min":{"description":"The smallest value this axis accepts, inclusive.","type":"number"}},"required":["min","max"],"type":"object"},"items":{"description":"Partner-supported. One entry per requested id, in request order.","items":{"$ref":"#/components/schemas/Model17"},"type":"array"},"kind":{"description":"What sort of thing this product is. A closed but ADDITIVE-ONLY enum: new members may appear over time and existing members never change meaning, so treat a value you do not recognize as \"a product I do not handle\" rather than an error. It is descriptive -- a hint for display and routing, never the thing to key an order on. Key an order on `ref`.","enum":["print","wall-art","card","album","book","ornament","keepsake","accessory","sample"],"type":"string"},"links":{"description":"Partner-supported. Stable preview/proof URLs for this item.","properties":{"designSpaceProof":{"description":"Partner-supported. Preview/proof URL for the item's design space; falls back to `proof` when a design-space-specific proof is not separately available.","format":"uri","type":"string"},"placementProof":{"description":"Partner-supported. Preview/proof URL for the item's specific placement; falls back to `proof` when a placement-specific proof is not separately available.","format":"uri","type":"string"},"proof":{"description":"Partner-supported. Preview/proof URL for this item.","format":"uri","type":"string"}},"type":"object"},"method":{"description":"Partner-supported. HTTP method to use with `url`.","enum":["GET","POST"],"type":"string"},"packagingId":{"description":"Optional packaging selection.","enum":["pkg_brown","pkg_charcoal","pkg_kraft_cream","pkg_kraft_black","pkg_charcoal_black","pkg_charcoal_red","pkg_kraft_red"],"nullable":true,"type":"string","x-convert":{"trim":true}},"poll":{"description":"Partner-supported. Present when at least one item is still processing; call `GET /v1/commerce/configured-products` with the ids in `url` to check status -- a side-effect-free read that never creates anything.","properties":{"instructions":{"description":"Partner-supported. Human-readable, terse next-step instructions for this verb. The presence of the field is what is partner-supported; the prose itself may be reworded at any time, so never parse or match on it -- branch on which verb key is present.","type":"string"},"method":{"$ref":"#/components/schemas/method"},"url":{"description":"Partner-supported. Fully-resolved URL of the endpoint to call next.","format":"uri","type":"string"}},"required":["instructions"],"type":"object"},"pricedAs":{"description":"Partner-supported. Present only when this item's submitted custom-size `dimensions` were rounded up to a larger priced grid row, expressed in inches in the orientation you submitted. Absent on an exact grid match, and absent entirely for an item with no custom-size dimensions.","properties":{"height":{"description":"Partner-supported. Height in inches of the canonical box the price was looked up at.","type":"number"},"width":{"description":"Partner-supported. Width in inches of the canonical box the price was looked up at.","type":"number"}},"required":["width","height"],"type":"object"},"quantity":{"description":"How many of this product may be ordered at once. `min` and `max` are inclusive bounds and `step` counts UP FROM `min`, so a product at min 25 / step 5 orders 25, 30, 35 -- not 5, 10, 15. `default` is what a picker should start at. All three constraints are enforced when you order: a quantity that violates any of them is refused rather than rounded. The published minimum is the one enforced when you build and when you order, including for cards whose minimum is a platform default rather than a per-product setting. An absent constraint is not a zero -- the product is simply unconstrained on that axis.","properties":{"default":{"description":"The quantity a picker should start at.","type":"number"},"max":{"description":"The largest orderable quantity, inclusive.","type":"number"},"min":{"description":"The smallest orderable quantity, inclusive.","type":"number"},"step":{"description":"The increment between orderable quantities, counted up from `min`.","type":"number"}},"type":"object"},"redirects":{"description":"The links your customer returns to. `complete` and `cancel` are required. Stored on the item; the last call wins. Simple items created by the same request share one editor, so the links apply to all of them.","properties":{"cancel":{"$ref":"#/components/schemas/cancel"},"complete":{"$ref":"#/components/schemas/complete"},"secondary":{"$ref":"#/components/schemas/secondary"}},"required":["complete","cancel"],"type":"object"},"requirements":{"description":"Brand Product prerequisites for creating this item. `requiresDesign` requires a `designId`; `requiresImage` requires at least one image when true, but false does not prohibit images. `workflow` guides client UX only; it does not authorize or reject an API call. When this object is absent, the prerequisites are unknown: do not infer them from another product field.","properties":{"requiresDesign":{"description":"Whether creating this item requires a `designId`.","type":"boolean"},"requiresImage":{"description":"Whether creating this item requires at least one image.","type":"boolean"},"workflow":{"$ref":"#/components/schemas/workflow"}},"required":["requiresDesign","requiresImage","workflow"],"type":"object"},"secondary":{"description":"An optional second link shown next to `complete`.","properties":{"text":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["text","url"],"type":"object"},"selections":{"properties":{"dimensions":{"$ref":"#/components/schemas/dimensions"},"quantity":{"maximum":10000,"minimum":1,"type":"integer"}},"type":"object"},"selectionsSummary":{"description":"Partner-supported. Presentable summary of the selections made for this item -- the only view of its configuration this response carries.","items":{"$ref":"#/components/schemas/Model79"},"type":"array"},"sizedBy":{"description":"The configuration fields that determine this product's geometry. Present when `width` and `height` are absent: the size depends on a choice you have not made yet, rather than being missing data.","items":{"type":"string"},"type":"array"},"status":{"description":"Partner-supported. `not-found` means the id was not recognized for your credentials; every other value means what it means on the create response.","enum":["ready","processing","failed","awaiting-editor","not-found"],"type":"string"},"submit":{"description":"Partner-supported. Present when every item is ready; call `POST /v1/commerce/submissions` to place the order.","properties":{"instructions":{"description":"Partner-supported. Human-readable, terse next-step instructions for this verb. The presence of the field is what is partner-supported; the prose itself may be reworded at any time, so never parse or match on it -- branch on which verb key is present.","type":"string"},"method":{"$ref":"#/components/schemas/method"},"url":{"description":"Partner-supported. Fully-resolved URL of the endpoint to call next.","format":"uri","type":"string"}},"required":["instructions"],"type":"object"},"subtotals":{"description":"Partner-supported. Itemized price breakdown; the shipping/packaging/salesTax keys are removed. The set of keys present is not a closed, versioned contract and can grow as pricing logic changes -- treat this as an open map, not an enumerated shape.","type":"object"},"total":{"description":"Partner-supported. Total price restated as a nested object alongside `value`/`code` (see `total.value` for the divergence from the main order response).","properties":{"code":{"description":"Partner-supported. ISO currency code for `total.value`.","type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Partner-supported. On this endpoint, identical to the sibling `value` field -- unlike the (forthcoming) main order response, where `total.value` excludes sales tax while `value` includes it, this endpoint removes the `salesTax` subtotal entirely before computing both fields from the same reduced subtotal set, so they are never distinct here."}},"type":"object"},"totalPrice":{"description":"Partner-supported. Draft-order pricing for the whole batch.","properties":{"code":{"description":"Partner-supported. ISO currency code for `value` and `total.value`.","type":"string"},"subtotals":{"$ref":"#/components/schemas/subtotals"},"total":{"$ref":"#/components/schemas/total"},"value":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Partner-supported. Total price for the whole batch, recomputed after removing the shipping/packaging/salesTax subtotals -- this endpoint prices with a placeholder shipping address, so no real tax or shipping is knowable yet."}},"type":"object"},"tracking":{"properties":{"featureInstance":{"maxLength":200,"type":"string"},"featureUsed":{"maxLength":100,"type":"string"},"utmCampaign":{"maxLength":100,"type":"string"},"utmContent":{"maxLength":100,"type":"string"},"utmMedium":{"maxLength":100,"type":"string"},"utmSource":{"maxLength":100,"type":"string"},"utmTerm":{"maxLength":100,"type":"string"}},"type":"object"},"type":{"description":"The kind of place of sale: collaborationShare or external.","enum":["collaborationShare","external"],"type":"string"},"unitPrice":{"description":"Partner-supported. Per-unit price for this item, as priced when the configured product was created.","properties":{"code":{"description":"Partner-supported. ISO currency code for `value`.","type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"string"}],"description":"Partner-supported. Price amount."}},"type":"object"},"validationSummary":{"description":"Partner-supported. Itemized, machine-readable reasons behind a `processing`/`failed` status; present only when there is something to report.","items":{"$ref":"#/components/schemas/Model16"},"type":"array"},"values":{"description":"The values to pick from. Present exactly when `kind` is `enum`.","items":{"$ref":"#/components/schemas/CatalogFieldValue"},"type":"array"},"width":{"description":"The bounds on the short side, in the field's `unit`.","properties":{"max":{"description":"The largest value this axis accepts, inclusive.","type":"number"},"min":{"description":"The smallest value this axis accepts, inclusive.","type":"number"}},"required":["min","max"],"type":"object"},"workflow":{"description":"The client workflow: `api_only`, `api_or_editor`, or `editor_required`.","enum":["api_only","api_or_editor","editor_required"],"type":"string"},"workflowChange":{"description":"Present only when choosing this value changes how the product can be created: `api_only`, `api_or_editor` or `editor_required` (the item must be finished in the editor). It combines with the product's `requirements.workflow`.","enum":["api_only","api_or_editor","editor_required"],"type":"string"},"zipType":{"enum":["Standard","Unique","POBox","Military"],"nullable":true,"type":"string"}},"securitySchemes":{"apiKey":{"description":"Send your WHCC API key as a bearer token: `Authorization: Bearer <key>`. Every operation in this document needs it. A missing, malformed or revoked key returns 401; a key that cannot call an operation returns 403.","scheme":"bearer","type":"http"}}},"info":{"title":"WHCC API","version":"2026-10"},"openapi":"3.0.0","paths":{"/v1/catalog/products":{"get":{"description":"Returns the products your organization can sell, as an envelope: { products: [...], totalCount, nextCursor? }. Products you cannot sell are INVISIBLE rather than forbidden -- they are absent from the list and absent from totalCount, so the count never hints at products arranged for another partner.<br/><br/>Each row is addressed by `ref`, a readable slug rather than an internal id that changes whenever WHCC re-sources a product behind the scenes. Pass `ref` back to every other endpoint. `ref` is caller-relative, not globally unique: where a product is restricted to your organization, it wins the reference for you and the general product wins it for everyone else. When two products TIE for a ref -- both general, or both restricted to you -- this list keeps the first in sort order rather than erroring, but the detail route treats that same tie as ambiguous and answers 400. A ref you see listed here is not guaranteed to resolve on the detail route.<br/><br/>Each row also carries `kind` -- what sort of thing the product is -- and `completion`, who supplies the order content: `api` means you can finish the product headlessly, `editor` means a person must finish its design in a WHCC editor. `kind` is a closed but ADDITIVE-ONLY set: new members may appear over time and existing members never change meaning, so treat a value you do not recognize as \"a product I do not handle\" rather than as an error. It describes the product for display and routing; order on `ref`.<br/><br/>Geometry reads together. `width` and `height` are the finished size in inches and are present or absent as a pair; when they are absent, `sizedBy` names the configuration fields that determine the size, so the geometry depends on a choice you have not made yet rather than being missing data. `aspect` is the product's derived shape and can read `square`, which is why it is a separate word from the `orientation` you may SEND when configuring. `quantity` carries the ordering constraint -- flat cards, for instance, are min 25 / max 5000 / step 5 -- and all three of `min`, `max` and `step` are enforced when you order.<br/><br/>Every row carries `actions.detail`, the URL to fetch that product in full. It is the one action in this API with no `instructions`: fifty rows repeating one identical sentence about a GET to a URL the row already names would cost you a third of the page in tokens for nothing. Follow the URL rather than building one.<br/><br/>Paging is by cursor, not offset. Ask for up to 200 rows with `limit` (default 50); when more remain you receive `nextCursor`, which you pass back as `cursor`. `nextCursor` is ABSENT on the final page, never null. Cursors are opaque, at most 1024 characters, expire after 24 hours, and are bound to the filters that minted them -- changing `category` or `q` mid-walk is rejected rather than silently re-anchored. Backward paging is not supported.<br/><br/>Results are ordered by name, with an internal tiebreaker that makes the order total. No skipped or duplicated products are guaranteed only while the underlying catalogue is unchanged; a product renamed or withdrawn mid-walk falls under that caveat. Responses are cached for five minutes, which is what `Cache-Control: private, max-age=300` reports. It is `private` because this page is not the same for every caller -- what you can sell, and `totalCount` with it, depend on who you are -- so it must not be held in a cache shared between callers. Error responses (status 400 and above) carry `Cache-Control: private, no-store` instead, so a refusal is never reused after the cause is fixed.<br/><br/>Filter with `category` (exact match on a row's `category.ref`, an opaque token -- compare it, do not parse it) and `q` (case-insensitive substring match on the product name). Neither is required.<br/><br/>A 400 covers an unknown query parameter, an out-of-range `limit`, a malformed or forged cursor, and a cursor whose sort or filters do not match this request. A cursor older than 24 hours is a 410 -- start the walk again without a cursor. Two products sharing a ref never fault this route: the more specific one wins the row (see above), and a tie is resolved silently rather than refused. The detail route is stricter about the same collision -- there, where you named the reference yourself, it can still answer 400 naming the candidates it could not choose between.","operationId":"getV1CatalogProducts","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"Exact match on `category.ref`. An OPAQUE token. Do not parse it: `basic-display-products` is the category named \"Keepsakes\", not a \"display products\" category. Compare it for equality and pass it back as `category`.","in":"query","name":"category","schema":{"description":"Exact match on `category.ref`. An OPAQUE token. Do not parse it: `basic-display-products` is the category named \"Keepsakes\", not a \"display products\" category. Compare it for equality and pass it back as `category`.","maxLength":128,"type":"string"}},{"description":"Case-insensitive substring match on the product name.","in":"query","name":"q","schema":{"description":"Case-insensitive substring match on the product name.","maxLength":128,"type":"string"}},{"description":"Page size, 1-200. Defaults to 50.","in":"query","name":"limit","schema":{"default":50,"description":"Page size, 1-200. Defaults to 50.","maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque pagination cursor from the previous page's `nextCursor`. Bound to the sort and filters that minted it and valid for 24 hours; it is not parseable and its format may change without notice.","in":"query","name":"cursor","schema":{"description":"Opaque pagination cursor from the previous page's `nextCursor`. Bound to the sort and filters that minted it and valid for 24 hours; it is not parseable and its format may change without notice.","maxLength":1024,"type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogProductList"}}},"description":"A page of products, ordered by name.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"Invalid query -- an unknown parameter, an out-of-range limit, or a cursor that is malformed, forged, or bound to different filters or a different sort. Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"401":{"description":"Missing or invalid credentials.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"403":{"description":"Credentials do not carry a required scope.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"410":{"description":"The cursor has expired. Start the walk again without a cursor.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Lists the products your organization can sell","tags":[""],"x-whcc-api-key":true}},"/v1/catalog/products/{ref}":{"get":{"description":"Returns one product in full: every field the list carries, plus `configuration` -- everything you must decide before you can order it. The response is a bare object, not the { products: [...] } envelope the list returns. There is no query parameter to ask for the configuration; it always ships, because the callers least likely to pass one are the agents and headless clients that need it most.<br/><br/>Address the product by `ref`. A product id or slug also works, so whichever identifier you hold resolves. A reference that matches nothing is a 404 -- and so is a product your organization cannot sell, deliberately and identically, so you learn nothing about other organizations' catalogues. A reference that matches more than one product you can see is a 400 naming the candidates and the identifier that separates them; it is never answered by silently picking one.<br/><br/>The product fields are the same ones the list carries. `kind` is what sort of thing the product is and `completion` is who supplies the order content -- `api` if you can finish it headlessly, `editor` if a person must finish its design in a WHCC editor. `kind` is a closed but ADDITIVE-ONLY set: new members may appear and existing members never change meaning, so treat a value you do not recognize as \"a product I do not handle\" rather than as an error. Where `width` and `height` are absent, `sizedBy` names the configuration fields that decide the size.<br/><br/>`configuration.fields[]` is the UNCONDITIONAL view: the full domain of every field, whatever any particular selection would make applicable. Each field carries a `field` code you send back under `selections`, a display `name`, a baseline `required`, an optional `default`, and a `kind`.<br/><br/>Branch on each field's own `kind`, which is a different word from the product's `kind` above and has its own two values. `enum` carries `values[]` of { id, name, enabled } -- render a dropdown, and grey out anything with `enabled: false`. A size value also carries `width` and `height` in inches, so you can show a customer what they are choosing. `dimension` carries `unit` and `constraints` and NO `values[]`, because its domain is continuous -- render two number inputs and validate against the envelope. `kind` is additive-only: treat one you do not recognize as a field you cannot render, not as an error.<br/><br/>Where a product takes a custom size, you get an envelope rather than a thousand enumerated rows: `width` and `height` bounds that admit either axis as the longer one. Send `{ \"width\": w, \"height\": h }` as `dimensions` inside `selections`, together with `size: \"custom\"`; a 20x16 piece is landscape and a 16x20 piece is portrait, and we derive `orientation` from whichever one you sent, the same way we already derive it from your photo when you omit it. Send `orientation` too only if you want to state it explicitly -- it must then agree with `dimensions`. There is no step within the envelope, but being inside it is necessary, not sufficient: other selections can narrow what is actually orderable. A size inside the envelope that your other selections allow is priced at the nearest size at or above it.<br/><br/>The published envelope is STATIC -- what is possible for the product at all. Other selections can narrow it, so a value inside the envelope is not yet a value you can order.<br/><br/>Some fields in this list are not product attributes at all -- `orientation` is the standing example. They are published here because everything you may send is described in exactly one place, and because you have no other way to learn the key exists. `orientation` in particular appears only on products where it changes something: a product whose sizes are all square, or whose orientation is part of the product you chose, does not offer it.<br/><br/>This list is also the list of selection keys you may SEND. A key this product does not publish is rejected with a 400 naming the field, rather than accepted and silently discarded -- so a misspelling costs you one error instead of an order that quietly omits what you asked for. The same rule applies at the create endpoint. A field published here is never reported back to you as unrecognized.<br/><br/>Shipping is not here -- you get it from the order API, where it belongs. Neither are per-face geometry or node data: the create path takes one image placement, so there is nothing a face id would let you do.<br/><br/>Responses are cached for five minutes, which is what `Cache-Control: private, max-age=300` reports -- `private` because the response depends on who is asking, so it must not be held in a cache shared between callers. Error responses (status 400 and above) carry `Cache-Control: private, no-store` instead, so a refusal is never reused after the cause is fixed.","operationId":"getV1CatalogProductsRef","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"The product's `ref`. A product id or slug is also accepted, so whichever identifier you hold works -- but `ref` is the one this API publishes and the one to store.","in":"path","name":"ref","required":true,"schema":{"description":"The product's `ref`. A product id or slug is also accepted, so whichever identifier you hold works -- but `ref` is the one this API publishes and the one to store.","maxLength":256,"type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogProductDetail"}}},"description":"The product, as a bare object carrying its configuration model.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"The reference matches more than one product you can see. The message names the candidates and the identifier that separates them. Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"401":{"description":"Missing or invalid credentials.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"403":{"description":"Credentials do not carry a required scope.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"404":{"description":"No such product -- the same answer a product your organization cannot sell receives, deliberately and identically.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Gets one product in full, including its configuration model","tags":[""],"x-whcc-api-key":true}},"/v1/commerce/configured-products":{"get":{"description":"Use this to check on configured products you already created, most often by following `actions.poll.url` from a create response. It never creates, changes, or prices anything -- call it as often as you like.<br/><br/>Pass every id to check as `ids`, a comma-separated list of up to 50 `configuredProductId` values. Send them exactly as you received them; they are opaque.<br/><br/>Each item reports `status` only -- no price. `ready` means it can be submitted; `processing` means keep polling; `failed` means something needs fixing (see its `validationSummary`); `not-found` means the id was not recognized for your credentials. A price is worked out behind the scenes to reach that status, but it is never returned here or saved anywhere. To price the order, use `POST /v1/commerce/submissions/calculate`.<br/><br/>An id you never created, one that belongs to different credentials, or one that no longer exists all report `not-found` -- these are indistinguishable from each other by design.<br/><br/>The response root carries one next-step action, same as the create response: `actions.submit` (with `actions.calculate`, to price the order first) once every item is ready, `actions.poll` while any item is still processing, or `actions.fix` if any item failed or was not found.<br/><br/>400 covers a missing or empty `ids`, more than 50 ids, a duplicate id, or an id containing a character outside the format you were given.","operationId":"getV1CommerceConfiguredproducts","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"Comma-delimited configured product ids to check status for (1-50, no duplicates)","in":"query","name":"ids","required":true,"schema":{"description":"Comma-delimited configured product ids to check status for (1-50, no duplicates)","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model19"}}},"description":"Status of every requested configured product, in request order.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"description":"A problem details body. `supportedVersions` is present only on the unsupported-version refusal.","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"status":{"example":400,"type":"integer"},"supportedVersions":{"example":["2026-10"],"items":{"type":"string"},"type":"array"},"title":{"example":"Unsupported API version","type":"string"},"type":{"example":"https://developer.whcc.com/problems/unsupported-api-version","type":"string"}},"type":"object"}}},"description":"Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}}},"summary":"Checks the status of previously created configured products","tags":[""],"x-whcc-api-key":true},"post":{"description":"Use this to build editors from product selections and images (partner-hosted URLs, or images you have already uploaded and hold an `imageId` for) and price them in one call. Nothing is submitted here: this route always creates a priced draft, and placing the order is a separate call to POST /v1/commerce/submissions, which the response points you at through `actions.submit`. If you already hold editor IDs, call POST /v1/commerce/submissions directly instead.<br/><br/>Every configured product must reference a product this route can create: one finished through the API, or a card, album or book your customer finishes in the editor (each of those returns `awaiting-editor`). A card needs a `designId`; an album or book must not send one. A request is either all products finished through the API or all products finished in the editor, never a mix. A product this route cannot create is rejected before any gallery, image, or editor side effect.<br/><br/>201 means the request supplied an already-uploaded `imageId` for every configured product and no item is still processing. Every other outcome is 202 -- most commonly after submitting partner-hosted image URLs, which are exchanged for images that finish processing asynchronously -- with an otherwise structurally identical response.<br/><br/>Items carry no editor link, and this request takes no `redirects`: where your customer returns after editing is sent with the edit-link request, not here. To let a customer edit an item, request one with `POST /v1/commerce/configured-products/{configuredProductId}/edit-link`. The response root carries one next-step action -- `actions.submit` (targeting `POST /v1/commerce/submissions`) once every item is ready, together with `actions.calculate` (targeting `POST /v1/commerce/submissions/calculate`) to price that order first without placing it, `actions.poll` while any item is still processing, or `actions.fix` if any item failed. Follow `actions.poll.url` (a `GET /v1/commerce/configured-products` request) to check progress; it never creates anything, so call it as often as you like.<br/><br/>For a partner credential, the selection keys you may send are exactly the ones that product's `configuration.fields[]` publishes in the catalog; anything else is a 400 naming the field rather than a key quietly discarded. `selections.quantity` is the exception -- it is a request field of its own -- and it is validated against all three of the product's published `min`, `max` and `step`, with the step counted up from the minimum. Omit it and it becomes the product's published `quantity.default`, or 1 when there is none, checked the same way.<br/><br/>For a custom size, send `dimensions` as `{ \"width\": w, \"height\": h }` together with `size: \"custom\"`, long side as `height`. A box sent without `size: \"custom\"`, with the width larger than the height, outside the product's published envelope, or ruled out by your other selections is a 400 naming `configuredProducts.{index}.selections.dimensions`. An accepted box is priced at the nearest orderable size at or above it on both axes, while the exact dimensions you sent are what gets made.<br/><br/>404 covers an unresolvable product reference, an unresolvable gallery, or an unresolvable image. 400 covers a malformed payload (including a `redirects` field, which this route does not accept), a product that exists but is not simple-editor compatible, a quantity outside its constraint, a custom size that cannot be made, and a selection key that product does not publish; send only what GET /v1/catalog/products/{ref}'s `configuration.fields[]` lists.","operationId":"postV1CommerceConfiguredproducts","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model78"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model85"}}},"description":"Priced configured-products draft created.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model87"}}},"description":"Priced configured-products draft created. Returned for every outcome that is not a 201 (see the notes), so it does not by itself mean an item is still processing -- read each item's `status` and the root `actions` for the next step.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"description":"A problem details body. `supportedVersions` is present only on the unsupported-version refusal.","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"status":{"example":400,"type":"integer"},"supportedVersions":{"example":["2026-10"],"items":{"type":"string"},"type":"array"},"title":{"example":"Unsupported API version","type":"string"},"type":{"example":"https://developer.whcc.com/problems/unsupported-api-version","type":"string"}},"type":"object"}}},"description":"Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}}},"summary":"Creates a priced draft from configured products","tags":[""],"x-whcc-api-key":true}},"/v1/commerce/configured-products/{configuredProductId}/edit-link":{"post":{"description":"Call this to give your customer a link to edit an item, and again whenever the link you already have has expired -- links expire after 30 days -- or was simply lost. Every call mints a brand new link.<br/><br/>Pass the item's `configuredProductId` exactly as you received it, in the URL path. It is opaque -- do not decode or reconstruct it. Send `redirects` in the body: `redirects.complete` and `redirects.cancel` are both required. `complete` is the link your customer returns to when they finish editing; `cancel` is where the editor's exit button sends them when they leave without finishing. `redirects.secondary` is optional. Each link is `{ \"text\": \"...\", \"url\": \"https://...\" }`; the url must be https. Any other key, such as `done` or `locked`, is a 400.<br/><br/>Each call stores these links on the item, replacing any it had. The last call wins, including for links you minted earlier: they open the same item, so they use the links stored most recently. Simple items created by the same request share one editor, so the links apply to all of them; a card, album or book has its own. WHCC default links are never added. To tell which item came back, put your own key (for example your order id) in the url. For a card, album or book, `%EDITOR_ID%` in a url becomes that item's `configuredProductId`, and `guidance` tells you when `redirects.complete` has no such marker.<br/><br/>Optionally send `settings` to configure the editor, each one `true` or `false`: `hidePricing` and `disableUploads` (`true` hides prices, or hides the photo upload control without blocking uploads), and `productSwitcher`, `sizeSelector`, `quantitySelector`, `wallArrangement`, `multiProduct`, `addToProject` and `presentationMode` (`true` shows or turns on that control). Settings are stored on the item like the links, and the last call that sends `settings` wins: a setting it leaves out goes back to the default, and `settings: {}` resets them all. A call without `settings` leaves the stored settings as they are. `hidePricing` is the exception: it applies to the link this call returns, unless your customer adds the item to a project that sets its own pricing visibility. Each editor uses only the settings it has: a simple item uses all of them; an album or book uses all but `quantitySelector`, `wallArrangement` and `multiProduct`; a card uses `hidePricing`, `disableUploads`, `addToProject` and `presentationMode`. A setting the editor does not have is accepted and has no effect.<br/><br/>The link opens the whole design space this configured product belongs to, not a link scoped to just this one configured product -- if the design space holds more than one, all of them are reachable from the same link.<br/><br/>A design space that has already been submitted may no longer accept edits; this route still issues a link regardless, since whether editing is currently possible is a property of the design space, not of this call.<br/><br/>The returned URL is a bearer credential for editing the design space -- do not cache, log, or share it beyond the person who will use it.<br/><br/>404 covers both an unrecognized `configuredProductId` and one that belongs to a different caller -- the two are indistinguishable by design; nothing is stored in either case. 400 covers a missing body, a missing `redirects.complete` or `redirects.cancel` (both are named when both are missing), a url that is not https, any key other than `complete`, `cancel` and `secondary`, a setting that is not `true` or `false`, and any setting not listed above (the error names it); nothing is stored in that case either. If minting fails with a 5xx, the links and settings you sent may already be stored; call again.","operationId":"postV1CommerceConfiguredproductsConfiguredproductidEditlink","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"The `configuredProductId` from a configured-products create response or a submission item. Opaque.","in":"path","name":"configuredProductId","required":true,"schema":{"description":"The `configuredProductId` from a configured-products create response or a submission item. Opaque.","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model159"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model162"}}},"description":"Edit link minted, and the redirects and settings stored on the item.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"description":"A problem details body. `supportedVersions` is present only on the unsupported-version refusal.","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"status":{"example":400,"type":"integer"},"supportedVersions":{"example":["2026-10"],"items":{"type":"string"},"type":"array"},"title":{"example":"Unsupported API version","type":"string"},"type":{"example":"https://developer.whcc.com/problems/unsupported-api-version","type":"string"}},"type":"object"}}},"description":"Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"404":{"description":"The configured product id is unrecognized, or does not belong to the caller.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Mints a fresh edit link for a configured product","tags":[""],"x-whcc-api-key":true}},"/v1/commerce/submissions":{"get":{"description":"A submission is the order a caller places. WHCC may split one submission into several WHCC orders -- one per production destination -- each carrying its own order number and confirmation id and shipping and tracking independently. Do not assume a one-to-one mapping between a row in this list and a single physical shipment.<br/><br/>`status` is DERIVED from the submission and its orders[], not copied from a single stored field: staged, submitting, placed, shipped, canceled, failed, and partially_failed -- the last meaning some of this submission's orders placed while at least one failed. Filtering by status filters on this derived value.<br/><br/>This is a submission-level summary, not full item detail: each row carries an item count and total price, not the items themselves. Fetch a specific submission via its actions.detail URL for the full item breakdown -- a submission that split into several WHCC orders can carry a lot of per-item detail, which would make a page of this list very large if it were included here.<br/><br/>Pagination is a signed, opaque keyset cursor: request the first page with no cursor, then follow nextCursor while hasMore is true. The cursor format is not part of the contract and may change; treat it as an opaque token rather than parsing it. A cursor is bound to the account, client key, sort and filters it was issued under -- reusing it with different filters, or after replaying it past its validity window, is rejected rather than silently resuming a different walk.<br/><br/>reference is a filter, not a lookup: a caller may legitimately place many submissions carrying the same reference, and this parameter returns an ordinary page of them -- never a bare single object, and never a 404 when nothing matches. orderNumber and confirmationId are also filters, matching any submission that has a WHCC order carrying that value.<br/><br/>For a retail order, `totalPrice` is `{ code, value, taxIncluded: false }`: the sold total, which is pre-tax because the storefront calculates the customer's tax. An absent `taxIncluded` means tax-included.<br/><br/>A submission whose stored pricing disagrees with its items is never served at a guessed price and never fails the list: its row has no `totalPrice` and carries `priceUnavailable: true`. Its other fields are unchanged. Reading that submission by id answers 500.","operationId":"getV1CommerceSubmissions","parameters":[{"description":"`Bearer <token>`","in":"header","name":"authorization","required":true,"schema":{"description":"`Bearer <token>`","type":"string"}},{"description":"Filter to submissions carrying this exact reference. Not a lookup key -- many submissions may share one.","in":"query","name":"reference","schema":{"description":"Filter to submissions carrying this exact reference. Not a lookup key -- many submissions may share one.","type":"string"}},{"description":"Filter to submissions in this DERIVED status (staged, submitting, placed, shipped, canceled, failed, partially_failed).","in":"query","name":"status","schema":{"description":"Filter to submissions in this DERIVED status (staged, submitting, placed, shipped, canceled, failed, partially_failed).","enum":["staged","submitting","placed","shipped","canceled","failed","partially_failed"],"type":"string"}},{"description":"Filter to submissions created before this ISO 8601 timestamp.","in":"query","name":"createdBefore","schema":{"description":"Filter to submissions created before this ISO 8601 timestamp.","format":"date-time","type":"string"}},{"description":"Filter to submissions created after this ISO 8601 timestamp.","in":"query","name":"createdAfter","schema":{"description":"Filter to submissions created after this ISO 8601 timestamp.","format":"date-time","type":"string"}},{"description":"Filter to submissions with a WHCC order carrying this order number.","in":"query","name":"orderNumber","schema":{"description":"Filter to submissions with a WHCC order carrying this order number.","type":"string"}},{"description":"Filter to submissions with a WHCC order carrying this OAS confirmation id.","in":"query","name":"confirmationId","schema":{"description":"Filter to submissions with a WHCC order carrying this OAS confirmation id.","type":"string"}},{"description":"Filter to submissions with (true) or without (false) at least one failed WHCC order.","in":"query","name":"hasFailure","schema":{"description":"Filter to submissions with (true) or without (false) at least one failed WHCC order.","type":"boolean"}},{"description":"Maximum number of submissions to return in this page.","in":"query","name":"limit","schema":{"default":25,"description":"Maximum number of submissions to return in this page.","maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque pagination cursor from a previous response's nextCursor. Omit for the first page.","in":"query","name":"cursor","schema":{"description":"Opaque pagination cursor from a previous response's nextCursor. Omit for the first page.","maxLength":512,"type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"A page of submissions belonging to the caller's account, newest first.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"The request could not be authorized to a canonical account, an unknown query parameter was sent, or the cursor is malformed, mismatched to the current sort/filters, or otherwise invalid. Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"401":{"description":"The request carries no valid credentials.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"403":{"description":"The credential's scope does not include this route.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"410":{"description":"The cursor has expired; request the first page again with no cursor.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Lists the submissions this caller has placed","tags":[""],"x-whcc-api-key":true},"post":{"description":"Always returns 202: the order is placed asynchronously. Follow `status` and `orders[]` on the submission to see when it is placed.<br/><br/>`Idempotency-Key` is REQUIRED. A missing header is a 400 with code: \"submission.idempotency_key_required\". The same key with a DIFFERENT body is always a 409.<br/><br/>With an API key, retrying with the same key and the same body is safe: you get the ORIGINAL submission back, still 202, and no second order is placed.<br/><br/>`shipping.returnAddress` is optional and sets the return address printed on the shipping label of a drop-ship order: `name`, `addr1`, `city`, `state`, `zip` and `country` (must be `US`), plus optional `addr2` and `phone` (exactly 10 digits). It maps to the legacy `ShipFromAddress`. Only the shipping label changes -- not packing slips, inserts or emails. It is not allowed with studio shipping (a 400 naming `shipping.returnAddress`). If you ship from outside the US, leave it out and the label carries your account address. The submission echoes it back as `returnAddress`, and omits the key when you sent none.<br/><br/>`salesChannel` is optional and records where the buyer is shopping, with the same rules as on cart create: `{ type: external, id }` (`id` is your own identifier for the place of sale) or `{ type: collaborationShare, id, linkId }` (the share and the share link the buyer arrived through). Any other type, an unknown key, `external` with a `linkId`, or `collaborationShare` without one is a 400. A `collaborationShare` must resolve in your account: a link that does not exist or belongs to another account, a revoked or expired link or share, or an `id` that is not the link's share is a 422 with code: \"cart.salesChannel.invalid\". A link from another account gets the same response as one that does not exist. Unlike cart create, a share with sales switched off is accepted: the channel is recorded for reporting only. It does not change the price and is not sent for fulfillment.","operationId":"postV1CommerceSubmissions","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"Required to submit. Keys never expire and are scoped to your credentials. With an API key, a replay of the same key with the same body returns the original submission, still 202. A replay with a different body is always a 409.","in":"header","name":"idempotency-key","schema":{"description":"Required to submit. Keys never expire and are scoped to your credentials. With an API key, a replay of the same key with the same body returns the original submission, still 202. A replay with a different body is always a 409.","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model115"}}}},"responses":{"202":{"description":"Submission accepted. Always this status, whether this is a fresh submission, a replay of an identical earlier request made with an API key, or a submission still waiting on OAS -- `status` and `orders[]` tell you which.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"Invalid payload (an unrecognized root key, a malformed item, an unsupported shipping.type, a malformed shipping.returnAddress or one sent with studio shipping, a reference over the length cap, a malformed salesChannel (an unknown or server-only type, external with a linkId, collaborationShare without one, or an unknown key), or an unsupported query parameter), `editorUserId` or `whccAccountId` on an item (not accepted on this route; identity comes from your credentials), or a missing Idempotency-Key header (code: \"submission.idempotency_key_required\"). Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"409":{"description":"Idempotency-Key was reused with a different request body. Use a new key for a new order.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"422":{"description":"code cart.salesChannel.invalid: a collaborationShare salesChannel did not resolve -- no share link matches linkId in your account, id is not the share that link belongs to, or the share or link is revoked or expired. A linkId from another account returns the same response as one that does not exist.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Submit an order (always asynchronous, always 202)","tags":[""],"x-whcc-api-key":true}},"/v1/commerce/submissions/calculate":{"post":{"description":"Prices and validates a basket. This route never places an order, however it is called, and nothing is saved.<br/><br/>The same payload accepted by `POST /v1/commerce/submissions` works here, with exactly one relaxation: `shipping.address` is optional. `shipping` itself is still required. That includes `salesChannel`, checked the same way (the same 400s and 422), and it does not change the price.<br/><br/>Without `shipping.address`, no destination is assumed. `shipping`, `salesTax`, the US MN/CO retail delivery fee and the Canada import surtax are OMITTED from `totalPrice.subtotals` -- never defaulted, never reported as zero -- and `totalPrice` reflects product, packaging, discount, surcharges and minimumSurcharge only. `guidance` names the omission (code: \"submission.pricing.destination_required_for_full_total\").<br/><br/>`Idempotency-Key` is REJECTED. Supplying the header is a 400 with code: \"submission.idempotency_key_not_applicable\" -- this route has nothing to make idempotent.<br/><br/>This is not a held quote: there is no expiry and no commit step, and the figure can differ from the price at placement. Calculating and then submitting the SAME payload agrees at that moment, not as a guarantee.","operationId":"postV1CommerceSubmissionsCalculate","parameters":[{"description":"Bearer <token>","in":"header","name":"authorization","required":true,"schema":{"description":"Bearer <token>","type":"string"}},{"description":"Not accepted on this route. Supplying it at all -- blank included -- is a 400 with code: submission.idempotency_key_not_applicable, because a calculate request creates nothing and so has nothing to make idempotent.","in":"header","name":"idempotency-key","schema":{"description":"Not accepted on this route. Supplying it at all -- blank included -- is a 400 with code: submission.idempotency_key_not_applicable, because a calculate request creates nothing and so has nothing to make idempotent.","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model123"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"Calculated. `totalPrice` reflects only product-price components when no `shipping.address` was supplied -- see `guidance` for which components were omitted and why.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"Invalid payload (an unrecognized root key including `submit`, a malformed item, an unsupported shipping.type, a reference over the length cap, a malformed salesChannel, `editorUserId` or `whccAccountId` on an item (not accepted on this route; identity comes from your credentials), or an unsupported query parameter), or an `Idempotency-Key` header was supplied (code: \"submission.idempotency_key_not_applicable\"). Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"422":{"description":"code cart.salesChannel.invalid: a collaborationShare salesChannel did not resolve -- no share link matches linkId in your account, id is not the share that link belongs to, or the share or link is revoked or expired. A linkId from another account returns the same response as one that does not exist.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Price and validate a basket without placing an order","tags":[""],"x-whcc-api-key":true}},"/v1/commerce/submissions/{submissionId}":{"get":{"description":"Takes the submission id only. To find a submission by confirmation id or order number, use the list route's `confirmationId` or `orderNumber` filter.<br/><br/>orders[] lists the real WHCC orders this submission produced. A submission can produce more than one, each with its own order number, confirmation id, status and, once placed, a link (actions.fulfillment) to that order's production orders -- returned as a LIST, because one WHCC order can itself split into several. That link is omitted for a caller whose credential cannot read production orders.<br/><br/>A failed order carries a failure {code, message} explaining why in plain terms -- never a raw system error. The root status reflects this: partially_failed means some of this submission's orders placed while at least one failed.<br/><br/>`totalPrice.subtotals.salesTax.value` can be the string \"TBD\" until sales tax is finalized -- handle it as not yet known, not as a number. Every other money value on this response is a two-decimal string.<br/><br/>On a retail order `totalPrice.total` is the sold total and is pre-tax: the storefront calculates the customer's tax, and `totalPrice.taxIncluded` is `false`. An absent `taxIncluded` means tax-included.<br/><br/>A submission whose stored pricing disagrees with its items is never served at a guessed price: this read answers 500 (code `orders.priceView.inconsistent`). The list route still returns it, as a row without `totalPrice`.","operationId":"getV1CommerceSubmissionsSubmissionid","parameters":[{"description":"`Bearer <token>`","in":"header","name":"authorization","required":true,"schema":{"description":"`Bearer <token>`","type":"string"}},{"description":"The submission's `id`.","in":"path","name":"submissionId","required":true,"schema":{"description":"The submission's `id`.","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"The submission, with its orders[] and item detail.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"description":"The request could not be authorized to a canonical account. Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"401":{"description":"The request carries no valid credentials.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"403":{"description":"The credential's scope does not include this route.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"404":{"description":"No submission with this id exists for the caller's account and client key.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Gets a submission by id","tags":[""],"x-whcc-api-key":true}},"/v1/discovery":{"get":{"description":"Call this at the start of an integration, and again whenever your credentials change, to learn exactly which operations your presented token can currently reach -- no separate documentation lookup or support request needed.<br/><br/>Requires only a valid bearer token. No other setup: the response is derived live from your token's scopes, not from a static list that can drift out of date.<br/><br/>The response lists this endpoint alongside every other operation your token admits -- discovery does not omit itself. An operation appearing here means your credential's scopes admit it at the route-authorization layer; it does not guarantee the call will succeed. See the response's own `semantics` array for the complete, load-bearing statement of what a listed operation does and does not promise.<br/><br/>A missing or malformed bearer token returns 401. A well-formed token whose scopes do not admit this operation returns 403. The response is never cached by an intermediary (`Cache-Control: private, no-store` on every status code), since it describes the caller who presented it.","operationId":"getV1Discovery","parameters":[{"description":"`Bearer <token>`","in":"header","name":"authorization","required":true,"schema":{"description":"`Bearer <token>`","type":"string"}},{"description":"The API version to serve. A request without the header gets your account's default version, currently 2026-10. Any value other than a supported version is refused with a 400.","example":"2026-10","in":"header","name":"WHCC-API-Version","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"Success. The operations your credentials can currently reach.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"description":"A problem details body. `supportedVersions` is present only on the unsupported-version refusal.","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"status":{"example":400,"type":"integer"},"supportedVersions":{"example":["2026-10"],"items":{"type":"string"},"type":"array"},"title":{"example":"Unsupported API version","type":"string"},"type":{"example":"https://developer.whcc.com/problems/unsupported-api-version","type":"string"}},"type":"object"}}},"description":"Two kinds of 400 come from this operation: a request that fails validation, and a `WHCC-API-Version` value that is not a supported version. The latter is refused with problem type `https://developer.whcc.com/problems/unsupported-api-version` and a `supportedVersions` member listing the valid versions, and carries no version headers.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too. On the unsupported-api-version refusal, Vary does not list WHCC-API-Version; it may list other request headers.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none. Not sent on the unsupported-api-version 400 refusal.","schema":{"type":"string"}}}},"401":{"description":"Unauthorized. The bearer token is missing, malformed, or expired.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"403":{"description":"Forbidden. The token is valid but lacks a scope this endpoint requires.","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}},"500":{"description":"Internal Error","headers":{"Vary":{"description":"Lists `WHCC-API-Version`; may list other request headers too.","schema":{"type":"string"}},"WHCC-API-Version":{"description":"The API version that served this response.","schema":{"type":"string"}},"WHCC-API-Version-Latest":{"description":"The newest API version.","schema":{"type":"string"}},"WHCC-API-Version-Requested":{"description":"The `WHCC-API-Version` value you sent. Absent when you sent none.","schema":{"type":"string"}}}}},"summary":"Lists the operations your credentials can currently reach","tags":[""],"x-whcc-api-key":true}},"/v1/fulfillment/account":{"get":{"description":"Never mints a payment launch token. See `POST /account/payment-method-actions` for minting a single-use \"set card on file\" launch URL.\n","operationId":"getAccount","parameters":[{"description":"Opt-in expansion of expensive fields. Comma-separated list, or repeated `expand[]=` array. Tokens are case-sensitive; a token that is not listed below is rejected with `400`.\n\nKnown tokens:\n\n  * `paymentMethods` -- contact the payment provider and populate\n    `financials.payment.methods` and `financials.payment.status`.\n    Without this token (the default), `payment.status` is\n    `not_requested` and `payment.methods` is `[]`. Use this only\n    on screens that actually render saved cards (e.g. checkout)\n    so that lighter-weight callers (account header, profile page)\n    aren't paying the provider round-trip latency.\n","example":"paymentMethods","in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentAccount"}}},"description":"Account detail","headers":{"Cache-Control":{"description":"Always `private, max-age=30` -- this is a pure read and never mints.","example":"private, max-age=30","schema":{"type":"string"}},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter other than `expand`, an `expand` value that is not valid UTF-8, or an `expand` token this operation does not know. All are refused rather than ignored.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Account detail with addresses and billing","tags":["account"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/event-subscriptions":{"get":{"description":"Every event subscription on the calling account. The account is taken from the credential; there is no way to list another account's subscriptions and no parameter that would name one.\n\n**`signingSecret` is never present on a read.** It is returned exactly once, by the create operation or by a rotation, and no other operation returns it.\n\n**This is the recovery path for a create you never saw the response to.** The subscription is written before the response is sent, so a create that times out may have succeeded. List your subscriptions to find it; its secret is unrecoverable, so delete it and create another.\n\nAn account holding no subscriptions gets `200` with an empty `items`, never a `404`. There is no pagination: an account may hold at most 25 subscriptions, so the collection fits in one response.\n","operationId":"listEventSubscriptions","parameters":[{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionListResponse"}}},"description":"The account's event subscriptions","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"List event subscriptions","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":false},"post":{"description":"Registers a destination to receive order events for the calling account.\n\n**The subscription is created `disabled`.** Nothing is delivered to it until you enable it, so the usual sequence is create, then `POST /event-subscriptions/{id}/enable`.\n\n**`signingSecret` is shown once, in this response.** No operation but a rotation returns it again. If you lose this response you cannot recover the secret; the subscription can only be deleted and created again, or rotated for a fresh one -- unless you sent `Idempotency-Key`, in which case the identical retry hands you the same secret again. Without that header a create that times out is *state unknown* rather than failed -- the subscription may exist, so retrying can leave you holding a second one whose secret you never saw.\n\n**The account is never in the request.** There is no body field that names an account, and a body carrying one is refused.\n","operationId":"createEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentIdempotencyKey"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCreateEventSubscriptionRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCreatedEventSubscription"}}},"description":"The subscription, with its signing secret. A repeat of this same request under the same `Idempotency-Key` answers with this same secret and the subscription's state **as it is when the repeat arrives** -- see that parameter for what a subscription changed or deleted in between answers.\n","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body could not be read, or carries a field this resource does not have. A top-level `webhookVersion` is refused rather than ignored -- the payload version is `destination.version` -- and so is any field naming an account.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"Insufficient scope. Either the route's own gate -- a credential carrying none of `client`, `superadmin` or `apikey`, refused before any of the body is read and carrying **no** `code` -- or, with `code: insufficient_scope`, a body naming `destination.version: 1` on a credential without `apikey:oas`. The second refusal is asked once the version is known to be well formed and before any other field is validated, so a version outside `{1, 2}` is still `422 invalid_webhook_version`, and nothing is written.\n"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"Two causes, told apart by `code`. `subscription_limit_reached` -- this account already holds the maximum number of subscriptions, active or not (25); delete one, or ask WHCC to raise the limit. `idempotency_key_conflict` -- the `Idempotency-Key` you sent is already associated with a different request body, with a request that has not finished, or with a create whose subscription no longer exists; use a new key for a different request, or retry this exact one. If a repeat keeps answering this way for a request you believe succeeded, read `GET /api/v1/fulfillment/event-subscriptions`: the subscription may well be there, in which case the secret is not recoverable and the subscription should be deleted and created again under a new key.\n"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"A value this service will not accept. Read `code`: `unsupported_destination_type`, `invalid_callback_uri`, `invalid_webhook_version`, `invalid_signing_secret`, `unknown_event_type`, `event_type_unavailable_for_version` or `incomplete_event_coverage`.\n"},"501":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"**This version of the API does not answer it.** The response is retained, and not answered, because `webhook_version_unsupported` is in the published `code` list; `destination.version: 1` is accepted with `apikey:oas` and refused `403 insufficient_scope` without it. See the `403` response.\n"}},"summary":"Create an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/event-subscriptions/event-types":{"get":{"description":"Every event type this service knows, selectable or not -- the whole vocabulary `eventTypes` draws from, independent of any one subscription's `destination.version`.\n\n**Two ways an entry can be unusable, told apart by which fields are set.** A type available only at some versions -- `order.rejected` and `order.cancelled` today -- publishes `available: true` with a `versions` list that does not include every payload version; select it on a subscription whose `destination.version` is not in that list and you get `422 event_type_unavailable_for_version`. A type nobody may ever select -- `order.image-download` today -- publishes `available: false` with `unavailableReason` explaining why and, where one exists, `seeAlso` naming the type to select instead; selecting it anyway is `422 unknown_event_type`.\n\nThis operation takes no parameter: it is the whole catalog, not one subscription's slice of it.\n","operationId":"listEventSubscriptionEventTypes","parameters":[{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventTypeCatalogResponse"}}},"description":"The catalog, in a stable order","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"The event-type catalog","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/event-subscriptions/{id}":{"delete":{"description":"Removes the subscription permanently. Deliveries stop immediately and the signing secret is gone with the row; there is no undo and no archive.\n","operationId":"deleteEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"204":{"description":"Deleted","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"}},"summary":"Delete an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-irreversible":true,"x-whcc-writes":true},"get":{"description":"One subscription on the calling account.\n\n**`signingSecret` is never present on a read.** It is returned exactly once, by the create operation or by a rotation, and no other operation returns it.\n\nAn identifier that belongs to another account answers `404`, the same as one that does not exist: the two are deliberately indistinguishable, so this operation cannot be used to discover that a subscription exists.\n\n**The `ETag` is what a replace can be made against.** Send it back as `If-Match` on `PUT /event-subscriptions/{id}` and the replace is refused, rather than written over, if the subscription changed after this read.\n","operationId":"getEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscription"}}},"description":"The subscription","headers":{"ETag":{"$ref":"#/components/headers/FulfillmentEventSubscriptionETag"},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Read one event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":false},"put":{"description":"Replaces `destination`, `eventTypes` and `description` wholesale. `id`, `accountNo`, `status` and `signingSecret` are immutable and a body naming any of them is refused.\n\n**There is no partial update, and omitting a field does not preserve it.** Only `destination` is required. Every other field you leave out is reset to what a create would have given it, not carried over from the current resource:\n\n- `eventTypes` omitted becomes `[\"*\"]` -- every event type, not the\n  selection the subscription had.\n\n- `description` omitted becomes `null` -- the existing one is cleared.\n- `destination.version` is the one exception: omitted, it keeps the\n  subscription's current version, because a replace may not change it.\n\n\nRead the current resource first and send back everything you mean to keep.\n\n**`destination.version` cannot change.** Omit it to keep the subscription's current version; send a different one and the request is refused, `422 destination_version_immutable`. Moving a subscriber between payload versions is not supported by this operation -- delete the subscription and create a new one with the version you want.\n\n**`acknowledgeIncompleteCoverage` is not carried over from the create.** It is request-scoped, so a body that still leaves coverage incomplete has to resupply it here.\n\n**A `suspended` subscription stays `suspended`.** This operation never sets `status`; a corrected `callbackUri` is not an implicit `POST .../enable`.\n\n**Send `If-Match` so a change made since your read is not overwritten.** Because this operation replaces the whole subscription, a body built from a read writes back that read's values for every field you did not mean to change -- including any somebody else changed in between. With the `ETag` from `GET /event-subscriptions/{id}` as `If-Match`, the replace is refused `412 etag_mismatch` instead, and nothing is written. The `ETag` is computed from the values of `destination`, `eventTypes`, `description` and `status`, so it moves when one of them is set to a different value -- by a replace, `enable` or `disable` -- and not for deliveries or a secret rotation; an `active` subscription's traffic does not stale it. A value changed and then changed back reads as unchanged, and nothing a replace writes differs from what you read. Without `If-Match` the replace is written whatever has changed.\n","operationId":"replaceEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"description":"The `ETag` from `GET /event-subscriptions/{id}`, or from a previous replace, unaltered. Opaque: do not parse, compare or construct one. `*` matches the subscription at whatever version it is; a comma-separated list matches when any member does. A weak validator (`W/\"...\"`) never matches.\n","example":"\"C2B556BFD059C263B72B8FDE28E8C4FF0B1A7261AD5866DF1C69EEC00481FABE\"","in":"header","name":"If-Match","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentUpdateEventSubscriptionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscription"}}},"description":"The subscription, replaced","headers":{"ETag":{"$ref":"#/components/headers/FulfillmentEventSubscriptionETag"},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body could not be read, or carries a field this operation does not have -- `id`, `accountNo` and `status` among them, exactly as on a create.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"Insufficient scope. Either the route's own gate -- a credential carrying none of `client`, `superadmin` or `apikey` -- or, with `code: insufficient_scope`, a body naming `destination.version: 1` on a credential without `apikey:oas`. Reaching this second refusal requires the row to already store version 1, minted outside this API before it existed: no `PUT` body can introduce version 1 to a row that does not already carry it, because a disagreeing `version` is refused outright before any scope is checked -- see the `422` response.\n"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"412":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"`etag_mismatch`: the subscription changed after the read your `If-Match` came from, or `If-Match` named no strong validator. Nothing was written. The body is checked first, so a request that is also invalid is answered `400`, `403` or `422` instead: fix the body before re-reading. Read `GET /event-subscriptions/{id}` again, decide against what you find, and send with the new `ETag` -- do not resend the same request.\n"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"A value this service will not accept. Read `code`: `unsupported_destination_type`, `invalid_callback_uri`, `invalid_webhook_version`, `destination_version_immutable`, `unknown_event_type`, `event_type_unavailable_for_version` or `incomplete_event_coverage`.\n"}},"summary":"Replace an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/event-subscriptions/{id}/deliveries":{"get":{"description":"Every delivery WHCC attempted against this subscription, newest first -- the self-service answer to \"did you send it, and what did my endpoint say?\".\n\n**Attempts, not deliveries.** A row exists for each POST WHCC made, whatever came back. A `500`, a timeout and a refused connection are all recorded, and are the rows this operation mostly exists to show.\n\n**`statusCode` is `null` when nothing answered.** A request that never reached you -- DNS failure, refused connection, TLS failure, a client-side timeout -- carries no status, and `reason` says which (`transport error` or `timeout`). A `503` in this field is a `503` your endpoint returned.\n\n**Pagination matches `GET /orders`**: both lists are newest-first, `before` walks into the past and `after` walks back toward the present, so one paginator reads either. Where this operation differs is that both cursors are published on any non-empty page, so the newest one can be replayed to poll for attempts that have happened since.\n\n**A cursor is resolved against this subscription's own attempts, and one that matches none of them returns an empty page rather than an error.** That covers a cursor from another subscription, a made-up one, and one naming an attempt that is no longer stored. So an empty page with `hasMore: false` does not by itself prove nothing is there -- a client that gets one from a long-held cursor restarts from the first page.\n\nAn identifier that belongs to another account answers `404`, the same as one that does not exist. A subscription that exists but has never delivered answers `200` with an empty `items` array.\n","operationId":"listEventSubscriptionDeliveries","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"description":"Page size, 1 to 100.","in":"query","name":"limit","required":false,"schema":{"default":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from a previous response's `pagination.nextBefore`. Returns attempts OLDER than that cursor -- the next page going back in time, the same sense `before` has on `GET /orders`. Mutually exclusive with `after`.\n","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"description":"Opaque cursor from a previous response's `pagination.nextAfter`. Returns attempts NEWER than that cursor. Replay the `nextAfter` of your newest page to poll for attempts since. Mutually exclusive with `before`.\n","in":"query","name":"after","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentDeliveryListResponse"}}},"description":"One page of delivery attempts, newest first.\n\n**An empty page does not prove there is nothing there.** A cursor is resolved against this subscription's own attempts, and one matching none of them -- another subscription's, a made-up one, or one no longer stored -- returns `items: []` with `hasMore: false`, which is the same answer as \"nothing further this way\". A client whose long-held cursor goes quiet restarts from the first page rather than concluding the log is empty.\n","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter this operation does not accept, a value that is not valid UTF-8, a `limit` that is not an integer between 1 and 100, a cursor that is not well formed, or `before` and `after` together.\n\n**A well-formed cursor is not checked against the ones this operation issued.** It is resolved against this subscription's own attempts, so a cursor naming an attempt that is not one of them -- another subscription's, a made-up one, or one no longer stored -- selects nothing and the page comes back empty rather than `400`.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"List delivery attempts for an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/event-subscriptions/{id}/disable":{"post":{"description":"Sets the subscription to `disabled` with `statusDetail.reason: \"user\"`, so deliveries stop. A state assertion rather than a transition: disabling a subscription that is already stopped answers `200` with the resource.\n","operationId":"disableEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscription"}}},"description":"The subscription, now disabled","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"}},"summary":"Disable an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/event-subscriptions/{id}/enable":{"post":{"description":"Sets the subscription to `active`, so deliveries begin.\n\n**A state assertion rather than a transition**: enabling a subscription that is already `active` answers `200` with the resource, not a conflict.\n\nIt is also the way back from `suspended`. Enabling clears the stop and resets the consecutive-failure count, so a subscription WHCC stopped for repeated failures does not re-suspend on its very next failure.\n\nAn account may have at most 10 subscriptions `active` at once. Enabling one more is refused with `409 subscription_limit_reached`; `disabled` and `suspended` subscriptions do not count, so disabling one makes room. A subscription that is already `active` is never refused.\n","operationId":"enableEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscription"}}},"description":"The subscription, now active","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"`subscription_limit_reached` -- this account already has the maximum number of `active` subscriptions (10), and this one is not among them. Nothing is written. Disable or delete another, or ask WHCC to raise the limit.\n"}},"summary":"Enable an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/event-subscriptions/{id}/rotate-secret":{"post":{"description":"Mints a fresh signing secret in place. The secret this replaces moves to a previous-secret slot and keeps signing deliveries for the overlap window `expiresIn` names -- during that window every delivery carries **two** `v1=` elements in its `WHCC-Signature` header, the fresh secret first and the previous one second, and you are verified if either one checks out. After the window closes only the fresh secret signs.\n\n**`signingSecret` is shown once, in this response.** No operation but a create or another rotation returns it again, and there is no read that recovers a lost one.\n\n**If you lose this response and did not send `Idempotency-Key`, the only way back is to rotate again once `previousSecretExpiresAt` has passed.** This service cannot tell \"you never saw this\" from \"you are holding it already\", so there is no other recovery -- rotating again discards a secret nobody can prove was ever read. Sending `Idempotency-Key` is what avoids the situation: the identical retry replays the exact secret this call minted, rather than forcing a second rotation to recover from one that might already have been seen.\n\n**A rotation while a previous one's window is still open is refused, `409 rotation_in_progress`.** Only one previous secret is kept at a time, so a second rotation before the first's window closes would discard a secret a delivery still being retried may have been signed with. Wait for `previousSecretExpiresAt`, which the `409` carries, and rotate again after it passes.\n","operationId":"rotateEventSubscriptionSecret","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentIdempotencyKey"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRotateEventSubscriptionSecretRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCreatedEventSubscription"}}},"description":"The subscription, with its fresh signing secret. A repeat of this same request under the same `Idempotency-Key` answers with this same secret and the subscription's state **as it is when the repeat arrives** -- see that parameter for what a subscription changed in between answers.\n","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body is not valid JSON, is not a JSON object, carries a field other than `expiresIn`, or `expiresIn` is present and neither `null` nor an integer. `code` is `malformed_request`.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentEventSubscriptionNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"Two causes, told apart by `code`. `rotation_in_progress` -- a previous rotation's overlap window is still open; `previousSecretExpiresAt` carries when it closes, and rotating again before then would discard a secret a delivery still being retried may have been signed with. `idempotency_key_conflict` -- the `Idempotency-Key` you sent is already associated with a different request body or with a rotation that has not finished; use a new key for a different request, or retry this exact one.\n"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"`expiresIn` is an integer outside the bounds this service accepts. `code` is `invalid_expires_in`.\n"}},"summary":"Rotate an event subscription's signing secret","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/event-subscriptions/{id}/test":{"post":{"description":"Queues one synthetic event for this account and returns immediately.\n\n**Test events are available in the sandbox only.** In production this answers `422` with `test_events_unavailable_in_environment` for any well-formed `{id}` and any body, and the attempt does not count toward the rate limit. Test delivery in the sandbox instead, which keeps its own subscriptions: create them there before sending a test event.\n\n**Two modes: your own order, or a synthetic one.** Send `confirmationId` and the event fires against that order of yours, so the webhook carries its real `ConfirmationId`, `EntryId`, `Reference` and order number -- which is what you want when you are checking that your receiver matches a delivery to an order in your own system. Omit it and the event fires against a synthetic order WHCC keeps for your account, created on first use and reused afterwards. Nothing is produced, priced or shipped in either case, and no order of yours is advanced.\n\n**Every subscription on the account receives it, not only `{id}`, and each one receives it whatever its status.** The `{id}` in the path identifies the subscription whose signing secret and `eventTypes` this request is checked against; it does not narrow who the event is delivered to. If your account holds more than one subscription, expect the event at all of them, and filter on the payload if you need to recognise it.\n\n**Nothing is sent while you wait, and the webhook you receive is byte-identical to a real one.** This does not build a special payload and POST it: it writes a notification into the same queue a real order writes to, and the ordinary delivery pipeline builds, signs and delivers it. So the body, the headers, the `WHCC-Signature` and the retry behaviour are the real ones, not an imitation of them -- there is no second implementation that could drift away from what your orders will actually produce.\n\n**It works whatever the subscription's status.** A subscription is created `disabled`, so this is how you check an endpoint *before* enabling it -- and how you re-check one after fixing it, without resuming real deliveries first.\n\n**Nothing has proven that `callbackUri` is yours.** No challenge is sent at registration and no verification step exists, so the only thing standing between a URL and a signed delivery to it is this request. Delivery refuses an endpoint that resolves to a private address. A test event is also delivered only to port `443` or `8443`, whether the URL names the port or `https` implies it: a URL on any other port, or an `http` URL, still gets this `202`, but the event is never sent, and no attempt for it appears in `GET /event-subscriptions/{id}/deliveries`. This can only arise for a subscription whose `callbackUri` predates the port rule on create and `PUT`. Real deliveries are not limited by port. Treat the URLs on your subscriptions with the care you give a credential: a mistyped host receives your events, and a test event is the fastest way to find that out.\n\n**It respects the subscription's own `eventTypes`.** Asking for a type this subscription has not selected is refused rather than delivered: a real one would not arrive either, and an event that ignored your filter would prove the wrong thing.\n\n**A test event is not counted toward auto-disable.** Diagnosing a broken endpoint cannot suspend your subscription, and a successful test cannot postpone a suspension either.\n\n**Delivery is asynchronous**, so this cannot tell you what your endpoint answered. Correlate with `notifyUid`, and observe the result at your own endpoint.\n\n**Rate limited** to 50 attempts per account and 150 per source address, per fixed clock-hour window. The window is fixed rather than rolling, so an allowance is restored at the top of the hour rather than an hour after each attempt. Attempts against a subscription that exists are counted whether or not they are accepted, so a run of rejected requests consumes the allowance. Attempts refused before the subscription is found are not counted: `test_events_unavailable_in_environment`, `subscription_not_found`, and any refusal for scope or version. `Retry-After` on a `429` carries the seconds until the window rolls over.\n","operationId":"testEventSubscription","parameters":[{"$ref":"#/components/parameters/FulfillmentEventSubscriptionId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentTestEventRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentAcceptedTestEvent"}}},"description":"The event was written and queued for a delivery attempt to every subscription on the account, whatever their status. Nothing has been attempted yet, and this is not a promise that any attempt will succeed -- the sender owns a retry ladder that can end in failure. Observe the result at your own endpoint.\n\n`subscriptionId` echoes the subscription named in the path, which is the one this request was validated against. It is not the only destination.\n","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body is missing, is not a JSON object, carries a field other than `eventType` or `confirmationId`, carries no `eventType`, or carries a `confirmationId` that is not a GUID. `code` is `malformed_request`.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"`subscription_not_found` where no subscription on your account has this identifier, or `confirmation_not_found` where the `confirmationId` you sent names no order on your account. Both cover \"it does not exist\" and \"it belongs to someone else\" with one answer, deliberately: two would let a caller enumerate other accounts' identifiers.\n"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"The subscription cannot receive a test event in its current state. `code` is `no_signing_secret` where the subscription carries none -- it would be delivered to with an empty `WHCC-Signature`, which you are told to treat as a verification failure -- or `shipped_dedup_pending` where a previous shipping test event for this account has not been delivered yet. Shipment notifications collapse per order per batch, so a second one written into that window would never arrive; retry shortly.\n"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"`test_events_unavailable_in_environment` where this environment serves no test events, which means production: use the sandbox. This says nothing about whether `{id}` exists.\n\nOtherwise, `eventType` names something this subscription cannot be sent. `unknown_event_type` where it is not an event type at all, or is one that cannot be fired (the refusal names the substitute); `event_type_unavailable_for_version` where the type exists but not at this subscription's `destination.version`; `event_type_not_selected` where the type exists at that version and this subscription's `eventTypes` does not include it; `event_type_unavailable_in_environment` where this environment serves test events but cannot fire this type at all. No correctly configured environment sends it today: every environment that serves test events can fire every type. It is a property of the environment rather than of the subscription, so no change to `eventTypes` or `destination.version` clears it; the other event types are unaffected.\n"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentEventSubscriptionProblemDetails"}}},"description":"Too many test event attempts from this account or this address in the current fixed clock-hour window. Attempts against a subscription that exists are counted whether or not they were accepted; attempts refused before the subscription is found are not. `Retry-After` carries the seconds until the window rolls over. `code` is `rate_limited`.\n","headers":{"Retry-After":{"description":"Seconds until the current window resets.","example":1847,"schema":{"type":"integer"}}}}},"summary":"Fire a test event at an event subscription","tags":["event-subscriptions"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/orders":{"get":{"operationId":"listOrders","parameters":[{"description":"Number of orders to return (1-100)","in":"query","name":"limit","schema":{"default":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque cursor token for backward pagination. Pass the `nextBefore` value from a previous response. Mutually exclusive with `after`.","in":"query","name":"before","schema":{"type":"string"}},{"description":"Opaque cursor token for forward pagination. Pass the `nextAfter` value from a previous response. Mutually exclusive with `before`.","in":"query","name":"after","schema":{"type":"string"}},{"description":"Open the list at one order: an order number (`80055773`) or an\norder ID (`FO_KrWUwmUL4e5Q8z`). That order is the first item, and\nthe orders older than it follow. `nextBefore` continues with older\norders, and `nextAfter` returns the orders newer than it.\n\nThis is the supported way to open the list at a given order. Don't\nbuild a `before` cursor for it -- cursors are opaque and their\nencoding may change.\n\nA value that isn't an order number or order ID, or names an order\nthat doesn't exist or isn't on your account, is answered with\n`404`, never with a page starting at another order. Only\n`limit` can be sent with `startAt`; any other parameter is answered\nwith `400`. An empty `startAt` is ignored.\n","in":"query","name":"startAt","schema":{"type":"string"}},{"description":"Broad order lookup: matches your order reference by substring, and\nmatches an order number when the whole term is digits. `80055773`\ncan return order 80055773; `80055773-proof` is a reference search\nonly, and returns an order only if that order's reference contains\nit. Reach for `search` when you have a partial or uncertain\nreference; use `reference` when you have the exact one and want\nonly the order carrying it. Mutually exclusive with `reference`.\n\nBy default the reference match covers only your newest 50,000\norders, which is every order for nearly every account; send\n`searchScope=all` to match references across all of them. An order\nnumber is found at any age either way. The response's\n`searchScope` says which orders the search covered.\n","in":"query","name":"search","schema":{"type":"string"}},{"description":"Which of your orders `search` matches by reference. `recent`\nmatches your newest 50,000 orders; `all` matches every order, and\ntakes longer on an account with more orders than that. Only with\n`search`: sent without it, or beside a blank one, the request is\nanswered with `400`.\n","in":"query","name":"searchScope","schema":{"default":"recent","enum":["recent","all"],"type":"string"}},{"description":"The orders from one Order Submit API entry: the `ConfirmationID`\nthat entry was given, which an order reports as\n`entry.confirmationId`. One entry can produce more than one order,\nso this narrows the list rather than identifying a single order.\nMutually exclusive with `sourceConfirmationId`.\n","in":"query","name":"entryConfirmationId","schema":{"format":"uuid","type":"string"}},{"description":"The orders imported under your own `EntryID`: the value an order\nreports as `entry.entryId`, matched without regard to case or\ntrailing spaces. An `EntryID` you submit more than once matches\nevery order each entry produced, so this narrows the list rather\nthan identifying a single order. A value carrying a character no\n`EntryID` can hold is answered with `400`.\n","in":"query","name":"entryId","schema":{"maxLength":50,"type":"string"}},{"description":"An order's `SequenceNumber` within its entry: the value an order\nreports as `entry.sequenceNumber`, matched as text without regard\nto case or trailing spaces, so `1` does not match `01`. Only with\n`entryId`, since a sequence number on its own matches an order from\nnearly every entry; sent without it, the request is answered with\n`400`.\n","in":"query","name":"entrySequenceNumber","schema":{"maxLength":10,"type":"string"}},{"deprecated":true,"description":"Deprecated -- use `entryConfirmationId`, which takes the same\nvalue and matches the same orders. Mutually exclusive with it. Will\nbe removed in a future major version.\n","in":"query","name":"sourceConfirmationId","schema":{"format":"uuid","type":"string"}},{"description":"Source order the orders were created from. A source order can be\nsplit into more than one order.\n","in":"query","name":"sourceOrderId","schema":{"type":"string"}},{"description":"Your own order reference, matched exactly: `1000` returns the order\nreferenced `1000` and not the one referenced `10001`. Mutually\nexclusive with `search`.\n","in":"query","name":"reference","schema":{"type":"string"}},{"description":"Earliest order receipt time to include, inclusive. A date\n(`2026-01-31`) or a timestamp (`2026-01-31T09:00:00Z`); a value\nwith no zone offset is read as UTC, and an offset must be between\n`-14:00` and `+14:00`.\n","in":"query","name":"receivedAfter","schema":{"type":"string"}},{"description":"Order receipt time to stop before, exclusive, so consecutive ranges\ndo not overlap. Same accepted formats and offset range as\n`receivedAfter`, and must not be earlier than it.\n","in":"query","name":"receivedBefore","schema":{"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderListResponse"}}},"description":"Paginated list of order summaries.\n\n`entryConfirmationId`, `entryId`, `entrySequenceNumber`,\n`sourceOrderId`, `reference` and the\n`receivedAfter`/`receivedBefore` range all narrow the same list and\ncombine: an order is returned only when it satisfies every filter\ngiven. Each of them also composes with `before` and `after`.\n\nEach filter takes one value. A filter sent more than once, or sent\nin bracketed list form, is answered with `400` rather than\nignored.\n\nOnly the parameters listed above are accepted. Any other query\nparameter is answered with `400` naming it, rather than ignored --\nso a misspelled filter cannot come back as an unfiltered list.\n","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"$ref":"#/components/responses/FulfillmentBadRequest"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"No order on your account matches `startAt`."},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Paginated order list","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/configured-products":{"get":{"operationId":"searchOrderConfiguredProducts","parameters":[{"description":"Source order identifier to match against fulfillment orders","in":"query","name":"sourceOrderId","required":true,"schema":{"minLength":1,"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderConfiguredProductsSearchResponse"}}},"description":"Fulfillment orders with configured product IDs grouped by order","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"`sourceOrderId` is missing or blank, is not valid UTF-8, or a query parameter other than `sourceOrderId` was sent. An unknown parameter is refused rather than ignored.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Search order configured products by source order ID","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/{id}":{"get":{"operationId":"getOrder","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrder"}}},"description":"Order detail","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Full order detail","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/{id}/cancel-actions":{"post":{"description":"Asks whether an order the calling account owns can be canceled, and -- when it can -- returns a short-lived **cancel token** that `POST /orders/{id}/cancellation` accepts as the answer it was given.\n\n**The token is a promise with a clock on it.** Present it within 30 seconds and the cancellation runs even if the order has moved on in the meantime: we said the order was cancellable and we keep that promise. Between 30 and 300 seconds eligibility is re-derived honestly -- the cancellation proceeds if the order is still eligible and is refused naming the blocking status if it is not. Past 300 seconds the token is refused and eligibility must be requested again.\n\n**Nobody is ever refused for the clock alone while their order is still eligible.** An older token on an order that is still cancellable is honoured; only a token past the 300 second cap is refused outright.\n\n⚠️ **The clock runs from this call, not from a page render.** Mint when the photographer clicks cancel, not when the page listing their orders loads -- the promise is only that we will not move the goalposts between their click and their confirm.\n\n**A token is usable exactly once.** Redeeming it burns it; presenting it a second time is `409 cancel_token_already_used`, whatever the outcome of the first attempt was.\n\n**Minting is never part of `GET /orders/{id}`**, which is cacheable and would serve a token whose promise was already part-spent. Every response here is `no-store, private`. A token that is never redeemed simply expires.\n","operationId":"mintOrderCancelActions","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"examples":{"empty":{"summary":"No body (or `{}`) -- this operation reads no field","value":{}}},"schema":{"$ref":"#/components/schemas/FulfillmentCancelActionsRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCancelActions"}}},"description":"The order is eligible, and a token was minted for it.\n","headers":{"Cache-Control":{"description":"Always `no-store, private` -- the response carries a live single-use token and must never be cached or replayed by an intermediary.\n","example":"no-store, private","schema":{"type":"string"}},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"Malformed request body: invalid JSON, a non-object top level, or any key at all. This operation reads no field, so a body carrying one is rejected rather than ignored -- most usefully when `cancelToken` is sent here instead of to `POST /orders/{id}/cancellation`, which silently accepted would look like a token this endpoint had honoured.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"The identifier is not a recognizable order identifier. An identifier of a valid shape that names no order the account owns is a `422` with reason `order_not_found`, not a `404`.\n"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentCancellationProblemDetails"}}},"description":"No token was minted, because the order cannot be canceled. `code` is always `order_not_cancelable`, and `cancelEligibility` is the order's own eligibility answer -- the same object, at the same property name, that order detail carries, and the same one the cancellation itself would refuse with. A promise is only ever made about an order we would honour it for.\n"}},"summary":"Mint a cancel token for an order","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/{id}/cancellation":{"post":{"description":"Asks to cancel an order the calling account owns. Both terminal states answer `200` and say which one happened: `canceled` means the order is voided and the money is on its way back, `cancellation_requested` means the ask is recorded and a person is finishing it. Either way the order shows `Request to Cancel Order` shortly afterwards, and a canceled one shows `Order Cancelled` after that.\n\n**Production is stopped before either answer is decided.** Which of the two a request ends in depends on what each production system reported while being stopped, not on anything read beforehand -- so an order this service cannot fully account for is finished by a person, with its work already halted when they get to it.\n\n**Once production has been stopped the request can no longer be refused.** Every `4xx` below is decided before anything is written. After that point every failure -- including a refused or partly completed void upstream -- answers `200 cancellation_requested`, because the alternative is telling a caller nothing happened while the order sits stopped on the production floor.\n\n**A retry is answered, never re-run.** A cancellation moves money, so one attempt at a time runs per order and it is never automatically re-attempted. A repeat arriving while an attempt is still running is `409 cancellation_in_progress`; a repeat arriving after one finished is answered `200` with the outcome that attempt reached, so the order is voided once and the money returned once however many times the request is sent. The record is kept for at least 24 hours -- its expiry is a floor, not a deadline -- after which a repeat is refused by the eligibility gate instead.\n\n**Eligibility is enforced here, not merely displayed.** The same answer an order carries at `cancelEligibility` gates this request, so an order that shows itself as ineligible is refused with `422` naming the reason, the status that blocked it, and when the order reached that status. An order that does not exist, or that belongs to another account, is refused the same way with reason `order_not_found`.\n\n**The response deliberately does not embed the order.** The statuses this request writes reach order detail after this call has answered, so an embedded order would show the order as it was beforehand. Re-read the order to see its new state.\n","operationId":"requestOrderCancellation","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"examples":{"redeeming":{"summary":"Redeeming a token from the mint operation","value":{"cancelToken":"eyJvcmRlcklkIjoiRk9fQnYzakw4c041eFc2aFpmIn0.k7bR3xQ9pT2mN5wY"}}},"schema":{"$ref":"#/components/schemas/FulfillmentCancellationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentCancellationResult"}}},"description":"The request reached one of the two terminal states. Which one is in `outcome`.\n","headers":{"Cache-Control":{"description":"Always `no-store, private` -- the answer describes a one-off state change.","example":"no-store, private","schema":{"type":"string"}},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentCancelTokenProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"Either a malformed request body -- invalid JSON, a non-object top level, or a key this operation does not accept -- or a `cancelToken` that could not be honoured, in which case `code` is `cancel_token_invalid`.\n\nA query parameter is refused as well: this operation accepts none.\n\nThat slug is deliberately opaque: an absent or empty token, a token this service did not mint, one minted for another account, and one minted for another order all answer identically, because in each case the caller is not the photographer holding a good confirmation for this order. Nothing was done to the order.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"The identifier is not a recognizable order identifier. An identifier of a valid shape that names no order the account owns is a `422` with reason `order_not_found`, not a `404`.\n"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentCancellationInProgressProblemDetails"},{"$ref":"#/components/schemas/FulfillmentCancelTokenProblemDetails"}]}}},"description":"Nothing was done to the order by this request, for one of two reasons.\n\n`cancellation_in_progress` -- a cancellation attempt for this order is already running. Wait for it rather than retrying immediately: once it finishes, a repeat is answered `200` with the outcome it reached.\n\n`cancel_token_already_used` -- the token was already redeemed. A token is usable exactly once, so a captured confirmation cannot be replayed. Mint a new one if the order still needs canceling; the first attempt's outcome is what stands.\n"},"422":{"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FulfillmentCancellationProblemDetails"},{"$ref":"#/components/schemas/FulfillmentCancelTokenProblemDetails"}]}}},"description":"Nothing was done to the order, for one of two reasons.\n\n`order_not_cancelable` -- the order cannot be canceled, and `cancelEligibility` is the order's own eligibility answer: the same object, at the same property name, that order detail carries. A token still inside its 30 second grace is honoured instead of producing this, even where the order has moved on.\n\n`cancel_token_expired` -- the token is past its 300 second cap. It carries no `cancelEligibility`, because it is not an answer about the order: this does **not** mean the order cannot be canceled. Request eligibility again and, if it is still eligible, the new token will be honoured. Nobody is refused for the clock alone while their order is still cancelable.\n"}},"summary":"Request cancellation of an order","tags":["orders"],"x-whcc-api-key":true,"x-whcc-irreversible":true,"x-whcc-writes":true}},"/v1/fulfillment/orders/{id}/configured-products":{"get":{"operationId":"getOrderConfiguredProducts","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderConfiguredProductsResponse"}}},"description":"Configured product IDs associated with the order","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Order configured products","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/{id}/shipping":{"get":{"description":"Where the order's parcel is going, which shipping option it holds, and\nwhether its shipping can be changed, with the validator a change must\nbe made against.\n\n\n**`changeable` says whether a change is open.** This never refuses\nbecause an order cannot be changed: such an order answers `200` with\nboth `changeable` members `false` and a `reason`. That is a reading,\nnot an error, and there is nothing to retry. A change can still be\nrefused for something only the request decides; see\n`OrderShippingChangeable`.\n\n\n**Every order answers `200` but one kind.** A pickup order answers with\n`shipTo` `null` and `changeable.reason` `pickup`, and an unshipped\norder delivered to your studio answers with your account's address and\n`changeable.reason` `shipment-not-found`. A drop-ship order with no\nshipment record yet answers `404` with `code` `shipment-not-found`.\n\n\n**`ETag` is what a change is made against.** Take it from this response\nand send it back as `If-Match`. It is opaque: do not parse it, compare\nit, or construct one. It covers more than the address you can see, so a\nchange made to the order by anyone between your read and your write is\nrefused even when nothing you read has altered. It is sent only when a\n`changeable` member is `true`.\n\n\n**Do not take an `ETag` from anywhere else.** `GET /orders/{id}` is a\ncacheable read and carries no validator for this resource; this\nresponse is never stored, so that the validator you hold is the one\nthat was current when you asked.\n\n\n`shippingOptionId` is the same identifier the shipping options list\nreports, so selecting an option is a copy rather than a lookup.\n\n**Refusal codes, and what to do about each.** Every refusal that came\nfrom the service behind this one carries a `code`; a refusal this\nservice made itself carries none. `code` is an open string -- treat one\nyou do not recognise as a refusal rather than as a fault, and read\n`detail` for the sentence to show a customer. There is no `Retry-After`\non any of them: how long a failure lasts is not something this service\nknows, and a number here would be a promise about somebody else's\nincident.\n\n\nOne code, `invalid-request`, is the service behind this one answering a\n`4xx` it did not classify further. Its status is that service's own and\ncrosses unaltered, so it may be a status this operation does not\notherwise list -- which is why `code` is what you branch on and the\nstatus is what you set your retry posture from.\n\n| Code | Status | Re-sending the identical request | Permanence |\n| --- | --- | --- | --- |\n| `order-not-found` | 404 | Refused again | Permanent: the service behind this one holds no such order. Worth reporting -- this service already found the order on your account. |\n| `shipment-not-found` | 404 | Refused again | Permanent for now: the order has no shipment record to read. Ordinary rather than wrong. |\n| `current-offer-unreadable` | 409 | Refused again | Permanent until the order itself is corrected; nothing you can send changes it. |\n| `invalid-request` | upstream's own 4xx | Refused again unless the request changes | Permanent for this request. |\n| `read-failed` | 502 | Safe, and worth retrying | Temporary: the service behind this one failed, not yours and not this one. |\n| `unhandled-error` | 502 | Safe, and worth retrying | Temporary, as above. |\n","operationId":"getOrderShipping","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderShipping"}}},"description":"The order's shipping state, and the validator a change to it must carry.","headers":{"ETag":{"$ref":"#/components/headers/FulfillmentShippingETag"},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentShippingNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"$ref":"#/components/responses/FulfillmentShippingUpstreamConflict"},"502":{"$ref":"#/components/responses/FulfillmentShippingBadGateway"},"503":{"$ref":"#/components/responses/FulfillmentReadTimedOut"}},"summary":"Read an order's shipping state","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false},"put":{"description":"Replace where an order's parcel is going, and optionally which option\ncarries it, in one request.\n\n\n**This is a full-state replacement.** The address you send *is* the\naddress the order will have: a member you leave out is a member you are\nclearing, not one you are leaving alone. `GET /orders/{id}/shipping`\nreturns all ten address members for exactly this reason -- reading it,\nchanging what you mean to change and sending the whole object back is a\ncopy rather than a rebuild.\n\n\n**`shippingOptionId` is the one member absence does not clear.** Leave\nit out to keep the option the order holds. Sending the option it\nalready holds is a satisfied request that changes nothing. To change\nit, send an `id` from `GET /orders/{id}/shipping/options`.\n\n\n**`If-Match` is required.** Send the `ETag` from `GET\n/orders/{id}/shipping`, unaltered. Sending none is refused `428`, and\nsending one that no longer matches is refused `412` -- which means\nsomebody changed this order after your read, so re-read and decide\nagain rather than retrying. Do not take an `ETag` from `GET\n/orders/{id}`: it is a cacheable read and carries no validator for this\nresource.\n\n\n**What is corrected for you, and what is refused.** `country` is\nupshifted, so `us` and `US` are the same country. `phone` is sent on as\nE.164: `7185551234`, `718-555-1234`, `(718) 555-1234`, `718.555.1234`\nand `1-718-555-1234` are all read as `+17185551234`, and a number this\nservice cannot read -- one carrying letters or an extension -- is\nrefused rather than guessed at. Every member is trimmed, and a member\nthat is blank or only spaces is treated as cleared. Nothing else is\naltered.\n\n\n**What an address must carry.** `addr1`, `city`, `zip` and `country`,\nplus at least one of `attn` and `name` -- the label needs somebody to\naddress. A `US` address also needs a two-letter `state` and a `zip` of\nat least five characters; elsewhere `state` is optional, because much\nof the world has no state. Anything unusable is refused `422` before\nanything is written, with `invalidParams` naming each offending member.\n\n\n**The options list is computed for the address the order has\nnow.** `GET /orders/{id}/shipping/options`, the price on each\noption and each option's `availability` all answer for the order\nas it stands, and there is no way to ask what would be offered for\nan address the order does not hold yet. So a request that sends a\nnew `shipTo` and a new `shippingOptionId` together picks its\noption from a list computed for the address the order is leaving.\n\n\n**A change that moves the address is not refused on whether the\ncarrier reaches the new one.** That verdict can only be read from\nthe destination the order already has, so on a change that moves\nthe address it is left unasked rather than answered, and the\nchange is accepted with serviceability at the new address unknown.\nChoosing an option that cannot reach where the parcel is now going\n-- a FedEx option onto a PO Box, say -- is accepted rather than\nrefused, and nothing re-checks it afterwards: the order stays on\nthat option until somebody reads the options and changes it.\n\n\n**So re-read `GET /orders/{id}/shipping/options` after a change\nthat moved the address.** Availability there normally reflects the\nnew address within a few minutes of its being validated, and an\noption change sent after that is judged against it; some options\nare not re-checked against a new address at all and go on reading\n`unknown`. A change that leaves the address alone is judged\nagainst the address the order already has, so an option that\ncannot reach it is refused `422` `offer-not-available` with\n`reason` `not-serviceable`.\n\n\n**What a change of address can still be refused for.** Moving the\naddress re-derives what the order owes -- its tax, any state\ndelivery fee, any region surcharge -- and any of those can refuse\na change the options list gave no hint of:\n`region-surcharge-withheld`, `boundary-crossing-withheld`,\n`derived-charge-withheld`, `credit-floor-withheld` and\n`negative-balance-withheld`. `offer-not-available` is answerable\ntoo, on the checks that do not depend on where the parcel is going\n-- read its `reason`: a change that moves the address can be\nanswered `unknown-offer` or `not-billable-to-partner`, and cannot\nbe answered `not-serviceable`. The table below says what\nre-sending each of them does and how permanent each is.\n\n\n**Preview it first.** `POST /orders/{id}/shipping/preview` takes\nthis exact body and answers what this request would do -- the\noptions at the address you are moving to, what the order would\nthen owe, and the refusal this operation would give you -- without\nwriting anything. Send the `ETag` it hands back as this\noperation's `If-Match` and you write exactly what you previewed.\n\n\n**Without a preview it is one call or two, and neither is free of\nrisk.** Sending the address and the option together risks a\nrefusal about money decided against a list computed for the\naddress being left, or an acceptance onto an option that cannot\nreach the address being moved to. Sending the address first,\nre-reading the options once they reflect it, then sending the\noption costs a round trip -- and between the two calls the order\nsits at its new address on the option it already held, which may\nbe no better suited to that address than the one you would have\nchosen. Pick on which outcome your integration can recover from;\nthe two-call path is easier to reason about, not safe.\n\n\n**An option's price does not depend on the address; the order's\ntotal does.** Each figure in the options list comes from your\naccount's own pricing, and moving the parcel does not move it.\nTax, any state delivery fee and any region surcharge are all\nassessed against where the parcel is going, so a total shown to a\ncustomer beside an option price before an address change need not\nbe the total the order owes after it.\n\n\n**A refusal that carries a `code` is upstream's own.** `code` is an\nopen string -- treat one you do not recognise as a refusal rather than\nas a fault, and read `detail` for what to show a customer. A `422`\ncarrying `invalidParams` and no `code` is this service refusing your\nrequest locally.\n\n\nNothing is written when this operation refuses, whatever the status --\nwith one exception, and it is the one exception worth reading about\nbefore you integrate.\n\n\n**A change is never begun without time to finish it, and the two\noutcomes that follow from that are told apart by their `code`.** This\nservice refuses to start a change it has too little time left to\ncomplete: that is `503` `shipping_change_not_begun`, nothing was sent,\nyour order and its `ETag` are untouched, and the identical request --\nsame body, same `If-Match` -- is safe to send again straight away,\nunattended. It carries no `Retry-After` because the honest answer is\n*now*.\n\n\nThe outcome the floor exists to make rare is `504`\n`shipping_change_unconfirmed`: the change was sent and no answer came\nback, so **whether it was applied is not known**. Do not simply\nre-send. Read `GET /orders/{id}/shipping`, see whether your change is\nthere, and send the identical request again only if it is not -- using\nthe `ETag` that read gives you. There is no reconciliation endpoint and\nno application view; the re-read is the whole of the recovery, and it\nis enough because this operation is a full-state replacement.\n\n\n**These two are the only codes this service owns on these routes**, and\nthey are `snake_case` where every code from the service behind this one\nis `kebab-case` -- so the casing alone tells you which service decided.\n\n\n**Refusal codes, and what to do about each.** Every refusal that came\nfrom the service behind this one carries a `code`; a refusal this\nservice made itself carries none. `code` is an open string -- treat one\nyou do not recognise as a refusal rather than as a fault, and read\n`detail` for the sentence to show a customer. There is no `Retry-After`\non any of them: how long a failure lasts is not something this service\nknows, and a number here would be a promise about somebody else's\nincident.\n\n\nOne code, `invalid-request`, is the service behind this one answering a\n`4xx` it did not classify further. Its status is that service's own and\ncrosses unaltered, so it may be a status this operation does not\notherwise list -- which is why `code` is what you branch on and the\nstatus is what you set your retry posture from.\n\n| Code | Status | Re-sending the identical request | Permanence |\n| --- | --- | --- | --- |\n| `etag-mismatch` | 412 | **Do not.** Re-read `GET /orders/{id}/shipping` and decide again against what you find | Permanent for that validator; a fresh read gives you a usable one. |\n| `if-match-required` | 428 | Only with an `If-Match` added | Permanent until you send one. |\n| `invalid-address` | 422 | Refused again unless the address changes | Permanent for that address. |\n| `unwritable-fields` | 422 | Refused again unless the body changes | Permanent for that body. |\n| `offer-not-available` | 422 | Refused again while the offer stays unavailable | Read `reason`: it distinguishes \"not yet\" from \"never\", in the same vocabulary an option's `availability.reason` uses. |\n| `boundary-crossing-withheld` | 422 | Refused again | Permanent: a move to another country is not offered here. |\n| `credit-floor-withheld` | 422 | Refused again | Permanent: a rule about the account, not about the request. |\n| `region-surcharge-withheld` | 422 | Refused again | Permanent for that destination. |\n| `derived-charge-withheld` | 422 | Refused again until the charge can be priced; then safe unchanged, because nothing was written -- the address was not moved either | Permanent until a charge the change would add to the order, such as a state delivery fee, can be priced. |\n| `not-changeable-online` | 409 | Refused again | Temporary in principle -- only orders whose shipping is billed to your own carrier account can be changed online today, and other programmes are expected later -- but permanent for this order today. |\n| `order-not-editable` | 409 | Refused again | Permanent: the order has moved past the point where its shipping can change. |\n| `negative-balance-withheld` | 409 | Refused again | Permanent until the account's balance is settled; a rule about the account, not about the request. |\n| `carrier-account-unresolvable` | 409 | Refused again | Permanent until the carrier account is registered; a property of the order, not of your request. |\n| `current-offer-unreadable` | 409 | Refused again | Permanent until the order itself is corrected. |\n| `order-not-found` | 404 | Refused again | Permanent: the service behind this one holds no such order. Worth reporting -- this service already found the order on your account. |\n| `shipment-not-found` | 404 | Refused again | Permanent for now: the order has no shipment record to change. |\n| `invalid-request` | upstream's own 4xx | Refused again unless the request changes | Permanent for this request. |\n| `read-failed` | 502 | Safe: nothing was written | Temporary: the service behind this one failed. |\n| `shipping-change-failed` | 502 | Safe: nothing was written | Temporary, as above. |\n| `unhandled-error` | 502 | Safe: nothing was written | Temporary, as above. |\n| `shipping_change_not_begun` | 503 | Safe, and the right thing to do: nothing was sent, so send the identical request again immediately | Temporary, and usually momentary: this request ran short of time, the next one need not. |\n| `shipping_change_unconfirmed` | 504 | **Not until you have re-read.** `GET /orders/{id}/shipping`, then re-send the identical request only if your change is not there | Temporary. What is unknown is this one attempt, not the order. |\n","operationId":"changeOrderShipping","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"description":"The `ETag` from `GET /orders/{id}/shipping`, unaltered. Opaque: do not parse, compare or construct one.\n","example":"\"a1b2c3\"","in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingChangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderShipping"}}},"description":"The shipping state as it was written, and the validator a further change must carry -- so a second change needs no re-read.\n","headers":{"ETag":{"$ref":"#/components/headers/FulfillmentShippingETag"},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body was not a JSON object, carried a key this operation does not read, or carried a `shippingOptionId` that was not a non-empty string. Unknown keys are refused rather than ignored, so a member you believed did something never silently does nothing -- and a blank `shippingOptionId` is refused rather than read as an omission, because omitting it is how you say \"unchanged\".\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentShippingNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}}},"description":"A property of the order rather than of your request, so the identical request will keep being refused until the order changes. Read `code`: the order's shipping is not billed to your own carrier account, the order can no longer be edited, or the option it currently holds cannot be read. Re-sending does not help.\n"},"412":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}}},"description":"Your `If-Match` no longer matches this order's shipping state: something changed it after your read. Nothing was written. Re-read `GET /orders/{id}/shipping`, decide again against what you find, and send with the new `ETag` -- do not retry the same request.\n"},"422":{"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FulfillmentAddressValidationProblemDetails"},{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}]}}},"description":"The request was understood and refused. **Two shapes, told apart by which member is present:** `invalidParams` and no `code` is this service refusing your address locally, and names each offending member -- fix them and re-send. A `code` is a refusal from the service behind this one, and re-sending the identical request will be refused identically; `offer-not-available` also carries a `reason` saying which predicate said no, in the same vocabulary an option's own availability uses.\n"},"428":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}}},"description":"No `If-Match` was sent, so the change was refused rather than written blind. Read `GET /orders/{id}/shipping` and send its `ETag`.\n"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentAnyShippingProblemDetails"}}},"description":"The change could not be made. The failure is in the service behind this one rather than in this one, so your order is unchanged and the request is safe to repeat.\n\n**A `code` is present when that service said what went wrong** -- `read-failed`, `shipping-change-failed` or `unhandled-error`, relayed under this status because the failure is not this service's. Its absence means this service could not tell what happened, which is a different thing and is why the two are distinguishable rather than merged.\n"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentAnyShippingProblemDetails"}}},"description":"**Two answers, told apart by whether `code` is present, and they want opposite things from you.**\n\n`shipping_change_not_begun` means this request ran short of time and the change was never attempted. Nothing was sent, your order and its `ETag` are untouched, and the identical request is safe to send again immediately.\n\nNo `code` at all means shipping changes are not available in this environment yet: the route exists and is closed, so re-sending will not help. `GET /orders/{id}/shipping` still answers while this does not.\n\nNeither carries a `Retry-After` -- for the first the honest answer is *now*, and for the second how long it lasts is not something this service knows.\n"},"504":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}}},"description":"The change was sent to the service behind this one and no answer came back, so **whether it was applied is not known**. This is the one refusal on this operation that does not tell you what happened to your order.\n\n**Re-read before you re-send.** `GET /orders/{id}/shipping` says whether your change landed; if it did not, send the identical request again with the `ETag` that read gave you. Re-sending blind risks applying a change twice or applying one you have since decided against. There is no `Retry-After`: what you must do first is read, not wait.\n\nDistinct from `502`, which means the service behind this one answered and nothing was written -- that one is safe to repeat, and this one is not.\n"}},"summary":"Replace an order's shipping state","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":true}},"/v1/fulfillment/orders/{id}/shipping/options":{"get":{"description":"What this order may be moved to ship on, priced for your account, with\nthe option it currently holds marked `current`.\n\n\n**This list answers for the order as it stands.** Every option,\nits price and its `availability` are computed for the address the\norder has now, and there is no way to ask what would be offered\nfor an address the order does not hold yet. An option taken from\nhere and sent to `PUT /orders/{id}/shipping` alongside a new\naddress was therefore picked from a list computed for the address\nthe order is leaving.\n\n\n**To see the options at an address the order does not have yet,\nuse `POST /orders/{id}/shipping/preview`.** It takes the write's\nbody and answers the options at the destination that change would\nmove to, what the order would then owe, and the refusal the write\nwould give you -- without writing anything. That is the answer to\nthe paragraph above, and it is what the `PUT`'s own description\nrecommends before a combined change.\n\n\n**Prices are your own.** Each figure is resolved from your account's own\npricing at the time of the order, so a later price change does not\nre-price it. An account with no pricing of its own is answered standard\npricing rather than refused.\n\n\n**A price here does not depend on where the parcel is going; the\norder's total does.** Tax, any state delivery fee and any region\nsurcharge are all assessed against the address, so a total shown\nto a customer beside an option price before an address change need\nnot be the total the order owes after it.\n\n\n**Availability is three-valued, and `unknown` is not a refusal.** An\noption that reads `unknown` can still be chosen: it means a check has\nnot been run, not that the answer was no, so an integration that hid\n`unknown` options would hide options that can be chosen. Read\n`availability.detail` for the sentence to show a customer.\n\n\n**After a change that moved the address, read this list again.**\nAvailability normally reflects the new address within a few\nminutes of its being validated, and an option change sent after\nthat is judged against it; until then, and for some options\nindefinitely, it reads `unknown`. Nothing re-checks a change that\nwas already accepted, so an order can sit at a new address on an\noption that cannot reach it until somebody reads this list and\nchanges it.\n\n\n**`estimatedDeliveryDate` is often absent, and that is ordinary.** Not\nevery option is dated, and an option with no date is neither\nunavailable nor an error. A date is when the parcel would arrive if the\ncarrier takes it, not a promise that it will.\n\n\n**This list carries no `ETag`, and `current` is advisory.** Take the\nvalidator for a change from `GET /orders/{id}/shipping`, which is also\nthe authority on which option the order holds. The two can disagree if\nthe order changes between your reads; if they do, re-read the shipping\nstate.\n\n\n**An empty `options` list says why.** Where the order ships somewhere no\noption is offered for, `unavailable` carries the reason and the sentence\nexplaining it.\n\n\n`id` is the same identifier `GET /orders/{id}/shipping` reports as\n`shippingOptionId`, so selecting an option is a copy rather than a\nlookup.\n\n**Refusal codes, and what to do about each.** Every refusal that came\nfrom the service behind this one carries a `code`; a refusal this\nservice made itself carries none. `code` is an open string -- treat one\nyou do not recognise as a refusal rather than as a fault, and read\n`detail` for the sentence to show a customer. There is no `Retry-After`\non any of them: how long a failure lasts is not something this service\nknows, and a number here would be a promise about somebody else's\nincident.\n\n\nOne code, `invalid-request`, is the service behind this one answering a\n`4xx` it did not classify further. Its status is that service's own and\ncrosses unaltered, so it may be a status this operation does not\notherwise list -- which is why `code` is what you branch on and the\nstatus is what you set your retry posture from.\n\n| Code | Status | Re-sending the identical request | Permanence |\n| --- | --- | --- | --- |\n| `not-changeable-online` | 409 | Refused again | Temporary in principle -- this list serves orders whose shipping is billed to your own carrier account, and other programmes are expected later -- but permanent for this order today. |\n| `current-offer-unreadable` | 409 | Refused again | Permanent until the order itself is corrected; nothing you can send changes it. |\n| `order-not-found` | 404 | Refused again | Permanent: the service behind this one holds no such order. Worth reporting -- this service already found the order on your account. |\n| `shipment-not-found` | 404 | Refused again | Permanent for now: the order has no shipment record to enumerate against. |\n| `invalid-request` | upstream's own 4xx | Refused again unless the request changes | Permanent for this request. |\n| `read-failed` | 502 | Safe, and worth retrying | Temporary: the service behind this one failed, not yours and not this one. |\n| `unhandled-error` | 502 | Safe, and worth retrying | Temporary, as above. |\n","operationId":"getOrderShippingOptions","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderShippingOptions"}}},"description":"The options this order may be moved to, in catalogue order.","headers":{"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"A query parameter was sent. This operation accepts none, and refuses one rather than ignoring it.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentShippingNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"$ref":"#/components/responses/FulfillmentShippingUpstreamConflict"},"502":{"$ref":"#/components/responses/FulfillmentShippingBadGateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"One of two things, told apart by `Retry-After`:\n\n- **With `Retry-After`:** the request took too long to answer.\n  Reading shipping options changes nothing, so it is safe to send\n  again after the number of seconds it gives.\n- **Without `Retry-After`:** shipping changes are not available in\n  this environment yet. Nothing is wrong with the order or the\n  request, and no `Retry-After` is given because how long this\n  lasts is not something this service knows.\n  `GET /orders/{id}/shipping` still answers while this does not.\n","headers":{"Retry-After":{"$ref":"#/components/headers/FulfillmentRetryAfter"}}}},"summary":"List the shipping options an order may be moved to","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}},"/v1/fulfillment/orders/{id}/shipping/preview":{"post":{"description":"What `PUT /orders/{id}/shipping` would do with this body: the state the\nchange would leave, what the order would then be worth, the options at\nthe destination it would move to, and the refusal the change would meet.\n\n\n**It takes the write's body, under the write's rules.** Same two\nmembers, same address validation, same refusals for a body this service\ncannot read. A body that only changes the option at the current address\nis a valid preview, and so is one that restates what the order already\nhas.\n\n\n**Nothing is reserved.** A preview holds no option and no price for the\nwrite that follows it, and no validator moves. Ask as many times as you\nlike, in any order, before you write.\n\n\n**`If-Match` is neither required nor read.** There is nothing to guard,\nso a concurrent change cannot refuse you an answer. The `ETag` that\ncomes back is the order's **current** validator -- the same one `GET\n/orders/{id}/shipping` hands out, not one the change would produce. Send\nit as the write's `If-Match` to write exactly what you previewed: if\nsomebody changes the order in between, that write is refused `412` and\nyou preview again.\n\n\n**What this answers exactly.** The address the write would store, the\nshipping line it would bill, what the order would owe once tax, the\nstatutory delivery fee and any surcharges are settled at the new\ndestination, and every refusal about money or boundaries. These come\nfrom the write's own logic rather than a second copy of it, so a preview\nand the write it describes cannot disagree.\n\n\n**What it cannot answer yet: whether the carrier reaches a moved\naddress.** That verdict is read from the destination the order already\nhas, so on a change that moves the address every option's\n`availability` reads `unknown` -- which is not a refusal, and such an\noption can still be chosen. A preview will not tell you that an option\ncannot reach a new address, and neither will the write; re-read `GET\n/orders/{id}/shipping/options` after the change, where availability\nnormally reflects the new address within a few minutes of its being\nvalidated.\n\n\n**Errors and answers are two different things here, and upstream's\ncontract decides which is which.** A request that fails *before the\nchange was judged* is refused, with the same status and `code` the write\nwould answer -- your order was not found, the body was unreadable, the\naddress was unusable, the service behind this one was unwell. A change\nthat *was* judged and would be declined is a `200` whose `refusal`\ncarries the problem document the write would have answered, whole. That\nsecond case is the question this route exists to answer, so it is a\nsuccessful answer rather than an error: branch on `refusal`, not on the\nstatus.\n\n\n**`refusal` is the write's own problem document**, so the parser you\nalready wrote for a refused `PUT` reads it unchanged. Its `status` is\nthe status the write would have answered; the status of *this* response\nis `200`, because the preview succeeded.\n\n\n**`statutoryDeliveryFee` is already counted in `subtotal` and `total`.**\nIt is published separately so you can name it to a customer, not because\nit is owed on top. Adding it to `total` charges it twice.\n\n\n**An option's price does not depend on the address; `amounts` does.**\nThe figures in `options` come from your account's own pricing and do not\nmove with the parcel. `amounts` is the whole order after the change, and\ntax, the statutory delivery fee and any region surcharge are all\nassessed against where the parcel is going.\n\n\n**Answers are never stored.** Every response here is `no-store,\nprivate`. There is no rate limit on this route today; if you are\npreviewing at a rate that looks nothing like the writes that follow it,\nexpect that to be revisited.\n\n\n**Refusal codes, and what to do about each.** These are the refusals\nthat fail the preview, and each carries the status and `code` the write\nwould answer for the same request. `code` is an open string -- treat one\nyou do not recognise as a refusal rather than as a fault, and read\n`detail` for the sentence to show a customer. There is no `Retry-After`\non any of them: how long a failure lasts is not something this service\nknows, and a number here would be a promise about somebody else's\nincident.\n\n\nTwo codes the write publishes are deliberately absent, and their absence\nis the route's whole shape: `etag-mismatch` and `if-match-required`\ncannot be answered here, because no validator is read. So is\n`shipping_change_not_begun` -- nothing is begun that has to finish, so\nthere is no floor below which this is not worth attempting.\n\n\nOne code, `invalid-request`, is the service behind this one answering a\n`4xx` it did not classify further. Its status is that service's own and\ncrosses unaltered, so it may be a status this operation does not\notherwise list -- which is why `code` is what you branch on and the\nstatus is what you set your retry posture from.\n\n| Code | Status | Re-sending the identical request | Permanence |\n| --- | --- | --- | --- |\n| `invalid-address` | 422 | Refused again unless the address changes | Permanent for that address. |\n| `unwritable-fields` | 422 | Refused again unless the body changes | Permanent for that body. |\n| `not-changeable-online` | 409 | Refused again | Temporary in principle -- only orders whose shipping is billed to your own carrier account can be changed online today, and other programmes are expected later -- but permanent for this order today. |\n| `order-not-editable` | 409 | Refused again | Permanent: the order has moved past the point where its shipping can change. |\n| `carrier-account-unresolvable` | 409 | Refused again | Permanent until the carrier account is registered; a property of the order, not of your request. |\n| `current-offer-unreadable` | 409 | Refused again | Permanent until the order itself is corrected. |\n| `order-not-found` | 404 | Refused again | Permanent: the service behind this one holds no such order. Worth reporting -- this service already found the order on your account. |\n| `shipment-not-found` | 404 | Refused again | Permanent for now: the order has no shipment record to change. |\n| `invalid-request` | upstream's own 4xx | Refused again unless the request changes | Permanent for this request. |\n| `read-failed` | 502 | Safe, and worth retrying | Temporary: the service behind this one failed. ⚠️ On this route it also covers a tax that could not be calculated for the address you asked about -- including an address the tax service will not accept -- so a repeat that keeps failing on the same address is worth treating as a fact about the address. |\n| `unhandled-error` | 502 | Safe, and worth retrying | Temporary, as above. |\n\n**Refusals answered inside a `200`, and what to do about each.** These\nare the refusals the write would answer once it had judged the change,\nreported in `refusal` rather than as an error -- the preview succeeded\nin finding out. The status column is the status the **write** would\nanswer, which is what `refusal.status` carries; this response is `200`.\nNothing was written either way.\n\n| Code | Status the write would answer | Re-sending the identical request | Permanence |\n| --- | --- | --- | --- |\n| `offer-not-available` | 422 | Refused again while the offer stays unavailable | Read `reason`: it distinguishes \"not yet\" from \"never\", in the same vocabulary an option's `availability.reason` uses. ⚠️ A change that moves the address is never answered `not-serviceable`, because serviceability at an address the order does not have yet is not known. |\n| `boundary-crossing-withheld` | 422 | Refused again | Permanent: a move to another country is not offered here. |\n| `region-surcharge-withheld` | 422 | Refused again | Permanent for that destination. |\n| `derived-charge-withheld` | 422 | Refused again until the charge can be priced | Permanent until a charge the change would add to the order, such as a state delivery fee, can be priced. |\n| `credit-floor-withheld` | 422 | Refused again | Permanent: a rule about the account, not about the request. |\n| `negative-balance-withheld` | 409 | Refused again | Permanent until the account's balance is settled; a rule about the account, not about the request. |\n","operationId":"previewOrderShippingChange","parameters":[{"$ref":"#/components/parameters/FulfillmentOrderId"},{"$ref":"#/components/parameters/FulfillmentApiVersion"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentShippingChangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentOrderShippingPreview"}}},"description":"What the change would do. `refusal` is null where the change would be made and carries the write's own problem document where it would not; `shippingCharge` and `amounts` are null exactly when `refusal` is set.\n","headers":{"ETag":{"$ref":"#/components/headers/FulfillmentShippingPreviewETag"},"Vary":{"$ref":"#/components/headers/FulfillmentVary"},"WHCC-API-Version":{"$ref":"#/components/headers/FulfillmentApiVersion"},"WHCC-API-Version-Latest":{"$ref":"#/components/headers/FulfillmentApiVersionLatest"},"WHCC-API-Version-Requested":{"$ref":"#/components/headers/FulfillmentApiVersionRequested"},"x-response-time":{"$ref":"#/components/headers/FulfillmentResponseTime"}}},"400":{"content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentProblemDetails"},{"$ref":"#/components/schemas/FulfillmentUnsupportedApiVersionProblemDetails"}]}}},"description":"The body was not a JSON object, carried a key this operation does not read, or carried a `shippingOptionId` that was not a non-empty string. The write's rule, applied here: a member you believed did something never silently does nothing, and a blank `shippingOptionId` is refused rather than read as an omission.\n\nA query parameter is refused as well: this operation accepts none.\n\nBesides the above, a `WHCC-API-Version` naming a version this API does not serve is also answered `400`, before authentication and without version headers: `type` `https://developer.whcc.com/problems/unsupported-api-version`, and a `supportedVersions` member listing the months you may send.\n"},"403":{"$ref":"#/components/responses/FulfillmentForbidden"},"404":{"$ref":"#/components/responses/FulfillmentShippingNotFound"},"405":{"$ref":"#/components/responses/FulfillmentMethodNotAllowed"},"409":{"$ref":"#/components/responses/FulfillmentShippingUpstreamConflict"},"422":{"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FulfillmentAddressValidationProblemDetails"},{"$ref":"#/components/schemas/FulfillmentShippingProblemDetails"}]}}},"description":"The request was understood and refused **before the change was judged**. Two shapes, told apart by which member is present: `invalidParams` and no `code` is this service refusing your address locally, and names each offending member; a `code` is a refusal from the service behind this one. ⚠️ A refusal *of the change itself* is not here -- it arrives as `refusal` inside a `200`.\n"},"502":{"$ref":"#/components/responses/FulfillmentShippingPreviewBadGateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FulfillmentProblemDetails"}}},"description":"Shipping changes are not available in this environment yet, so there is nothing to preview. Nothing is wrong with the order or the request, and no `Retry-After` is given because how long this lasts is not something this service knows. `GET /orders/{id}/shipping` still answers while this does not.\n"}},"summary":"Preview a shipping change without making it","tags":["orders"],"x-whcc-api-key":true,"x-whcc-writes":false}}},"security":[{"apiKey":[]}],"servers":[{"url":"/api"}],"x-alt-definitions":{"Model1":{"enum":["arrangement","multiproduct"],"type":"string"},"Model2":{"items":{"$ref":"#/x-alt-definitions/Model1"},"minItems":1,"type":"array"},"designSpaceFeatureType":{"enum":["arrangement","multiproduct"],"type":"string"}}}