{"info":{"title":"ODUS OMS API","description":"Official ODUS Order Management System API reference for managing orders, fulfillment, integrations, and related configuration.","version":"0.1","contact":{}},"servers":[{"url":"https://sandbox-oms-api.odus.com","description":"Sandbox"}],"tags":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Either an identity token issued by the auth service (dashboard flow; requires the selected merchant account id in the `X-Odus-Merchant` header), or a merchant secret key (`sk_...`) for server-to-server calls. Both are sent as `Authorization: Bearer <token>`."}},"schemas":{"ErrorResponse":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","example":400},"requestId":{"type":"string","description":"Unique identifier for the request","example":"dfc10de3-36bb-4bcc-b081-316216194033"},"message":{"type":"string","description":"Human-readable description of the failure","example":"An error occurred"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","invalid_state_error","conflict_error","rate_limit_error","payment_error","api_error"],"description":"Coarse, stable classifier for the failure. Present on every error response including 5xx. This is the field to branch on: `statusCode` is too coarse and `message` is human prose that may be reworded. The set is closed and every member is permanent, so it is safe to handle exhaustively.","example":"invalid_request_error"},"code":{"type":"string","description":"Fine-grained identifier for the failure, present only where it adds something `type` does not — for example separating a replayed idempotency key from a held lock, or naming the reason a payment was declined. The set is open and grows over time, so treat an unrecognised value as absent and fall back to `type`.","example":"validation_failed"}},"required":["statusCode","requestId","message","type"]},"ValidationErrorResponse":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","example":400},"requestId":{"type":"string","description":"Unique identifier for the request","example":"dfc10de3-36bb-4bcc-b081-316216194033"},"message":{"type":"string","description":"The first error message from the validation errors","example":"note must be a string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","invalid_state_error","conflict_error","rate_limit_error","payment_error","api_error"],"description":"Coarse, stable classifier for the failure. Present on every error response including 5xx. This is the field to branch on: `statusCode` is too coarse and `message` is human prose that may be reworded. The set is closed and every member is permanent, so it is safe to handle exhaustively.","example":"invalid_request_error"},"code":{"type":"string","description":"Fine-grained identifier for the failure, present only where it adds something `type` does not — for example separating a replayed idempotency key from a held lock, or naming the reason a payment was declined. The set is open and grows over time, so treat an unrecognised value as absent and fall back to `type`.","example":"validation_failed"},"errors":{"type":"array","description":"Complete list of validation errors","example":["note must be a string","permissions must be an array"],"items":{"type":"string"}}},"required":["statusCode","requestId","message","type"]},"AddressDTO":{"type":"object","properties":{"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"companyName":{"type":"string","nullable":true},"line1":{"type":"string","nullable":true},"line2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true}},"required":["firstName","lastName","companyName","line1","line2","city","state","postalCode","country"]},"OrderItemDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"shippable":{"type":"boolean","description":"Whether this item physically ships. Digital add-ons (e.g. a warranty) are recorded on the order but never fulfilled."},"sku":{"description":"Stock Keeping Unit the warehouse ships this item under. Null for non-shippable items.","type":"string","nullable":true},"quantity":{"description":"Units to ship, taken from the payment line item, whose quantity already covers the units a bundle price represents. Null for non-shippable items.","type":"number","nullable":true},"fulfilledQuantity":{"type":"number"},"cancelledQuantity":{"type":"number"},"paymentId":{"type":"string"},"lineItemId":{"type":"string"},"priceId":{"type":"string"},"name":{"type":"string"},"productId":{"type":"string"},"productName":{"type":"string"},"order":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","shippable","sku","quantity","fulfilledQuantity","cancelledQuantity","paymentId","lineItemId","priceId","name","productId","productName","order"]},"OrderItemPartialDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"name":{"type":"string"},"productName":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","name","productName"]},"OrderDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"status":{"type":"string","enum":["unfulfilled","partially_fulfilled","fulfilled","not_fulfillable","cancelled"]},"paymentId":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string","enum":["usd","eur","gbp","cad","aud","pln","czk","sek","dkk"]},"processor":{"type":"string","enum":["stripe","adyen","checkout","paypal",null],"nullable":true},"gatewayProfileId":{"type":"string","nullable":true},"customerId":{"type":"string"},"customerEmail":{"type":"string"},"customerName":{"type":"string","nullable":true},"customerPhone":{"type":"string","nullable":true},"paymentAuthorizedAt":{"type":"string","format":"date-time"},"shippingAddress":{"type":"object","properties":{"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"companyName":{"type":"string","nullable":true},"line1":{"type":"string","nullable":true},"line2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true}},"additionalProperties":false,"required":["firstName","lastName","companyName","line1","line2","city","state","postalCode","country"]},"shippingAddressHash":{"type":"string"},"orderItems":{"type":"array","items":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"shippable":{"type":"boolean","description":"Whether this item physically ships. Digital add-ons (e.g. a warranty) are recorded on the order but never fulfilled."},"sku":{"description":"Stock Keeping Unit the warehouse ships this item under. Null for non-shippable items.","type":"string","nullable":true},"quantity":{"description":"Units to ship, taken from the payment line item, whose quantity already covers the units a bundle price represents. Null for non-shippable items.","type":"number","nullable":true},"fulfilledQuantity":{"type":"number"},"cancelledQuantity":{"type":"number"},"paymentId":{"type":"string"},"lineItemId":{"type":"string"},"priceId":{"type":"string"},"name":{"type":"string"},"productId":{"type":"string"},"productName":{"type":"string"},"order":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","shippable","sku","quantity","fulfilledQuantity","cancelledQuantity","paymentId","lineItemId","priceId","name","productId","productName","order"],"additionalProperties":false}},"fulfillments":{"type":"array","items":{"type":"string"}},"shortCode":{"description":"Short code for the order, unique among your orders: the end of its `id` in upper case, made longer when another order already has it. Sent to ShipAway as the order number. Orders created since the code was introduced have one from the start; an older order gets one when it is next sent to a fulfillment provider, and `null` means it has not received one, including an older order a provider already holds under its `id`.","example":"3LGW3P8TAS","type":"string","nullable":true},"externalOrderId":{"type":"string","nullable":true},"fulfillmentIntegrationId":{"type":"string","nullable":true},"fulfillmentIntegrationType":{"description":"Provider the order was submitted to — the type of the fulfillment integration behind `fulfillmentIntegrationId`, resolved at read time. `null` when the order was never submitted or the integration no longer exists.","example":"shipbob","type":"string","enum":["shipbob","nextsmartship","shipaway",null],"nullable":true},"fulfillmentIntegrationName":{"description":"Current user-given name of the fulfillment integration the order was submitted to. Resolved at read time from `fulfillmentIntegrationId`; `null` when the order was never submitted or the integration no longer exists.","example":"ShipBob US Warehouse","type":"string","nullable":true},"fulfillmentIntegrationEnvironment":{"description":"Environment of the fulfillment provider account the order was sent to. Use it to look `externalOrderId` up in the matching sandbox or production account; `null` when no environment is known for the order.","example":"production","type":"string","enum":["sandbox","production",null],"nullable":true},"submittedAt":{"type":"string","format":"date-time","nullable":true},"lastSubmissionAttemptedAt":{"type":"string","format":"date-time","nullable":true},"lastSubmissionError":{"type":"string","nullable":true},"submissionAttempts":{"type":"number"},"submitToTplAt":{"type":"string","format":"date-time","nullable":true},"tplSubmissionStatus":{"description":"Where the order stands in its automatic submission to your fulfillment provider. `pending`: waiting to be sent. `submitted`: the provider accepted the order. `failed`: an attempt failed, and another is scheduled — or, while the order is on hold with `holdReasonCode` `insufficient_funds` and no `externalOrderId`, none is until your prepaid balance with the provider covers the order. `dead_letter`: submission stopped, and the order needs you. A value starting with `skipped_`: no provider receives the order, for example because no fulfillment route matches it. `skipped_insufficient_stock` is the one that can change on its own: a route matches every item, but no provider on those routes had the whole order in stock. The order is sent automatically, with each product’s current SKU, once a provider has it all in stock. `null` when the order was never scheduled for submission. `GET /orders/{orderId}` returns when the next attempt is due, in `submitToTplAt`, and why the last one failed, in `lastSubmissionError`. The value is not cleared when you fulfill or cancel the order yourself, so read it together with `status`. Values may be added, so treat one you do not recognise as not sent yet.","example":"submitted","type":"string","enum":["pending","submitted","failed","dead_letter","skipped_no_route","skipped_no_country","skipped_no_shippable_items","skipped_route_conflict","skipped_integration_inactive","skipped_order_cancelled","skipped_insufficient_stock",null],"nullable":true},"agedOutAt":{"type":"string","format":"date-time","nullable":true},"cancelledUnitsShippedAt":{"description":"When your fulfillment provider first reported shipping units of this order that you had cancelled, for example by refunding the payment. The cancelled units stay cancelled and do not count as fulfilled. Each such shipment is in the order history as a `cancelled_units_shipped` entry with its tracking number and the units it carried, so you can recover the goods or charge for them. `null` when no cancelled units have shipped. Once set, it stays set.","type":"string","format":"date-time","nullable":true},"holdStatus":{"description":"Set while the order is on hold: the fulfillment provider has it and is not shipping it, or it refused the order before creating it. Usually the provider put it on hold itself — it could not get a carrier to take the shipment — and waits for you to act. When the provider found no shipping option for the order, the hold is recorded here from the first attempt, and the order is not sent again automatically: correct the customer’s shipping address, which resubmits it for you, or resubmit it yourself. When the provider refused the order because your prepaid balance with it could not cover it, the hold is recorded here too (`holdReasonCode` `insufficient_funds`), and the order is sent again automatically once the balance covers it. Usually the provider has such an order (`externalOrderId` is set, `tplSubmissionStatus` is `submitted`) and the hold is released once it accepts the order; when the provider refused it before creating it, `externalOrderId` is empty, `tplSubmissionStatus` is `failed` with nothing scheduled, and the hold is released when the order is sent again. When ShipBob holds the order — for an address it cannot validate, missing customs details, a payment method it could not charge, a hold placed by hand or any other reason it gives — the hold is recorded here too, with ShipBob’s reason, while the order still owes fulfillment here or is already on hold: a hold ShipBob raises after you have fulfilled or cancelled the order here is not recorded, and one recorded before that stays until ShipBob releases it. Resolve it in ShipBob, which ships the order itself once it releases the hold, and the hold is released here then. ShipBob is never sent such an order a second time. `held`: fix what `holdReason` names, then resubmit the order — or correct the customer, which resubmits it for you for most reasons (see `holdReasonCode`); for an order ShipBob holds, fix it in ShipBob instead, or correct the customer when `holdReasonCode` is `address_invalid`. Resubmitting that one sends ShipBob the address the order carries and leaves it `held`. `resubmitted`: the order was resubmitted and the provider has not answered yet; it clears when the provider accepts the order, or returns to `held` with a new reason. A correction to the customer made while the order is `resubmitted` is sent for you if the provider holds the order again for a reason that correction fixes. `null` when the order is not on hold. Independent of `status`, which the hold does not change. `held` applies to orders fulfilled through NextSmartShip or ShipBob, and `resubmitted` to orders fulfilled through NextSmartShip. Values may be added, so treat one you do not recognise as on hold.","example":"held","type":"string","enum":["held","resubmitted",null],"nullable":true},"holdReason":{"description":"Why the order is on hold. Usually the reason the fulfillment provider gave, in its own words — typically what the carrier refused about the address. For an order ShipBob holds, it is how ShipBob describes the hold, such as `Invalid Address`. When the provider gave no reason — it found no shipping option for the order, was never asked to ship it, could not charge your prepaid balance for it, or could not charge your payment method for it — the reason describes that instead. Kept while the order is `resubmitted`; `null` when the order is not on hold.","example":"City does not match the postal code","type":"string","nullable":true},"holdReasonCode":{"description":"Why the fulfillment provider holds the order, as a code your integration can act on instead of reading `holdReason`. `null` when the order is not on hold. The same `holdReason` always has the same code. Codes may be added, so treat one you do not recognise as `other`. Correct what the code names, then resubmit the order. When the correction is to the customer — their name, phone number or shipping address — the order is resubmitted for you, except for `tax_id_missing`, `customs_details_invalid`, `shipping_restricted`, `carrier_unavailable`, `insufficient_funds`, `unspecified` and `other`. An order ShipBob holds is the exception to both: correct what the code names in ShipBob, which ships the order itself once it releases the hold. ShipBob is never sent such an order a second time, so resubmitting one is refused, except for `address_invalid`. For `address_invalid` you can correct the customer instead, unless you cancelled some of the order’s items or recorded a shipment of it yourself: their corrected name, phone number and shipping address are sent to ShipBob, which validates the address again, and the order’s history records ShipBob’s answer. Resubmitting such an order sends ShipBob the address the order already carries, in the same way. A correction for any other code is not sent to ShipBob. The codes:\n\n- `postal_code_invalid`: the postal code is not valid for the country. Correct it.\n- `postal_code_city_mismatch`: the city and the postal code do not match. Correct whichever is wrong.\n- `postal_code_not_served`: the carrier does not deliver to the postal code. Confirm it with the customer, and ask your provider for a carrier that delivers there.\n- `state_invalid`: the state, province or region does not match the postal code or the country. Correct it.\n- `street_not_found`: the carrier cannot find the street. Check its spelling, and put the street and house number on the first address line.\n- `house_number_missing`: the street address has no house or building number. Add it.\n- `address_incomplete`: the address is missing details, such as the house number or the apartment. Complete it.\n- `address_invalid_characters`: the address contains characters the carrier does not accept. Rewrite it in Latin letters and digits.\n- `name_or_address_too_long`: the recipient’s name, company or an address line is longer than the carrier accepts. Shorten it, moving the rest of a long street to the second line.\n- `po_box_not_accepted`: the carrier does not deliver to PO boxes. Replace the PO box with a street address.\n- `address_invalid`: the provider could not validate the shipping address and did not say which part of it is wrong. Check the whole address and correct it.\n- `recipient_name_invalid`: the recipient’s name is too short or is not a name. Enter their full first and last name.\n- `phone_invalid`: the phone number is not valid. Correct it, including the country code.\n- `tax_id_missing`: the destination country requires the recipient’s tax ID. Add it to the order in your provider’s dashboard.\n- `customs_details_invalid`: the provider or its carrier needs customs details the order does not have, such as a product’s material, use or HS code. Complete them in your provider’s dashboard.\n- `shipping_restricted`: the provider’s or the carrier’s rules do not allow this shipment, for example hazardous items shipped abroad. Ask your provider how to ship it.\n- `carrier_unavailable`: the carrier is temporarily unavailable. Nothing on the order needs correcting; resubmit it later.\n- `no_shipping_options`: no carrier offered to ship the order. Check the address, and that the items can be shipped to the country.\n- `fulfillment_not_requested`: the provider has the order but was never asked to ship it. Check the address.\n- `refused_before_fulfillment`: the provider refused the order before it was asked to ship it, and gave no reason. Check the address.\n- `insufficient_funds`: the provider could not charge you for the order, so it is not shipping it yet. Nothing on the order needs correcting, and `holdReason` says what could not be charged. If it was your prepaid balance with the provider (NextSmartShip), top up the balance: the order is sent again automatically once the balance covers it. To send it sooner, resubmit it while `externalOrderId` is set, or retry it with `POST /orders/{orderId}/retry-submission` while it is empty. If it was your payment method (ShipBob), update the payment method with the provider, which ships the order itself once a payment goes through. Such an order cannot be resubmitted or retried.\n- `unspecified`: the provider gave no reason. Look the order up in your provider’s dashboard.\n- `other`: no code covers the reason yet. Read `holdReason`. ShipBob’s holds for a pick date, a hold placed by hand, a packaging preference not set and an automatic processing pause read `other`, with ShipBob’s description in `holdReason`.","example":"postal_code_city_mismatch","type":"string","enum":["postal_code_invalid","postal_code_city_mismatch","postal_code_not_served","state_invalid","street_not_found","house_number_missing","address_incomplete","address_invalid_characters","name_or_address_too_long","po_box_not_accepted","address_invalid","recipient_name_invalid","phone_invalid","tax_id_missing","customs_details_invalid","shipping_restricted","carrier_unavailable","no_shipping_options","fulfillment_not_requested","refused_before_fulfillment","insufficient_funds","unspecified","other",null],"nullable":true},"heldAt":{"description":"When the current hold was detected. A resubmission that is held again starts a new hold with its own timestamp. `null` when the order is not on hold.","type":"string","format":"date-time","nullable":true},"recipientFaults":{"description":"Problems with the recipient details — name, company, address and phone — that would make NextSmartShip hold or refuse the order, as of the latest check. Each names the detail and the rule it breaks, never the value. The order is checked when it is created, when a change to the customer’s details reaches it, and each time it is submitted automatically; adding, activating or deactivating an integration does not re-check existing orders. `null` when the order has not been checked yet, when the latest check found nothing, or when it did not apply NextSmartShip’s rules because the order was sent to another provider, or had not been sent while you had no active NextSmartShip integration. Always `null` once the order is fulfilled or cancelled. To check an order now, call `GET /orders/{orderId}/recipient-validation`.","example":[{"field":"city","rule":"postal_code_mismatch"}],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["first_name","last_name","name","company","address","address_line_1","address_line_2","city","state","postal_code","country","phone"],"description":"The recipient detail at fault. `name` is the first and last name together, and `address` is both address lines together.","example":"city"},"rule":{"type":"string","enum":["missing","placeholder","no_latin_form","too_long","too_short","invalid_format","postal_code_mismatch","unrecognized","po_box"],"description":"The rule the detail breaks. `missing`: the provider does not accept the order without it, so the order is not sent while it is missing. `placeholder`: a stand-in such as `N/A` rather than a real value. `no_latin_form`: the text has no Latin-alphabet form to print on a shipping label. `too_long`: longer than the provider accepts, after any shortening the rules apply to names and addresses. `too_short`: shorter than the provider accepts. `invalid_format`: not a valid postal code for the country. `postal_code_mismatch`: the city is not a locality of the postal code. `unrecognized`: neither the state nor the postal code identifies a state or province. `po_box`: the address line is a PO box or another numbered box, which the provider does not ship to in the destination country; replace it with a street address. Every rule but `missing` still lets the order be sent, and the provider is likely to hold it. Rules may be added, so treat one you do not recognise as a problem with the detail `field` names.","example":"postal_code_mismatch"}},"required":["field","rule"],"additionalProperties":false},"nullable":true}},"required":["createdAt","updatedAt","metadata","id","status","paymentId","amount","currency","processor","gatewayProfileId","customerId","customerEmail","customerName","customerPhone","paymentAuthorizedAt","shippingAddress","shippingAddressHash","orderItems","fulfillments","shortCode","externalOrderId","fulfillmentIntegrationId","fulfillmentIntegrationType","fulfillmentIntegrationName","fulfillmentIntegrationEnvironment","submittedAt","lastSubmissionAttemptedAt","lastSubmissionError","submissionAttempts","submitToTplAt","tplSubmissionStatus","agedOutAt","cancelledUnitsShippedAt","holdStatus","holdReason","holdReasonCode","heldAt","recipientFaults"]},"OrderPartialDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"status":{"type":"string","enum":["unfulfilled","partially_fulfilled","fulfilled","not_fulfillable","cancelled"]},"amount":{"type":"number"},"currency":{"type":"string","enum":["usd","eur","gbp","cad","aud","pln","czk","sek","dkk"]},"customerEmail":{"type":"string"},"paymentAuthorizedAt":{"type":"string","format":"date-time"},"agedOutAt":{"type":"string","format":"date-time","nullable":true},"cancelledUnitsShippedAt":{"description":"When your fulfillment provider first reported shipping units of this order that you had cancelled, for example by refunding the payment. The cancelled units stay cancelled and do not count as fulfilled. Each such shipment is in the order history as a `cancelled_units_shipped` entry with its tracking number and the units it carried, so you can recover the goods or charge for them. `null` when no cancelled units have shipped. Once set, it stays set.","type":"string","format":"date-time","nullable":true},"tplSubmissionStatus":{"description":"Where the order stands in its automatic submission to your fulfillment provider. `pending`: waiting to be sent. `submitted`: the provider accepted the order. `failed`: an attempt failed, and another is scheduled — or, while the order is on hold with `holdReasonCode` `insufficient_funds` and no `externalOrderId`, none is until your prepaid balance with the provider covers the order. `dead_letter`: submission stopped, and the order needs you. A value starting with `skipped_`: no provider receives the order, for example because no fulfillment route matches it. `skipped_insufficient_stock` is the one that can change on its own: a route matches every item, but no provider on those routes had the whole order in stock. The order is sent automatically, with each product’s current SKU, once a provider has it all in stock. `null` when the order was never scheduled for submission. `GET /orders/{orderId}` returns when the next attempt is due, in `submitToTplAt`, and why the last one failed, in `lastSubmissionError`. The value is not cleared when you fulfill or cancel the order yourself, so read it together with `status`. Values may be added, so treat one you do not recognise as not sent yet.","example":"submitted","type":"string","enum":["pending","submitted","failed","dead_letter","skipped_no_route","skipped_no_country","skipped_no_shippable_items","skipped_route_conflict","skipped_integration_inactive","skipped_order_cancelled","skipped_insufficient_stock",null],"nullable":true},"holdStatus":{"description":"Set while the order is on hold: the fulfillment provider has it and is not shipping it, or it refused the order before creating it. Usually the provider put it on hold itself — it could not get a carrier to take the shipment — and waits for you to act. When the provider found no shipping option for the order, the hold is recorded here from the first attempt, and the order is not sent again automatically: correct the customer’s shipping address, which resubmits it for you, or resubmit it yourself. When the provider refused the order because your prepaid balance with it could not cover it, the hold is recorded here too (`holdReasonCode` `insufficient_funds`), and the order is sent again automatically once the balance covers it. Usually the provider has such an order (`externalOrderId` is set, `tplSubmissionStatus` is `submitted`) and the hold is released once it accepts the order; when the provider refused it before creating it, `externalOrderId` is empty, `tplSubmissionStatus` is `failed` with nothing scheduled, and the hold is released when the order is sent again. When ShipBob holds the order — for an address it cannot validate, missing customs details, a payment method it could not charge, a hold placed by hand or any other reason it gives — the hold is recorded here too, with ShipBob’s reason, while the order still owes fulfillment here or is already on hold: a hold ShipBob raises after you have fulfilled or cancelled the order here is not recorded, and one recorded before that stays until ShipBob releases it. Resolve it in ShipBob, which ships the order itself once it releases the hold, and the hold is released here then. ShipBob is never sent such an order a second time. `held`: fix what `holdReason` names, then resubmit the order — or correct the customer, which resubmits it for you for most reasons (see `holdReasonCode`); for an order ShipBob holds, fix it in ShipBob instead, or correct the customer when `holdReasonCode` is `address_invalid`. Resubmitting that one sends ShipBob the address the order carries and leaves it `held`. `resubmitted`: the order was resubmitted and the provider has not answered yet; it clears when the provider accepts the order, or returns to `held` with a new reason. A correction to the customer made while the order is `resubmitted` is sent for you if the provider holds the order again for a reason that correction fixes. `null` when the order is not on hold. Independent of `status`, which the hold does not change. `held` applies to orders fulfilled through NextSmartShip or ShipBob, and `resubmitted` to orders fulfilled through NextSmartShip. Values may be added, so treat one you do not recognise as on hold.","example":"held","type":"string","enum":["held","resubmitted",null],"nullable":true},"holdReason":{"description":"Why the order is on hold. Usually the reason the fulfillment provider gave, in its own words — typically what the carrier refused about the address. For an order ShipBob holds, it is how ShipBob describes the hold, such as `Invalid Address`. When the provider gave no reason — it found no shipping option for the order, was never asked to ship it, could not charge your prepaid balance for it, or could not charge your payment method for it — the reason describes that instead. Kept while the order is `resubmitted`; `null` when the order is not on hold.","example":"City does not match the postal code","type":"string","nullable":true},"holdReasonCode":{"description":"Why the fulfillment provider holds the order, as a code your integration can act on instead of reading `holdReason`. `null` when the order is not on hold. The same `holdReason` always has the same code. Codes may be added, so treat one you do not recognise as `other`. Correct what the code names, then resubmit the order. When the correction is to the customer — their name, phone number or shipping address — the order is resubmitted for you, except for `tax_id_missing`, `customs_details_invalid`, `shipping_restricted`, `carrier_unavailable`, `insufficient_funds`, `unspecified` and `other`. An order ShipBob holds is the exception to both: correct what the code names in ShipBob, which ships the order itself once it releases the hold. ShipBob is never sent such an order a second time, so resubmitting one is refused, except for `address_invalid`. For `address_invalid` you can correct the customer instead, unless you cancelled some of the order’s items or recorded a shipment of it yourself: their corrected name, phone number and shipping address are sent to ShipBob, which validates the address again, and the order’s history records ShipBob’s answer. Resubmitting such an order sends ShipBob the address the order already carries, in the same way. A correction for any other code is not sent to ShipBob. The codes:\n\n- `postal_code_invalid`: the postal code is not valid for the country. Correct it.\n- `postal_code_city_mismatch`: the city and the postal code do not match. Correct whichever is wrong.\n- `postal_code_not_served`: the carrier does not deliver to the postal code. Confirm it with the customer, and ask your provider for a carrier that delivers there.\n- `state_invalid`: the state, province or region does not match the postal code or the country. Correct it.\n- `street_not_found`: the carrier cannot find the street. Check its spelling, and put the street and house number on the first address line.\n- `house_number_missing`: the street address has no house or building number. Add it.\n- `address_incomplete`: the address is missing details, such as the house number or the apartment. Complete it.\n- `address_invalid_characters`: the address contains characters the carrier does not accept. Rewrite it in Latin letters and digits.\n- `name_or_address_too_long`: the recipient’s name, company or an address line is longer than the carrier accepts. Shorten it, moving the rest of a long street to the second line.\n- `po_box_not_accepted`: the carrier does not deliver to PO boxes. Replace the PO box with a street address.\n- `address_invalid`: the provider could not validate the shipping address and did not say which part of it is wrong. Check the whole address and correct it.\n- `recipient_name_invalid`: the recipient’s name is too short or is not a name. Enter their full first and last name.\n- `phone_invalid`: the phone number is not valid. Correct it, including the country code.\n- `tax_id_missing`: the destination country requires the recipient’s tax ID. Add it to the order in your provider’s dashboard.\n- `customs_details_invalid`: the provider or its carrier needs customs details the order does not have, such as a product’s material, use or HS code. Complete them in your provider’s dashboard.\n- `shipping_restricted`: the provider’s or the carrier’s rules do not allow this shipment, for example hazardous items shipped abroad. Ask your provider how to ship it.\n- `carrier_unavailable`: the carrier is temporarily unavailable. Nothing on the order needs correcting; resubmit it later.\n- `no_shipping_options`: no carrier offered to ship the order. Check the address, and that the items can be shipped to the country.\n- `fulfillment_not_requested`: the provider has the order but was never asked to ship it. Check the address.\n- `refused_before_fulfillment`: the provider refused the order before it was asked to ship it, and gave no reason. Check the address.\n- `insufficient_funds`: the provider could not charge you for the order, so it is not shipping it yet. Nothing on the order needs correcting, and `holdReason` says what could not be charged. If it was your prepaid balance with the provider (NextSmartShip), top up the balance: the order is sent again automatically once the balance covers it. To send it sooner, resubmit it while `externalOrderId` is set, or retry it with `POST /orders/{orderId}/retry-submission` while it is empty. If it was your payment method (ShipBob), update the payment method with the provider, which ships the order itself once a payment goes through. Such an order cannot be resubmitted or retried.\n- `unspecified`: the provider gave no reason. Look the order up in your provider’s dashboard.\n- `other`: no code covers the reason yet. Read `holdReason`. ShipBob’s holds for a pick date, a hold placed by hand, a packaging preference not set and an automatic processing pause read `other`, with ShipBob’s description in `holdReason`.","example":"postal_code_city_mismatch","type":"string","enum":["postal_code_invalid","postal_code_city_mismatch","postal_code_not_served","state_invalid","street_not_found","house_number_missing","address_incomplete","address_invalid_characters","name_or_address_too_long","po_box_not_accepted","address_invalid","recipient_name_invalid","phone_invalid","tax_id_missing","customs_details_invalid","shipping_restricted","carrier_unavailable","no_shipping_options","fulfillment_not_requested","refused_before_fulfillment","insufficient_funds","unspecified","other",null],"nullable":true},"heldAt":{"description":"When the current hold was detected. A resubmission that is held again starts a new hold with its own timestamp. `null` when the order is not on hold.","type":"string","format":"date-time","nullable":true},"recipientFaults":{"description":"Problems with the recipient details — name, company, address and phone — that would make NextSmartShip hold or refuse the order, as of the latest check. Each names the detail and the rule it breaks, never the value. The order is checked when it is created, when a change to the customer’s details reaches it, and each time it is submitted automatically; adding, activating or deactivating an integration does not re-check existing orders. `null` when the order has not been checked yet, when the latest check found nothing, or when it did not apply NextSmartShip’s rules because the order was sent to another provider, or had not been sent while you had no active NextSmartShip integration. Always `null` once the order is fulfilled or cancelled. To check an order now, call `GET /orders/{orderId}/recipient-validation`.","example":[{"field":"city","rule":"postal_code_mismatch"}],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["first_name","last_name","name","company","address","address_line_1","address_line_2","city","state","postal_code","country","phone"],"description":"The recipient detail at fault. `name` is the first and last name together, and `address` is both address lines together.","example":"city"},"rule":{"type":"string","enum":["missing","placeholder","no_latin_form","too_long","too_short","invalid_format","postal_code_mismatch","unrecognized","po_box"],"description":"The rule the detail breaks. `missing`: the provider does not accept the order without it, so the order is not sent while it is missing. `placeholder`: a stand-in such as `N/A` rather than a real value. `no_latin_form`: the text has no Latin-alphabet form to print on a shipping label. `too_long`: longer than the provider accepts, after any shortening the rules apply to names and addresses. `too_short`: shorter than the provider accepts. `invalid_format`: not a valid postal code for the country. `postal_code_mismatch`: the city is not a locality of the postal code. `unrecognized`: neither the state nor the postal code identifies a state or province. `po_box`: the address line is a PO box or another numbered box, which the provider does not ship to in the destination country; replace it with a street address. Every rule but `missing` still lets the order be sent, and the provider is likely to hold it. Rules may be added, so treat one you do not recognise as a problem with the detail `field` names.","example":"postal_code_mismatch"}},"required":["field","rule"],"additionalProperties":false},"nullable":true},"orderItems":{"type":"array","items":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"name":{"type":"string"},"productName":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","name","productName"],"additionalProperties":false}}},"required":["createdAt","updatedAt","metadata","id","status","amount","currency","customerEmail","paymentAuthorizedAt","agedOutAt","cancelledUnitsShippedAt","tplSubmissionStatus","holdStatus","holdReason","holdReasonCode","heldAt","recipientFaults","orderItems"]},"IntegrationExportFormatDTO":{"type":"object","properties":{"type":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"Integration type usable as an export format."},"label":{"type":"string","description":"Human-readable label for the integration."},"outputFormat":{"type":"string","enum":["csv","xlsx","zip"],"description":"File format produced when exporting for this integration. `zip` is an archive of XLSX files in the provider's template, each holding as many orders as one copy of that template has rows for."}},"required":["type","label","outputFormat"]},"IntegrationExportFormatsResponseDTO":{"type":"object","properties":{"formats":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"Integration type usable as an export format."},"label":{"type":"string","description":"Human-readable label for the integration."},"outputFormat":{"type":"string","enum":["csv","xlsx","zip"],"description":"File format produced when exporting for this integration. `zip` is an archive of XLSX files in the provider's template, each holding as many orders as one copy of that template has rows for."}},"required":["type","label","outputFormat"],"additionalProperties":false}}},"required":["formats"]},"IntegrationExportValidationResponseDTO":{"type":"object","properties":{"totalOrders":{"type":"number","description":"Number of orders matching the export filters"},"exportableOrders":{"type":"number","description":"Number of orders the export would write. Non-shippable items (digital add-ons) are ignored throughout, so an order with no shippable item is never exportable; when the format resolves items through product mappings, every shippable item must also be mapped."},"missingSkus":{"type":"array","items":{"type":"string"},"description":"Internal SKUs of shippable order items that lack a product mapping for the selected integration. Empty when the format does not resolve items through mappings."}},"required":["totalOrders","exportableOrders","missingSkus"]},"RecipientValidationResponseDTO":{"type":"object","properties":{"integrationType":{"type":"string","enum":["nextsmartship"],"description":"The fulfillment provider whose rules the recipient was checked against.","example":"nextsmartship"},"faults":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["first_name","last_name","name","company","address","address_line_1","address_line_2","city","state","postal_code","country","phone"],"description":"The recipient detail at fault. `name` is the first and last name together, and `address` is both address lines together.","example":"city"},"rule":{"type":"string","enum":["missing","placeholder","no_latin_form","too_long","too_short","invalid_format","postal_code_mismatch","unrecognized","po_box"],"description":"The rule the detail breaks. `missing`: the provider does not accept the order without it, so the order is not sent while it is missing. `placeholder`: a stand-in such as `N/A` rather than a real value. `no_latin_form`: the text has no Latin-alphabet form to print on a shipping label. `too_long`: longer than the provider accepts, after any shortening the rules apply to names and addresses. `too_short`: shorter than the provider accepts. `invalid_format`: not a valid postal code for the country. `postal_code_mismatch`: the city is not a locality of the postal code. `unrecognized`: neither the state nor the postal code identifies a state or province. `po_box`: the address line is a PO box or another numbered box, which the provider does not ship to in the destination country; replace it with a street address. Every rule but `missing` still lets the order be sent, and the provider is likely to hold it. Rules may be added, so treat one you do not recognise as a problem with the detail `field` names.","example":"postal_code_mismatch"}},"required":["field","rule"],"additionalProperties":false},"description":"Every problem found, each naming the recipient detail and the rule it breaks. Empty when the provider would take the recipient as it is."}},"required":["integrationType","faults"]},"BulkFulfillErrorDTO":{"type":"object","properties":{"orderId":{"type":"string"},"orderItemIds":{"type":"array","items":{"type":"string"}},"message":{"type":"string"},"reason":{"type":"string","enum":["validation","not_found","internal"]}},"required":["orderId","orderItemIds","message","reason"]},"BulkFulfillSkippedDTO":{"type":"object","properties":{"orderId":{"type":"string"},"orderItemIds":{"type":"array","items":{"type":"string"}},"reason":{"type":"string","enum":["duplicate"]},"message":{"type":"string"}},"required":["orderId","orderItemIds","reason","message"]},"BulkFulfillResultDTO":{"type":"object","properties":{"total":{"type":"number","description":"Total number of fulfillment groups processed"},"succeeded":{"type":"number","description":"Number of successfully created fulfillments"},"failed":{"type":"number","description":"Number of failed fulfillment groups"},"skipped":{"type":"number","description":"Number of fulfillment groups skipped (e.g. because an identical fulfillment already exists for the order)."},"errors":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"orderItemIds":{"type":"array","items":{"type":"string"}},"message":{"type":"string"},"reason":{"type":"string","enum":["validation","not_found","internal"]}},"required":["orderId","orderItemIds","message","reason"],"additionalProperties":false},"description":"Details of each failed entry"},"skippedEntries":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"orderItemIds":{"type":"array","items":{"type":"string"}},"reason":{"type":"string","enum":["duplicate"]},"message":{"type":"string"}},"required":["orderId","orderItemIds","reason","message"],"additionalProperties":false},"description":"Details of each skipped entry"}},"required":["total","succeeded","failed","skipped","errors","skippedEntries"]},"BulkFulfillTemplateDTO":{"type":"object","properties":{"requiredColumns":{"type":"array","items":{"type":"string"}},"optionalColumns":{"type":"array","items":{"type":"string"}},"description":{"type":"string","description":"Human-readable description of the integration CSV or XLSX format the parser expects."},"inputFormat":{"type":"string","enum":["csv","xlsx"],"description":"File format the merchant should upload for this integration (csv or xlsx)."},"sheetName":{"description":"For xlsx inputs, the name of the worksheet that contains the rows to parse.","type":"string"}},"required":["requiredColumns","optionalColumns","description","inputFormat"]},"OrderExportDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"Identifier of the record.","example":"ojb_2c9NxQ3jSVWpaAqEbTORrivRV20"},"jobId":{"type":"string","description":"Identifier of the background job doing the work. Poll `GET /async-jobs/{id}` with it for live progress while `status` is `pending`. The job record expires after a few days; this record does not.","example":"order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y"},"status":{"type":"string","enum":["pending","completed","failed"],"description":"`pending` until the job ends, then `completed` when it did its work or `failed` when it did not. A job that failed stays in the list.","example":"completed"},"requesterKind":{"type":"string","enum":["user","api"],"description":"Which kind of credential started the job: `user` for a dashboard user, `api` for a secret key.","example":"user"},"requesterId":{"type":"string","description":"The requesting user id, or the id of the secret key used. Null when unknown.","example":"user_01J8ZK3Q9V2M4N6P8R0T2W4Y6A","nullable":true},"error":{"type":"string","description":"Why the job failed, once it has; null otherwise.","example":"The export has more rows than an XLSX file may hold. Narrow the filters and try again.","nullable":true},"finishedAt":{"description":"When the job completed or failed. Null until then.","example":"2026-09-03T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"kind":{"type":"string","enum":["export"],"description":"An order export: a file produced from the orders matching `parameters`. Started by `POST /order-exports`.","example":"export"},"parameters":{"type":"object","properties":{"type":{"type":"string","enum":["orders","order-items"],"description":"What each row of the file is: an order, or a shippable order item. Default `orders`. Ignored when `integrationType` is set.","example":"orders"},"columns":{"type":"array","items":{"type":"string"},"description":"The column keys to include, from `GET /orders/export/columns`. Required columns are always written. Default: the required columns only. Ignored when `integrationType` is set.","example":["customerEmail","shippingAddress.country"]},"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"Format the file for this integration's bulk-import template instead (CSV, XLSX or a ZIP of XLSX files, as `GET /orders/export/integration-formats` reports). The merchant account must have an active integration of this type.","example":"shipbob"},"sortBy":{"type":"string","enum":["id","createdAt","updatedAt","status","paymentId","amount","paymentAuthorizedAt"],"description":"Field the rows are ordered by. Default `createdAt`.","example":"createdAt"},"sortDirection":{"type":"string","enum":["asc","desc"],"description":"Sort direction. Default `desc`.","example":"desc"},"filters":{"type":"object","properties":{"$or":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}},"$and":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}}},"additionalProperties":{"anyOf":[{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false},{"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}}]},"description":"Which orders the export selected, in the shape the `GET /orders` query string carries filters. A record made before an operator was withdrawn still shows that operator, so a record is not always accepted unchanged by `POST /order-exports` — see the operators it lists. Absent when the export covered every order.","example":{"status":{"in":["unfulfilled","partially_fulfilled"]},"createdAt":{"gte":"2026-05-01T00:00:00.000Z","lt":"2026-06-01T00:00:00.000Z"}}}},"additionalProperties":false,"description":"The export request exactly as it was submitted. Post it back to `POST /order-exports` to run the same export again against the current orders — with one exception: a record made before a filter operator was withdrawn still shows that operator, and posting it back is answered with `400` naming the field. Replace that condition and post it again.","example":{"type":"orders","columns":["customerEmail","shippingAddress.country"],"sortBy":"createdAt","sortDirection":"desc","filters":{"status":{"in":["unfulfilled"]}}}},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Data rows written to the file, not counting header rows. Null until the export has completed.","example":1842,"nullable":true},"artifact":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"}},"required":["type","name"],"additionalProperties":false,"description":"The file, as `{ type, name }` — the two path segments of `GET /async-jobs/artifacts/{type}/{name}`. Null until the export has completed. Check `artifactAvailable` before offering the download: the file is kept for 90 days, the record for longer.","example":{"type":"order-export","name":"2026-09-03T10-41-53-915Z-order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y.csv"},"nullable":true},"artifactExpiresAt":{"description":"When the file stops being available for download: 90 days after the export completed. Null while there is no file.","example":"2026-12-02T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"artifactAvailable":{"type":"boolean","description":"Whether the file can be downloaded right now — true only for a completed export whose file has not yet expired. Once false, the export can still be run again from `parameters`.","example":true}},"required":["createdAt","updatedAt","metadata","id","jobId","status","requesterKind","requesterId","error","finishedAt","kind","parameters","rowCount","artifact","artifactExpiresAt","artifactAvailable"]},"BulkFulfillJobDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"Identifier of the record.","example":"ojb_2c9NxQ3jSVWpaAqEbTORrivRV20"},"jobId":{"type":"string","description":"Identifier of the background job doing the work. Poll `GET /async-jobs/{id}` with it for live progress while `status` is `pending`. The job record expires after a few days; this record does not.","example":"bulk-fulfill_2bYqQx7ZkK9mW3nP1sR4tU6vX8y"},"status":{"type":"string","enum":["pending","completed","failed"],"description":"`pending` until the job ends, then `completed` when it did its work or `failed` when it did not. A job that failed stays in the list.","example":"completed"},"requesterKind":{"type":"string","enum":["user","api"],"description":"Which kind of credential started the job: `user` for a dashboard user, `api` for a secret key.","example":"user"},"requesterId":{"type":"string","description":"The requesting user id, or the id of the secret key used. Null when unknown.","example":"user_01J8ZK3Q9V2M4N6P8R0T2W4Y6A","nullable":true},"error":{"type":"string","description":"Why the job failed, once it has; null otherwise.","example":"The export has more rows than an XLSX file may hold. Narrow the filters and try again.","nullable":true},"finishedAt":{"description":"When the job completed or failed. Null until then.","example":"2026-09-03T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"kind":{"type":"string","enum":["bulk-fulfill"],"description":"A bulk fulfill: shipments recorded from uploaded rows. Started by `POST /orders/bulk-fulfill/jobs` or `POST /orders/bulk-fulfill/integration/{type}/jobs`.","example":"bulk-fulfill"},"parameters":{"type":"object","properties":{"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"The integration whose shipment report the rows were read with (`shipbob`, `nextsmartship`). Absent for a Standard upload, whose rows are the entries `POST /orders/bulk-fulfill` takes.","example":"shipbob"}},"additionalProperties":false,"description":"How the rows were read: the integration whose shipment report they came from, or none for a Standard upload. The rows themselves are stored for a fixed window and are not returned.","example":{"integrationType":"shipbob"}},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rows the bulk fulfill was given, known from the start.","example":128},"inputExpiresAt":{"description":"When the uploaded rows stop being stored: 90 days after the bulk fulfill was started. A failed bulk fulfill can be run again until then.","example":"2026-12-02T10:41:53.915Z","type":"string","format":"date-time","nullable":true},"inputAvailable":{"type":"boolean","description":"Whether the uploaded rows are still stored, and so whether `POST /order-jobs/{id}/rerun` can run this bulk fulfill again. Re-running a completed one records nothing new: every shipment it already recorded is skipped as a duplicate.","example":true}},"required":["createdAt","updatedAt","metadata","id","jobId","status","requesterKind","requesterId","error","finishedAt","kind","parameters","rowCount","inputExpiresAt","inputAvailable"]},"OrderJobDTO":{"oneOf":[{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"Identifier of the record.","example":"ojb_2c9NxQ3jSVWpaAqEbTORrivRV20"},"jobId":{"type":"string","description":"Identifier of the background job doing the work. Poll `GET /async-jobs/{id}` with it for live progress while `status` is `pending`. The job record expires after a few days; this record does not.","example":"order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y"},"status":{"type":"string","enum":["pending","completed","failed"],"description":"`pending` until the job ends, then `completed` when it did its work or `failed` when it did not. A job that failed stays in the list.","example":"completed"},"requesterKind":{"type":"string","enum":["user","api"],"description":"Which kind of credential started the job: `user` for a dashboard user, `api` for a secret key.","example":"user"},"requesterId":{"type":"string","description":"The requesting user id, or the id of the secret key used. Null when unknown.","example":"user_01J8ZK3Q9V2M4N6P8R0T2W4Y6A","nullable":true},"error":{"type":"string","description":"Why the job failed, once it has; null otherwise.","example":"The export has more rows than an XLSX file may hold. Narrow the filters and try again.","nullable":true},"finishedAt":{"description":"When the job completed or failed. Null until then.","example":"2026-09-03T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"kind":{"type":"string","enum":["export"],"description":"An order export: a file produced from the orders matching `parameters`. Started by `POST /order-exports`.","example":"export"},"parameters":{"type":"object","properties":{"type":{"type":"string","enum":["orders","order-items"],"description":"What each row of the file is: an order, or a shippable order item. Default `orders`. Ignored when `integrationType` is set.","example":"orders"},"columns":{"type":"array","items":{"type":"string"},"description":"The column keys to include, from `GET /orders/export/columns`. Required columns are always written. Default: the required columns only. Ignored when `integrationType` is set.","example":["customerEmail","shippingAddress.country"]},"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"Format the file for this integration's bulk-import template instead (CSV, XLSX or a ZIP of XLSX files, as `GET /orders/export/integration-formats` reports). The merchant account must have an active integration of this type.","example":"shipbob"},"sortBy":{"type":"string","enum":["id","createdAt","updatedAt","status","paymentId","amount","paymentAuthorizedAt"],"description":"Field the rows are ordered by. Default `createdAt`.","example":"createdAt"},"sortDirection":{"type":"string","enum":["asc","desc"],"description":"Sort direction. Default `desc`.","example":"desc"},"filters":{"type":"object","properties":{"$or":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}},"$and":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}}},"additionalProperties":{"anyOf":[{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false},{"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"type":"string","nullable":true,"enum":[null]}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"contains":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}},"additionalProperties":false}}}]},"description":"Which orders the export selected, in the shape the `GET /orders` query string carries filters. A record made before an operator was withdrawn still shows that operator, so a record is not always accepted unchanged by `POST /order-exports` — see the operators it lists. Absent when the export covered every order.","example":{"status":{"in":["unfulfilled","partially_fulfilled"]},"createdAt":{"gte":"2026-05-01T00:00:00.000Z","lt":"2026-06-01T00:00:00.000Z"}}}},"additionalProperties":false,"description":"The export request exactly as it was submitted. Post it back to `POST /order-exports` to run the same export again against the current orders — with one exception: a record made before a filter operator was withdrawn still shows that operator, and posting it back is answered with `400` naming the field. Replace that condition and post it again.","example":{"type":"orders","columns":["customerEmail","shippingAddress.country"],"sortBy":"createdAt","sortDirection":"desc","filters":{"status":{"in":["unfulfilled"]}}}},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Data rows written to the file, not counting header rows. Null until the export has completed.","example":1842,"nullable":true},"artifact":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"}},"required":["type","name"],"additionalProperties":false,"description":"The file, as `{ type, name }` — the two path segments of `GET /async-jobs/artifacts/{type}/{name}`. Null until the export has completed. Check `artifactAvailable` before offering the download: the file is kept for 90 days, the record for longer.","example":{"type":"order-export","name":"2026-09-03T10-41-53-915Z-order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y.csv"},"nullable":true},"artifactExpiresAt":{"description":"When the file stops being available for download: 90 days after the export completed. Null while there is no file.","example":"2026-12-02T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"artifactAvailable":{"type":"boolean","description":"Whether the file can be downloaded right now — true only for a completed export whose file has not yet expired. Once false, the export can still be run again from `parameters`.","example":true}},"required":["createdAt","updatedAt","metadata","id","jobId","status","requesterKind","requesterId","error","finishedAt","kind","parameters","rowCount","artifact","artifactExpiresAt","artifactAvailable"],"additionalProperties":false},{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"Identifier of the record.","example":"ojb_2c9NxQ3jSVWpaAqEbTORrivRV20"},"jobId":{"type":"string","description":"Identifier of the background job doing the work. Poll `GET /async-jobs/{id}` with it for live progress while `status` is `pending`. The job record expires after a few days; this record does not.","example":"bulk-fulfill_2bYqQx7ZkK9mW3nP1sR4tU6vX8y"},"status":{"type":"string","enum":["pending","completed","failed"],"description":"`pending` until the job ends, then `completed` when it did its work or `failed` when it did not. A job that failed stays in the list.","example":"completed"},"requesterKind":{"type":"string","enum":["user","api"],"description":"Which kind of credential started the job: `user` for a dashboard user, `api` for a secret key.","example":"user"},"requesterId":{"type":"string","description":"The requesting user id, or the id of the secret key used. Null when unknown.","example":"user_01J8ZK3Q9V2M4N6P8R0T2W4Y6A","nullable":true},"error":{"type":"string","description":"Why the job failed, once it has; null otherwise.","example":"The export has more rows than an XLSX file may hold. Narrow the filters and try again.","nullable":true},"finishedAt":{"description":"When the job completed or failed. Null until then.","example":"2026-09-03T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"kind":{"type":"string","enum":["bulk-fulfill"],"description":"A bulk fulfill: shipments recorded from uploaded rows. Started by `POST /orders/bulk-fulfill/jobs` or `POST /orders/bulk-fulfill/integration/{type}/jobs`.","example":"bulk-fulfill"},"parameters":{"type":"object","properties":{"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"The integration whose shipment report the rows were read with (`shipbob`, `nextsmartship`). Absent for a Standard upload, whose rows are the entries `POST /orders/bulk-fulfill` takes.","example":"shipbob"}},"additionalProperties":false,"description":"How the rows were read: the integration whose shipment report they came from, or none for a Standard upload. The rows themselves are stored for a fixed window and are not returned.","example":{"integrationType":"shipbob"}},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rows the bulk fulfill was given, known from the start.","example":128},"inputExpiresAt":{"description":"When the uploaded rows stop being stored: 90 days after the bulk fulfill was started. A failed bulk fulfill can be run again until then.","example":"2026-12-02T10:41:53.915Z","type":"string","format":"date-time","nullable":true},"inputAvailable":{"type":"boolean","description":"Whether the uploaded rows are still stored, and so whether `POST /order-jobs/{id}/rerun` can run this bulk fulfill again. Re-running a completed one records nothing new: every shipment it already recorded is skipped as a duplicate.","example":true}},"required":["createdAt","updatedAt","metadata","id","jobId","status","requesterKind","requesterId","error","finishedAt","kind","parameters","rowCount","inputExpiresAt","inputAvailable"],"additionalProperties":false}]},"ImportOrderErrorDTO":{"type":"object","properties":{"paymentId":{"type":"string","description":"The payment ID that could not be imported"},"reason":{"type":"string","enum":["already_imported","payment_not_found","payment_not_succeeded","payment_reversed","payment_chargebacked","no_shippable_products","currency_mismatch","customer_mismatch"],"description":"Why the payment could not be imported"},"message":{"type":"string","description":"Human-readable explanation of the error"}},"required":["paymentId","reason","message"]},"ImportOrdersResultDTO":{"type":"object","properties":{"total":{"type":"number","description":"Number of unique payment IDs processed"},"imported":{"type":"number","description":"Number of orders created"},"orderIds":{"type":"array","items":{"type":"string"},"description":"IDs of the orders that were created"},"errors":{"type":"array","items":{"type":"object","properties":{"paymentId":{"type":"string","description":"The payment ID that could not be imported"},"reason":{"type":"string","enum":["already_imported","payment_not_found","payment_not_succeeded","payment_reversed","payment_chargebacked","no_shippable_products","currency_mismatch","customer_mismatch"],"description":"Why the payment could not be imported"},"message":{"type":"string","description":"Human-readable explanation of the error"}},"required":["paymentId","reason","message"],"additionalProperties":false},"description":"Per-payment errors. When this is non-empty no orders are created, because the import is all-or-nothing."}},"required":["total","imported","orderIds","errors"]},"AddOrderItemsResultDTO":{"type":"object","properties":{"orderId":{"type":"string","description":"The order the items were added to"},"total":{"type":"number","description":"Number of unique payment IDs processed"},"added":{"type":"number","description":"Number of payments whose items were added to the order"},"errors":{"type":"array","items":{"type":"object","properties":{"paymentId":{"type":"string","description":"The payment ID that could not be imported"},"reason":{"type":"string","enum":["already_imported","payment_not_found","payment_not_succeeded","payment_reversed","payment_chargebacked","no_shippable_products","currency_mismatch","customer_mismatch"],"description":"Why the payment could not be imported"},"message":{"type":"string","description":"Human-readable explanation of the error"}},"required":["paymentId","reason","message"],"additionalProperties":false},"description":"Per-payment errors. When this is non-empty no items are added, because the operation is all-or-nothing."}},"required":["orderId","total","added","errors"]},"FulfillmentItemDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"quantity":{"type":"number"},"fulfillment":{"type":"string"},"orderItem":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"name":{"type":"string"},"productName":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","name","productName"],"additionalProperties":false}},"required":["createdAt","updatedAt","metadata","id","quantity","fulfillment","orderItem"]},"FulfillmentDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"order":{"type":"string"},"trackingUrl":{"type":"string"},"trackingNumber":{"type":"string"},"carrier":{"type":"string","nullable":true},"externalShipmentId":{"description":"Identifier of the shipment in the fulfillment provider's system (for example the ShipBob shipment id). `null` for a fulfillment recorded by hand or reported without one.","example":"123456789","type":"string","nullable":true},"shippedAt":{"type":"string","format":"date-time"},"awaitingLastMileTracking":{"type":"boolean","description":"Whether the recorded tracking is provisional data from the 3PL, still awaiting its last-mile assignment. When the assignment arrives, the tracking number, carrier and URL are upgraded in place and a `fulfillment.updated` event is emitted.","example":false},"pspTrackingStatus":{"type":"string","enum":["pending","awaiting_capture","awaiting_tracking","submitted","failed","skipped",null],"nullable":true},"pspTrackingAttempts":{"type":"number"},"pspTrackingNextAttemptAt":{"type":"string","format":"date-time","nullable":true},"pspTrackingSubmittedAt":{"type":"string","format":"date-time","nullable":true},"pspTrackingLastError":{"type":"string","nullable":true},"fulfillmentItems":{"type":"array","items":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"quantity":{"type":"number"},"fulfillment":{"type":"string"},"orderItem":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"name":{"type":"string"},"productName":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","name","productName"],"additionalProperties":false}},"required":["createdAt","updatedAt","metadata","id","quantity","fulfillment","orderItem"],"additionalProperties":false}}},"required":["createdAt","updatedAt","metadata","id","order","trackingUrl","trackingNumber","carrier","externalShipmentId","shippedAt","awaitingLastMileTracking","pspTrackingStatus","pspTrackingAttempts","pspTrackingNextAttemptAt","pspTrackingSubmittedAt","pspTrackingLastError","fulfillmentItems"]},"OrderHistoryEntryDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"order":{"type":"string","description":"ID of the order this entry belongs to.","example":"ord_2c9NxQ3jSVWpaAqEbTORrivRV20"},"type":{"type":"string","enum":["order_created","items_added","payment_captured","customer_updated","status_changed","tpl_submission_succeeded","tpl_submission_failed","tpl_submission_dead_letter","tpl_submission_awaiting_funds","tpl_submission_rearmed","tpl_submission_skipped","fulfillment_route_skipped","tpl_submission_items_withheld","fulfillment_created","fulfillment_tracking_updated","aged_out","aged_out_cleared","tpl_hold","tpl_resubmitted","tpl_hold_awaiting_funds","tpl_hold_released","cancelled_units_shipped","tpl_cancellation_requested","tpl_address_update_requested"],"description":"Which lifecycle transition this entry records.","example":"status_changed"},"source":{"type":"string","enum":["user","api","import","webhook","system"],"description":"What kind of thing caused the transition — a dashboard user, an API call, the payment import, an inbound webhook, or the system acting on its own (scheduled retries, age-out). `actorKind` and `actorId` say who.","example":"system"},"actorKind":{"type":"string","enum":["user","api","webhook","system",null],"description":"Who caused the transition: `user`, a person using the dashboard; `api`, a request made with a secret key; `webhook`, a notification from your logistics provider or about a payment; `system`, the platform acting on its own. An imported order names whoever ran the import, a `user` or a secret key (`api`), while its `source` stays `import`. `null` on entries recorded before this field existed.","example":"user","nullable":true},"actorId":{"type":"string","description":"The actor's id: the user's id for `user`, the secret key's id for `api`, and the integration's id for a `webhook` your logistics provider sent. It stays on the entry after the user, key or integration it names is removed. `null` for `system`, for a notification about a payment, and on entries recorded before this field existed.","example":"user_01J8ZK3Q9V2M4N6P8R0T2W4Y6A","nullable":true},"actorName":{"type":"string","description":"The integration's current name, when the actor is a `webhook` from an integration that still exists. Looked up when you read the history, so a renamed integration shows its new name. `null` for every other actor.","example":"ShipBob US Warehouse","nullable":true},"details":{"description":"Curated context for the transition. The keys depend on the type — e.g. a failed 3PL submission carries the integration, attempt number, error and next retry time. A customer update carries `fields`, naming which parts of the customer details changed, and `addressFields` when the shipping address is one of them, naming the parts of the address that changed. A `cancelled_units_shipped` entry carries the `provider`, the shipment's `externalShipmentId`, the identifiers the provider assigned the shipment when it shipped in `shipmentIds`, the tracking number to follow it by in `trackingNumber`, its `carrier`, the cancelled `skus` it carried and their total `quantity`. A `tpl_cancellation_requested` entry records that an order you cancelled was cancelled at its provider too: it carries the `provider`, the provider's order number in `externalOrderId`, and the provider's answer in `outcome` — `cancelled`; `partially_cancelled`, when the provider cancelled only part of the order; `cancelling`, when the provider's warehouse was already preparing the order and decides whether it can still stop it; `not_cancellable`, when the provider had already started shipping the order or had closed it, with the provider's `code` when it gives one; or `failed`, when the request could not be made, with the `reason`. A `tpl_address_update_requested` entry records that the order's shipping address was sent to ShipBob, for an order ShipBob holds because it could not validate the address — after you corrected the customer, or when you resubmitted the order: it carries the `provider`, the provider's order number in `externalOrderId`, and the provider's answer in `outcome` — `updated`, when the provider saved the address, and the order stays on hold until the provider releases it; `partially_updated`, when the provider saved it for some of the shipments it holds but not for the rest, with the provider's `code` when it refused one; `not_held`, when the provider no longer held the order for its address, so nothing was sent; `refused`, when the provider did not accept the address, with the provider's `code` when it gives one; or `failed`, when the request could not be made, with the `reason`. A resubmission made for you because you corrected the customer carries `trigger` `customer_updated`, the type of the entry recording that correction. Entries that carry an `integrationId` also gain an `integrationName` at read time — the integration's current user-given name — when the integration still exists. Values from the customer details themselves are never recorded: an entry says what changed, not what it changed to.","example":{"from":"unfulfilled","to":"fulfilled"},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]},{"type":"array","items":{"type":"string"}}]},"nullable":true}},"required":["createdAt","updatedAt","metadata","id","order","type","source","actorKind","actorId","actorName","details"]},"MerchantConfigDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"The unique identifier of the merchant configuration","example":"mc_abc123"},"bundlingWindowMinutes":{"type":"number","description":"Time window in minutes for bundling payments into the same order. 0 disables cross-payment bundling.","example":30},"lowStockThreshold":{"type":"number","description":"Units at or below which a SKU with no threshold of its own counts as low stock in the inventory view.","example":10},"orderAgeOutDays":{"type":"number","description":"Number of days after payment authorization at which an order whose payment was captured and still owes fulfillment is marked aged out. An authorization that was never captured never ages out. 0 disables aging out.","example":30}},"required":["createdAt","updatedAt","metadata","id","bundlingWindowMinutes","lowStockThreshold","orderAgeOutDays"]},"EntityRemovedDTO":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"IntegrationProductMappingDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"The 3PL provider this mapping applies to"},"integrationId":{"description":"The integration this mapping applies to. Empty for a mapping that applies to every integration of its type.","type":"string","nullable":true},"sku":{"type":"string","description":"Internal SKU of the shippable item"},"externalReference":{"type":"string","description":"Value written into the provider import template to identify the product"},"externalProductId":{"description":"Product ID in the external 3PL system, if known","type":"string","nullable":true},"externalSku":{"description":"SKU in the external 3PL system, if known","type":"string","nullable":true}},"required":["createdAt","updatedAt","metadata","id","integrationType","sku","externalReference"]},"EnvironmentSecretDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","example":"envs_abc123"},"hasOdusWebhookSharedSecret":{"type":"boolean","example":true,"description":"Whether the ODUS webhook shared secret is configured"},"hasOdusApiSecretKey":{"type":"boolean","example":true,"description":"Whether the ODUS API secret key is configured"}},"required":["createdAt","updatedAt","metadata","id","hasOdusWebhookSharedSecret","hasOdusApiSecretKey"]},"TenantStatusDTO":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether order creation from payments is currently active for the merchant — the merchant's own Activate/Pause switch. Independent of the OMS UI, which stays available (entitlement permitting) while order creation is paused or degraded.","example":true},"entitlement":{"type":"string","enum":["active","suspended","none","unknown"],"description":"The merchant account's entitlement to the `oms` product. This — not `enabled` — is what decides whether the OMS surface is offered at all: entitlement says whether the account may use the OMS, `enabled` whether order creation is currently running. Only `active` permits activating — `suspended` and `none` mean the addon cannot be activated no matter what the caller does, so clients should explain that (entitlements are granted by staff) rather than offer an activate action. `unknown` means this request path resolved no verdict (machine-to-machine secret keys, which are entitlement-checked separately) and must not be read as a denial.","example":"active"}},"required":["enabled","entitlement"]},"TenantStatusReportDTO":{"type":"object","properties":{"enabled":{"nullable":true,"description":"Whether order creation from payments is currently active for the merchant — the merchant's own Activate/Pause switch. Independent of the OMS UI, which stays available (entitlement permitting) while order creation is paused or degraded. If your role cannot view webhook subscribers, this is the state last seen by a user who can, and `null` until one has. Treat `null` as unknown, not as paused.","example":true,"type":"boolean"},"entitlement":{"type":"string","enum":["active","suspended","none","unknown"],"description":"The merchant account's entitlement to the `oms` product. This — not `enabled` — is what decides whether the OMS surface is offered at all: entitlement says whether the account may use the OMS, `enabled` whether order creation is currently running. Only `active` permits activating — `suspended` and `none` mean the addon cannot be activated no matter what the caller does, so clients should explain that (entitlements are granted by staff) rather than offer an activate action. `unknown` means this request path resolved no verdict (machine-to-machine secret keys, which are entitlement-checked separately) and must not be read as a denial.","example":"active"}},"required":["enabled","entitlement"]},"AsyncJobStatusDTO":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the job, as returned when it was started. Quote it when contacting support about a job.","example":"order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y"},"type":{"type":"string","description":"What kind of work the job performs, for example `order-export`.","example":"order-export"},"state":{"type":"string","enum":["queued","running","completed","failed"],"description":"Where the job is in its lifecycle. `queued` covers a job that has not started yet and one waiting to retry after a failed attempt; `running` means it is being processed now; `completed` and `failed` are final.","example":"completed"},"progress":{"type":"number","description":"How far the job has got, as a percentage from 0 to 100. Advances as the job reports progress; always 100 once the job has completed.","example":100},"createdAt":{"description":"When the job was submitted. Processing begins later, at `startedAt`.","example":"2026-09-03T10:41:53.915Z","type":"string","format":"date-time"},"startedAt":{"description":"When processing of the most recent attempt began. Null until the first attempt starts; a job that is retried after a failed attempt reports the start of the retry.","example":"2026-09-03T10:41:54.120Z","type":"string","format":"date-time","nullable":true},"finishedAt":{"description":"When the job completed or failed. Null until then.","example":"2026-09-03T10:42:10.004Z","type":"string","format":"date-time","nullable":true},"result":{"type":"object","additionalProperties":true,"description":"What the job produced, once it has completed; null otherwise. The shape depends on the job type. A job that produces a file reports it under `artifact` as `{ type, name }`, the two path segments of the download route.","example":{"artifact":{"type":"order-export","name":"2026-09-03T10-41-53-915Z-order-export_2bYqQx7ZkK9mW3nP1sR4tU6vX8y.csv"}},"nullable":true},"error":{"type":"string","description":"Why the job failed, once it has; null otherwise. Written for the person who started the job.","example":"The job could not be completed because its input was invalid.","nullable":true}},"required":["id","type","state","progress","createdAt","startedAt","finishedAt","result","error"]},"SecretKeyDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"active":{"type":"boolean","example":true},"maskedValue":{"type":"string"},"note":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"string","enum":["order:read","order:create","order:update","order:export","order:bulk_fulfill","fulfillment:read","fulfillment:create","fulfillment:update","secret_key:read","secret_key:create","secret_key:update","secret_key:delete","merchant_config:read","merchant_config:update","integration:read","integration:create","integration:update","inventory:read","inventory:update","integration_product_mapping:read","integration_product_mapping:create","integration_product_mapping:update","integration_product_mapping:delete","fulfillment_route:read","fulfillment_route:create","fulfillment_route:update","webhook_subscriber:read","webhook_subscriber:create","webhook_subscriber:update","environment_secret:read","environment_secret:update","webhook:read"]},"description":"Permissions of the secret key"}},"required":["createdAt","updatedAt","metadata","id","active","maskedValue","permissions"]},"SecretKeyPartialDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"active":{"type":"boolean","example":true},"maskedValue":{"type":"string"},"note":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"string","enum":["order:read","order:create","order:update","order:export","order:bulk_fulfill","fulfillment:read","fulfillment:create","fulfillment:update","secret_key:read","secret_key:create","secret_key:update","secret_key:delete","merchant_config:read","merchant_config:update","integration:read","integration:create","integration:update","inventory:read","inventory:update","integration_product_mapping:read","integration_product_mapping:create","integration_product_mapping:update","integration_product_mapping:delete","fulfillment_route:read","fulfillment_route:create","fulfillment_route:update","webhook_subscriber:read","webhook_subscriber:create","webhook_subscriber:update","environment_secret:read","environment_secret:update","webhook:read"]},"description":"Permissions of the secret key"}},"required":["createdAt","updatedAt","metadata","id","active","maskedValue","permissions"]},"SecretKeyWithKeyDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string"},"active":{"type":"boolean","example":true},"maskedValue":{"type":"string"},"note":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"string","enum":["order:read","order:create","order:update","order:export","order:bulk_fulfill","fulfillment:read","fulfillment:create","fulfillment:update","secret_key:read","secret_key:create","secret_key:update","secret_key:delete","merchant_config:read","merchant_config:update","integration:read","integration:create","integration:update","inventory:read","inventory:update","integration_product_mapping:read","integration_product_mapping:create","integration_product_mapping:update","integration_product_mapping:delete","fulfillment_route:read","fulfillment_route:create","fulfillment_route:update","webhook_subscriber:read","webhook_subscriber:create","webhook_subscriber:update","environment_secret:read","environment_secret:update","webhook:read"]},"description":"Permissions of the secret key"},"value":{"type":"string"}},"required":["createdAt","updatedAt","metadata","id","active","maskedValue","permissions","value"]},"IntegrationShipBobConfigResponseDTO":{"type":"object","properties":{"type":{"type":"string","enum":["shipbob"],"description":"Integration type","example":"shipbob"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"channelId":{"type":"number","description":"ShipBob channel ID auto-resolved from the API key during provisioning.","example":12345},"apiKey":{"type":"string","description":"ShipBob personal access token (Bearer)","example":"pat_xxx"},"webhookSecret":{"description":"Shared secret for verifying ShipBob webhook signatures","type":"string","nullable":true}},"required":["type","environment","apiKey"]},"IntegrationNextSmartShipConfigResponseDTO":{"type":"object","properties":{"type":{"type":"string","enum":["nextsmartship"],"description":"Integration type","example":"nextsmartship"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"clientId":{"type":"string","description":"NextSmartShip OAuth client ID","example":"nss_live_abc123def456"},"clientSecret":{"type":"string","description":"NextSmartShip OAuth client secret, also used to verify webhook signatures"}},"required":["type","environment","clientId","clientSecret"]},"IntegrationShipAwayConfigResponseDTO":{"type":"object","properties":{"type":{"type":"string","enum":["shipaway"],"description":"Integration type","example":"shipaway"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"warehouse":{"type":"string","description":"The warehouse name in your ShipAway API address, `https://api.ongoingsystems.se/<warehouse>/`.","example":"ShipAway"},"goodsOwnerId":{"type":"number","description":"Your goods owner ID at ShipAway.","example":123},"username":{"type":"string","description":"The API username ShipAway issued for your goods owner.","example":"api_user"},"password":{"type":"string","description":"The API password ShipAway issued for your goods owner."},"transporterCode":{"type":"string","description":"The courier code every order is sent with.","example":"DPD"},"transporterServiceCode":{"type":"string","description":"The courier service code sent with `transporterCode`.","example":"DPD_HOME"},"webhookToken":{"type":"string","description":"The token ShipAway sends in the `X-Auth-Token` header of its shipment notifications."}},"required":["type","environment","warehouse","goodsOwnerId","username","password"]},"IntegrationDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","example":"int_abc123"},"type":{"type":"string","enum":["shipbob","nextsmartship","shipaway"]},"name":{"type":"string","example":"My ShipBob"},"active":{"type":"boolean","example":true},"apiConnected":{"type":"boolean","example":false},"description":{"type":"string","nullable":true},"configuration":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["shipbob"],"description":"Integration type","example":"shipbob"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"channelId":{"type":"number","description":"ShipBob channel ID auto-resolved from the API key during provisioning.","example":12345},"apiKey":{"type":"string","description":"ShipBob personal access token (Bearer)","example":"pat_xxx"},"webhookSecret":{"description":"Shared secret for verifying ShipBob webhook signatures","type":"string","nullable":true}},"required":["type","environment","apiKey"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["nextsmartship"],"description":"Integration type","example":"nextsmartship"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"clientId":{"type":"string","description":"NextSmartShip OAuth client ID","example":"nss_live_abc123def456"},"clientSecret":{"type":"string","description":"NextSmartShip OAuth client secret, also used to verify webhook signatures"}},"required":["type","environment","clientId","clientSecret"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["shipaway"],"description":"Integration type","example":"shipaway"},"environment":{"type":"string","enum":["sandbox","production"],"description":"Target environment for the integration provider."},"warehouse":{"type":"string","description":"The warehouse name in your ShipAway API address, `https://api.ongoingsystems.se/<warehouse>/`.","example":"ShipAway"},"goodsOwnerId":{"type":"number","description":"Your goods owner ID at ShipAway.","example":123},"username":{"type":"string","description":"The API username ShipAway issued for your goods owner.","example":"api_user"},"password":{"type":"string","description":"The API password ShipAway issued for your goods owner."},"transporterCode":{"type":"string","description":"The courier code every order is sent with.","example":"DPD"},"transporterServiceCode":{"type":"string","description":"The courier service code sent with `transporterCode`.","example":"DPD_HOME"},"webhookToken":{"type":"string","description":"The token ShipAway sends in the `X-Auth-Token` header of its shipment notifications."}},"required":["type","environment","warehouse","goodsOwnerId","username","password"],"additionalProperties":false}],"nullable":true}},"required":["createdAt","updatedAt","metadata","id","type","name","active","apiConnected"]},"IntegrationExternalProductDTO":{"type":"object","properties":{"externalProductId":{"type":"string","description":"Identifier of the product in the external 3PL system.","example":"12345"},"name":{"type":"string","description":"Product name as defined in the external 3PL system.","example":"Wireless Mouse"},"sku":{"description":"Stock keeping unit of the product in the external 3PL system.","example":"WM-001","type":"string"}},"required":["externalProductId","name"]},"SkuInventoryDTO":{"type":"object","properties":{"sku":{"type":"string","description":"Stock keeping unit the warehouse ships under. One row per SKU: two catalogue products sharing a SKU share the same stock, the same mappings and the same threshold, and are reported once.","example":"YM-TRAVEL-01"},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the product in the ODUS catalogue.","example":"prod_2QC7PqoUeOxQEWscJJt6B3PkvyL"},"name":{"type":"string","description":"Name of the product in the ODUS catalogue.","example":"Travel Yoga Mat"}},"required":["id","name"],"additionalProperties":false},"description":"Every shippable product in the ODUS catalogue carrying this SKU, in catalogue order. Never empty."},"levels":{"type":"array","items":{"type":"object","properties":{"integrationId":{"type":"string","description":"Identifier of the integration holding this stock.","example":"int_2QC7PqoUeOxQEWscJJt6B3PkvyL"},"integrationType":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"The 3PL provider the integration connects to.","example":"shipbob"},"quantity":{"nullable":true,"description":"Units the provider reports as available, or null when it reports nothing for this SKU — the SKU is not stocked or mapped there, or the stock read failed. Distinct from 0, which means the provider is out. A ShipBob integration reports a quantity only for a mapped SKU; a NextSmartShip integration is also asked by the SKU itself.","example":42,"type":"number"},"externalReference":{"nullable":true,"description":"What this provider knows the SKU as, from the merchant’s product mapping, or null when no mapping exists. For a ShipBob integration an absent mapping means no stock is reported for the SKU; for a NextSmartShip integration the SKU itself is used.","example":"Travel Yoga Mat","type":"string"},"mappingId":{"nullable":true,"description":"Identifier of the product mapping `externalReference` came from, or null when this SKU is not mapped to this provider. Address it with the `/integration-product-mappings/{id}` routes to change or remove the mapping without searching for it.","example":"ipm_2QC7PqoUeOxQEWscJJt6B3PkvyL","type":"string"},"externalProductId":{"nullable":true,"description":"The provider-side product id the mapping captured, when it was chosen from the provider’s catalogue rather than typed. Null when the SKU is unmapped here or the mapping carries no product id.","example":"10203040","type":"string"},"externalSku":{"nullable":true,"description":"The provider-side SKU the mapping captured alongside the reference, when the provider reported one. Null when the SKU is unmapped here or the mapping carries no provider SKU.","example":"SB-YM-TRAVEL-01","type":"string"},"mappingSharedByType":{"type":"boolean","description":"Whether the mapping applies to every integration of this provider type rather than to this integration alone. A mapping made for one integration takes precedence over such a mapping. False when the SKU is not mapped here.","example":false}},"required":["integrationId","integrationType","quantity","externalReference","mappingId","externalProductId","externalSku"],"additionalProperties":false},"description":"One entry per connected integration with fulfillment enabled, in the same order for every SKU."},"totalQuantity":{"nullable":true,"description":"Units available across every connected provider, or null when no figure could be built for this SKU — either a provider this SKU depends on did not answer the stock read, or none of them reports a record for it. A SKU depends on a provider that is asked about it: one it is mapped to, or one that matches by `internal_sku`. Never a sum that counts a silent provider as 0, and never the sum of no levels at all — check `status` for which of the two, and `InventorySourcesDTO.integrations[].available` for whether a provider is down.","example":42,"type":"number"},"status":{"type":"string","enum":["in_stock","low_stock","out_of_stock","unknown","not_mapped"],"description":"Where the combined total sits against `lowStockThreshold`: out of stock at 0, low stock up to and including the threshold, in stock above it — reported only when a provider actually answered with a figure for this SKU. `not_mapped` when none did and no connected integration has the SKU mapped, so there is no stock figure to report rather than a stock level of zero. `unknown` when the figure exists in principle but could not be established: a provider this SKU depends on did not answer and what was read is at or below the threshold, or nothing was reported for a SKU that is mapped. A known sum above the threshold stays in stock, since the missing levels can only raise it. Resolved when the row is read, so it reflects a threshold set moments ago rather than the one in force when the snapshot was taken.","example":"in_stock"},"lowStockThreshold":{"type":"number","description":"Units at or below which this SKU counts as low stock: the SKU’s own threshold when one is set, otherwise the merchant-wide default reported by `GET /inventory/sources`.","example":10}},"required":["sku","products","levels","totalQuantity","status","lowStockThreshold"]},"InventorySourcesDTO":{"type":"object","properties":{"refreshedAt":{"type":"string","format":"date-time","description":"When the connected providers were last asked for stock.","example":"2026-08-11T09:30:00.000Z"},"lowStockThreshold":{"type":"number","description":"The merchant-wide default: units at or below which a SKU counts as low stock when it has no threshold of its own. Each row reports the threshold actually applied to it in `SkuInventoryDTO.lowStockThreshold`.","example":10},"integrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the integration.","example":"int_2QC7PqoUeOxQEWscJJt6B3PkvyL"},"name":{"type":"string","description":"Name the merchant gave the integration.","example":"ShipBob EU"},"type":{"type":"string","enum":["shipbob","nextsmartship","shipaway"],"description":"The 3PL provider the integration connects to.","example":"shipbob"},"available":{"type":"boolean","description":"Whether the provider answered the last stock read. When false its quantities are unknown rather than zero, so the total of every SKU that depends on it — one mapped to it, or any SKU for a provider matching by `internal_sku` — is reported as null rather than as a figure that silently leaves it out.","example":true},"productMatching":{"type":"string","enum":["product_name","internal_sku","mapping"],"description":"Which of the merchant’s own values this integration type matches an unmapped item by when an order is exported or submitted: `product_name` for ShipBob, `internal_sku` for NextSmartShip. A product mapping replaces that value for the one SKU it names. Stock levels follow it only where the value is the SKU itself: a NextSmartShip level is matched by the SKU unless a mapping overrides it, while a ShipBob level reports a quantity only for a mapped SKU. `mapping` is no longer reported.","example":"product_name"}},"required":["id","name","type","available","productMatching"],"additionalProperties":false},"description":"The integrations the view covers: active, with fulfillment enabled and holding API credentials. Empty when the merchant has connected none, in which case there is no stock to report at all."}},"required":["refreshedAt","lowStockThreshold","integrations"]},"SearchResultsDTO":{"type":"object","properties":{"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the matched record.","example":"ord_2abc3def4ghi5jkl"},"label":{"type":"string","description":"Primary text of the result: the order id for an order, the tracking number for a fulfillment, the payment id for a payment.","example":"ord_2abc3def4ghi5jkl"},"sublabel":{"type":"string","description":"Secondary text of the result: the customer email for an order, the order id for a fulfillment or a payment.","example":"john@example.com","nullable":true},"entityType":{"type":"string","enum":["order","fulfillment"],"description":"The kind of record this result is."}},"required":["id","label","entityType"],"additionalProperties":false},"description":"Matching orders, at most 5."},"fulfillments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the matched record.","example":"ful_2abc3def4ghi5jkl"},"label":{"type":"string","description":"Primary text of the result: the order id for an order, the tracking number for a fulfillment, the payment id for a payment.","example":"1Z999AA10123456784"},"sublabel":{"type":"string","description":"Secondary text of the result: the customer email for an order, the order id for a fulfillment or a payment.","example":"ord_2abc3def4ghi5jkl","nullable":true},"entityType":{"type":"string","enum":["order","fulfillment"],"description":"The kind of record this result is."}},"required":["id","label","entityType"],"additionalProperties":false},"description":"Matching fulfillments, at most 5."},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the matched record.","example":"pay_2abc3def4ghi5jkl"},"label":{"type":"string","description":"Primary text of the result: the order id for an order, the tracking number for a fulfillment, the payment id for a payment.","example":"pay_2abc3def4ghi5jkl"},"sublabel":{"type":"string","description":"Secondary text of the result: the customer email for an order, the order id for a fulfillment or a payment.","example":"ord_2abc3def4ghi5jkl","nullable":true},"entityType":{"type":"string","enum":["payment"],"description":"The kind of record this result is."}},"required":["id","label","entityType"],"additionalProperties":false},"description":"When the query is an order id, that order's payments, at most 5: the payment that created the order first, then any whose items were added to it. Empty for any other query."}},"required":["orders","fulfillments","payments"]},"FulfillmentRoutingDTO":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether orders are routed through the live version. While off, the fulfillment routes route them.","example":false},"revision":{"type":"number","description":"Counts saves of the draft. Send it back when you save or publish the draft.","example":3},"live":{"type":"object","properties":{"number":{"type":"number","example":3},"tree":{"type":"object","additionalProperties":true,"description":"The routing tree exactly as it was published: the same shape as `tree` in Save the fulfillment routing draft. It never changes once published."},"publishedAt":{"description":"When the version was published.","example":"2026-11-10T14:02:00Z","type":"string","format":"date-time"}},"required":["number","tree","publishedAt"],"additionalProperties":false,"description":"The live version. Null until one is published.","nullable":true},"draft":{"type":"object","properties":{"tree":{"type":"object","additionalProperties":true,"description":"The tree exactly as it was last saved. It may be unfinished; no order is routed by it."},"baseVersion":{"type":"number","description":"The version the draft started from. Null when it started from the routes or empty.","example":3,"nullable":true},"savedAt":{"example":"2026-11-12T09:30:00Z","type":"string","format":"date-time"}},"required":["tree","baseVersion","savedAt"],"additionalProperties":false,"description":"The tree being edited. Null when there is no draft.","nullable":true}},"required":["active","revision","live","draft"]},"FulfillmentRoutingVersionDTO":{"type":"object","properties":{"id":{"type":"string","example":"frv_2mXGTxXIkqv4uSdbm8DJCzvHUIu"},"number":{"type":"number","example":3},"tree":{"type":"object","additionalProperties":true,"description":"The routing tree exactly as it was published: the same shape as `tree` in Save the fulfillment routing draft. It never changes once published."},"createdAt":{"description":"When the version was published.","example":"2026-11-10T14:02:00Z","type":"string","format":"date-time"}},"required":["id","number","tree","createdAt"]},"FulfillmentRoutingVersionListDTO":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"frv_2mXGTxXIkqv4uSdbm8DJCzvHUIu"},"number":{"type":"number","example":3},"createdAt":{"description":"When the version was published.","example":"2026-11-10T14:02:00Z","type":"string","format":"date-time"}},"required":["id","number","createdAt"],"additionalProperties":false}}},"required":["data"]},"RoutableIntegrationListDTO":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"int_2mXGTxXIkqv4uSdbm8DJCzvHUIu"},"name":{"type":"string","example":"East Coast warehouse"}},"required":["id","name"],"additionalProperties":false}}},"required":["data"]},"FulfillmentRoutingEvaluationDTO":{"type":"object","properties":{"outcome":{"type":"string","enum":["matched","not_sent","out_of_stock","integration_inactive","stock_unreadable","missing_sku","order_cancelled","nothing_to_ship","no_country"],"description":"`matched`: `integrationId` would get the order. `out_of_stock`: every integration of the block was short, so the order would wait for a restock. `not_sent`: the tree does not send it. `integration_inactive`: routing stopped at a switched-off integration. `stock_unreadable`: the stock of `integrationId` could not be read; try again. The rest are checks the order fails before the tree is read.","example":"matched"},"integrationId":{"type":"string","description":"The integration that would get the order, or the one routing stopped at.","example":"int_2mXGTxXIkqv4uSdbm8DJCzvHUIu","nullable":true},"version":{"type":"number","description":"The version evaluated. Null for the draft.","example":3,"nullable":true},"steps":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["segment","fulfill","not_sent"],"example":"segment"},"path":{"type":"string","description":"Where the block sits in the tree, such as `root.segments.2.then`.","example":"root"},"segment":{"type":"number","description":"On a segment block: the index of the segment taken; null for `otherwise`.","example":2,"nullable":true},"attempts":{"type":"array","items":{"type":"object","properties":{"integrationId":{"type":"string","example":"int_2mXGTxXIkqv4uSdbm8DJCzvHUIu"},"result":{"type":"string","enum":["selected","short","inactive","unreadable"],"description":"`selected` gets the order. `short` lacks a SKU in `short`, so the next is tried. `inactive` is switched off. `unreadable` has stock that could not be read.","example":"short"},"short":{"type":"array","items":{"type":"string"},"example":["AS-HG"]}},"required":["integrationId","result","short"],"additionalProperties":false},"description":"On a fulfill block: each integration tried, in order."}},"required":["type","path"],"additionalProperties":false}}},"required":["outcome","integrationId","version","steps"]},"WebhookSubscriberDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","example":"whs_abc123"},"active":{"type":"boolean","example":true},"recipientUrl":{"type":"string","example":"https://my-backend.com/webhooks"},"subscribedTo":{"type":"array","items":{"type":"string","enum":["order.created","order.updated","order.fulfilled","fulfillment.created","fulfillment.updated"]},"example":[]}},"required":["createdAt","updatedAt","metadata","id","active","recipientUrl","subscribedTo"]},"WebhookSubscriberWithSecretDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","example":"whs_abc123"},"active":{"type":"boolean","example":true},"recipientUrl":{"type":"string","example":"https://my-backend.com/webhooks"},"subscribedTo":{"type":"array","items":{"type":"string","enum":["order.created","order.updated","order.fulfilled","fulfillment.created","fulfillment.updated"]},"example":[]},"sharedSecret":{"type":"string","example":"218f5208d105f754025bb5cfa6b6aefd"}},"required":["createdAt","updatedAt","metadata","id","active","recipientUrl","subscribedTo","sharedSecret"]},"WebhookResponseDTO":{"type":"object","properties":{"createdAt":{"example":"2024-02-18T12:00:00Z","description":"The date and time when the entity was created.","type":"string","format":"date-time"},"updatedAt":{"example":"2024-02-21T12:15:00Z","description":"The date and time when the entity was last updated.","type":"string","format":"date-time","nullable":true},"metadata":{"description":"Metadata used by merchants to store additional information about the entity.","example":{"key1":"value1","key2":"value2"},"type":"object","additionalProperties":{"type":"string"},"nullable":true},"id":{"type":"string","description":"The unique identifier of the webhook delivery","example":"wh_abc123"},"success":{"type":"boolean","description":"Whether the webhook delivery was successful"},"url":{"type":"string","description":"The URL the webhook was delivered to"},"attempts":{"type":"number","description":"Number of delivery attempts made"},"latestResponseStatus":{"description":"HTTP status code from the latest delivery attempt","type":"number","nullable":true},"firstDispatchedAt":{"description":"Timestamp of the first delivery attempt","type":"string","format":"date-time","nullable":true},"lastDispatchedAt":{"description":"Timestamp of the most recent delivery moment","type":"string","format":"date-time","nullable":true},"abandonedAt":{"description":"Timestamp at which this delivery was abandoned without ever succeeding, because it stayed undelivered past the delivery deadline — typically because the subscriber was left inactive. Null for deliveries that succeeded, that failed after exhausting their retries, or that are still in flight.","type":"string","format":"date-time","nullable":true},"subscriber":{"type":"string","description":"The ID of the webhook subscriber","example":"whs_abc123"},"event":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the event"},"type":{"type":"string","description":"The event type"}},"required":["id","type"],"additionalProperties":false,"description":"The event that triggered this delivery"}},"required":["createdAt","updatedAt","metadata","id","success","url","attempts","latestResponseStatus","firstDispatchedAt","lastDispatchedAt","abandonedAt","subscriber","event"]},"PageMetaDTO":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"totalItems":{"type":"number"},"totalPages":{"type":"number"}},"required":["page","pageSize","totalItems","totalPages"]},"CursorPageMetaDTO":{"type":"object","properties":{"mode":{"type":"string","const":"cursor","description":"Discriminator identifying cursor-based pagination metadata.","example":"cursor"},"pageSize":{"type":"number","minimum":1,"description":"Number of items requested per page.","example":10},"hasNextPage":{"type":"boolean","description":"Whether a next page exists.","example":false},"hasPreviousPage":{"type":"boolean","description":"Whether a previous page exists.","example":true},"nextCursor":{"description":"Opaque cursor for fetching the next page. Null when there is no next page.","example":"eyJzIjoiY3JlYXRlZEF0IiwiZCI6ImFzYyIsIm4iOiJmb3J3YXJkIn0","type":["string","null"]},"prevCursor":{"description":"Opaque cursor for fetching the previous page. Null when there is no previous page.","example":"eyJzIjoiY3JlYXRlZEF0IiwiZCI6ImFzYyIsIm4iOiJiYWNrd2FyZCJ9","type":["string","null"]}},"required":["mode","pageSize","hasNextPage","hasPreviousPage","nextCursor","prevCursor"]},"UpsertEnvironmentSecretRequestDTO":{"type":"object","properties":{"odusWebhookSharedSecret":{"type":"string","minLength":1,"description":"The shared secret used to verify HMAC signatures on incoming ODUS webhooks"}}},"CreateWebhookSubscriberRequestDTO":{"type":"object","properties":{"recipientUrl":{"type":"string","description":"The URL to send the webhook to. Must be a valid HTTPS URL","example":"https://my-be-url.com/webhooks"},"subscribedTo":{"type":"array","items":{"enum":["order.created","order.updated","order.fulfilled","fulfillment.created","fulfillment.updated"],"type":"string"},"example":[]}},"required":["recipientUrl","subscribedTo"]},"UpdateWebhookSubscriberRequestDTO":{"type":"object","properties":{"recipientUrl":{"type":"string","description":"The URL to send the webhook to. Must be a valid HTTPS URL","example":"https://my-be-url.com/webhooks"},"subscribedTo":{"type":"array","items":{"enum":["order.created","order.updated","order.fulfilled","fulfillment.created","fulfillment.updated"],"type":"string"},"example":[]},"active":{"type":"boolean","description":"Whether the webhook subscriber is active. Deactivating pauses webhook delivery to this subscriber rather than cancelling it: events queued while it is inactive are held, and reactivating the subscriber resumes their delivery. A held event is not held indefinitely — one that stays undelivered past the delivery deadline is abandoned."}}},"UpdateFulfillmentTrackingRequestDTO":{"type":"object","properties":{"trackingNumber":{"type":"string","description":"Carrier-issued tracking number. The tracking URL is derived from it when no tracking URL is provided."},"carrier":{"type":"string","description":"Carrier name (e.g. UPS, USPS)."},"trackingUrl":{"type":"string","description":"Tracking URL for the shipment. When omitted it is derived from the tracking number."}},"required":["trackingNumber","carrier"]},"SaveFulfillmentRoutingDraftRequestDTO":{"type":"object","properties":{"tree":{"$ref":"#/components/schemas/FulfillmentRoutingNodeDraftDTO"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The draft `revision` you last read, or 0 when there was no draft. A save made since then is refused, so one editor never overwrites another unseen.","example":3}},"required":["tree","revision"]},"FulfillmentRoutingNodeDraftDTO":{"description":"A step of the fulfillment routing tree.","oneOf":[{"type":"object","properties":{"type":{"enum":["segment"],"type":"string"},"segments":{"minItems":0,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"example":"North America"},"match":{"enum":["all","any"],"type":"string","description":"Whether `all` of the conditions must hold, or `any` one of them."},"conditions":{"minItems":0,"maxItems":20,"type":"array","items":{"type":"object","properties":{"field":{"enum":["country","sku"],"type":"string","description":"What the condition tests: the ship-to country, or the SKUs of the order."},"operator":{"enum":["in","not_in","every_in","any_in"],"type":"string","description":"`in` and `not_in` take a country. `every_in` holds when every shippable item's SKU is listed; `any_in` holds when at least one is."},"values":{"minItems":0,"maxItems":300,"type":"array","items":{"type":"string","maxLength":200},"description":"Country codes or SKUs, each listed once.","example":["US","CA"]}},"required":["field","operator","values"]}},"then":{"$ref":"#/components/schemas/FulfillmentRoutingNodeDraftDTO"}},"required":["name","match","conditions","then"]},"description":"Tested in order. The order follows the first segment whose conditions hold."},"otherwise":{"$ref":"#/components/schemas/FulfillmentRoutingNodeDraftDTO"}},"required":["type","segments","otherwise"],"description":"Sends the order down the first segment that matches it, or to `otherwise` when none does."},{"type":"object","properties":{"type":{"enum":["fulfill"],"type":"string"},"integrationIds":{"minItems":0,"maxItems":10,"type":"array","items":{"type":"string","minLength":1},"description":"Integrations tried in this order. The first that has every shippable item of the order in stock gets the whole order. When none has, the order waits for a restock.","example":["int_2mXGTxXIkqv4uSdbm8DJCzvHUIu"]}},"required":["type","integrationIds"],"description":"Sends the order to the first listed integration that can ship all of it."},{"type":"object","properties":{"type":{"enum":["not_sent"],"type":"string"}},"required":["type"],"description":"Ends routing: the order is not sent to any integration."}]},"DiscardFulfillmentRoutingDraftRequestDTO":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The draft `revision` you last read, or 0 when there was no draft. A save made since then is refused, so one editor never overwrites another unseen.","example":3}},"required":["revision"]},"PublishFulfillmentRoutingDraftRequestDTO":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The draft `revision` you last read, or 0 when there was no draft. A save made since then is refused, so one editor never overwrites another unseen.","example":3}},"required":["revision"]},"EvaluateFulfillmentRoutingRequestDTO":{"type":"object","properties":{"source":{"enum":["draft","live","version"],"type":"string","description":"Which tree to evaluate: the `draft`, the `live` version, or the `version` you name."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"With `source: version`, the version to evaluate.","example":2},"orderId":{"type":"string","minLength":1,"description":"An order to evaluate as it is now. Without it, give `country` and `items`.","example":"ord_2mXGTxXIkqv4uSdbm8DJCzvHUIu"},"country":{"enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"type":"string","description":"The ship-to country, as an ISO 3166-1 alpha-2 code.","example":"SA"},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","maxLength":200,"example":"FY-ROLLER"},"quantity":{"type":"integer","minimum":1,"maximum":100000,"example":2}},"required":["sku","quantity"]},"description":"The items to ship. A SKU listed twice counts its quantities together."}},"required":["source"]},"CreateIntegrationRequestDTO":{"type":"object","properties":{"type":{"enum":["shipbob","nextsmartship","shipaway"],"type":"string","description":"The type of 3PL integration"},"name":{"type":"string","maxLength":200,"description":"User-friendly name for the integration"},"apiConnected":{"type":"boolean","description":"Whether this integration talks to the provider over its API. Requires `configuration` with the provider's credentials, and gates everything that needs a live call: automatic order submission through a fulfillment route, inventory stock reads, and inbound webhooks"},"configuration":{"description":"Provider-specific configuration (credentials, channel IDs, etc.)","oneOf":[{"$ref":"#/components/schemas/IntegrationShipBobConfigDTO"},{"$ref":"#/components/schemas/IntegrationNextSmartShipConfigDTO"},{"$ref":"#/components/schemas/IntegrationShipAwayConfigDTO"}]},"description":{"type":"string","maxLength":1000,"description":"Free-text description of the integration"}},"required":["type","name"]},"IntegrationShipBobConfigDTO":{"type":"object","properties":{"type":{"default":"shipbob","enum":["shipbob"],"type":"string","description":"Integration type","example":"shipbob"},"environment":{"enum":["sandbox","production"],"type":"string","description":"Target environment for the integration provider (sandbox vs production)."},"channelId":{"type":"number","minimum":1,"description":"ShipBob channel ID. Auto-resolved from the API key when not provided.","example":12345},"apiKey":{"type":"string","description":"ShipBob personal access token (Bearer)","example":"pat_xxx"},"webhookSecret":{"type":"string","description":"Shared secret for verifying ShipBob webhook signatures"}},"required":["type","environment","apiKey"]},"IntegrationNextSmartShipConfigDTO":{"type":"object","properties":{"type":{"default":"nextsmartship","enum":["nextsmartship"],"type":"string","description":"Integration type","example":"nextsmartship"},"environment":{"enum":["sandbox","production"],"type":"string","description":"Target environment for the integration provider (sandbox vs production)."},"clientId":{"type":"string","description":"NextSmartShip OAuth client ID, issued in the NextSmartShip OMS under Settings → Developer Center","example":"nss_live_abc123def456"},"clientSecret":{"type":"string","description":"NextSmartShip OAuth client secret. Also the key NextSmartShip signs its webhook callbacks with."}},"required":["type","environment","clientId","clientSecret"]},"IntegrationShipAwayConfigDTO":{"type":"object","properties":{"type":{"default":"shipaway","enum":["shipaway"],"type":"string","description":"Integration type","example":"shipaway"},"environment":{"enum":["sandbox","production"],"type":"string","description":"Target environment for the integration provider (sandbox vs production)."},"warehouse":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,100}$","description":"The warehouse name in your ShipAway API address, `https://api.ongoingsystems.se/<warehouse>/`.","example":"ShipAway"},"goodsOwnerId":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Your goods owner ID at ShipAway.","example":123},"username":{"type":"string","description":"The API username ShipAway issued for your goods owner.","example":"api_user"},"password":{"type":"string","description":"The API password ShipAway issued for your goods owner."},"transporterCode":{"type":"string","description":"The courier code ShipAway gave you. Every order is sent with it. Leave it out to let ShipAway choose the courier.","example":"DPD"},"transporterServiceCode":{"type":"string","description":"The courier service code ShipAway gave you, sent with `transporterCode`.","example":"DPD_HOME"},"webhookToken":{"type":"string","minLength":32,"description":"The token ShipAway sends in the `X-Auth-Token` header of its shipment notifications. Generate a random value of at least 32 characters and give it to ShipAway with the webhook URL."}},"required":["type","environment","warehouse","goodsOwnerId","username","password"]},"UpdateIntegrationRequestDTO":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"description":"User-friendly name for the integration"},"active":{"type":"boolean","description":"Whether the integration is active"},"configuration":{"description":"Provider-specific configuration (credentials, channel IDs, etc.)","oneOf":[{"$ref":"#/components/schemas/IntegrationShipBobConfigDTO"},{"$ref":"#/components/schemas/IntegrationNextSmartShipConfigDTO"},{"$ref":"#/components/schemas/IntegrationShipAwayConfigDTO"}]},"description":{"type":"string","maxLength":1000,"description":"Free-text description of the integration"}}},"CreateIntegrationProductMappingDTO":{"type":"object","properties":{"integrationType":{"enum":["shipbob","nextsmartship","shipaway"],"type":"string","description":"The 3PL provider this mapping applies to"},"integrationId":{"type":"string","description":"The integration this mapping applies to, of the type in `integrationType`. Omit it for a mapping that applies to every integration of that type; a mapping for one integration takes precedence over it."},"sku":{"type":"string","description":"Internal SKU of the shippable item"},"externalReference":{"type":"string","description":"Value written into the provider import template to identify the product, e.g. the ShipBob product name"},"externalProductId":{"type":"string","description":"Product ID in the external 3PL system, if known"},"externalSku":{"type":"string","description":"SKU in the external 3PL system, if known"}},"required":["integrationType","sku","externalReference"]},"UpdateIntegrationProductMappingRequestDTO":{"type":"object","properties":{"sku":{"type":"string","description":"Internal SKU of the shippable item"},"externalReference":{"type":"string","description":"Value written into the provider import template to identify the product, e.g. the ShipBob product name"},"externalProductId":{"type":"string","description":"Product ID in the external 3PL system, if known"},"externalSku":{"type":"string","description":"SKU in the external 3PL system, if known"}}},"SetInventoryThresholdDTO":{"type":"object","properties":{"lowStockThreshold":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Units at or below which this SKU counts as low stock. 0 reports only an empty stock as low.","example":25}},"required":["lowStockThreshold"]},"CreateSecretKeyRequestDTO":{"type":"object","properties":{"note":{"type":"string"},"permissions":{"type":"array","items":{"enum":["order:read","order:create","order:update","order:export","order:bulk_fulfill","fulfillment:read","fulfillment:create","fulfillment:update","secret_key:read","secret_key:create","secret_key:update","secret_key:delete","merchant_config:read","merchant_config:update","integration:read","integration:create","integration:update","inventory:read","inventory:update","integration_product_mapping:read","integration_product_mapping:create","integration_product_mapping:update","integration_product_mapping:delete","fulfillment_route:read","fulfillment_route:create","fulfillment_route:update","webhook_subscriber:read","webhook_subscriber:create","webhook_subscriber:update","environment_secret:read","environment_secret:update","webhook:read"],"type":"string"}}},"required":["permissions"]},"UpdateSecretKeyRequestDTO":{"type":"object","properties":{"note":{"type":"string"},"permissions":{"type":"array","items":{"enum":["order:read","order:create","order:update","order:export","order:bulk_fulfill","fulfillment:read","fulfillment:create","fulfillment:update","secret_key:read","secret_key:create","secret_key:update","secret_key:delete","merchant_config:read","merchant_config:update","integration:read","integration:create","integration:update","inventory:read","inventory:update","integration_product_mapping:read","integration_product_mapping:create","integration_product_mapping:update","integration_product_mapping:delete","fulfillment_route:read","fulfillment_route:create","fulfillment_route:update","webhook_subscriber:read","webhook_subscriber:create","webhook_subscriber:update","environment_secret:read","environment_secret:update","webhook:read"],"type":"string"}},"active":{"type":"boolean","description":"Whether the secret key is active","example":true}}},"BulkFulfillOrderDTO":{"type":"object","properties":{"entries":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/BulkFulfillEntryDTO"},"description":"Entries to fulfill"}},"required":["entries"]},"BulkFulfillEntryDTO":{"type":"object","properties":{"orderId":{"type":"string","description":"The ID of the order to fulfill"},"trackingNumber":{"type":"string","description":"Carrier-issued tracking number for the shipment. The tracking URL is derived from it."},"trackingUrl":{"type":"string","description":"Tracking URL provided by the integration. When omitted it is derived from the tracking number."},"carrier":{"type":"string","description":"Carrier name (e.g. \"UPS\", \"USPS\", \"FedEx\", \"DHL\")."},"orderItemId":{"type":"string","description":"The ID of the specific order item to fulfill. If omitted, all unfulfilled items in the order are fulfilled."},"externalOrderId":{"type":"string","description":"Identifier of the order in the integration's own system (e.g. NextSmartShip's internal order id). When present it is stored on the order as its external order id."},"externalShipmentId":{"type":"string","description":"Identifier of the shipment in the integration's own system (e.g. ShipBob's shipment id). When present it is stored on the fulfillment."},"shippedAt":{"type":"string","format":"date-time","description":"Timestamp at which the shipment left the warehouse. Defaults to the current time when omitted."}},"required":["orderId","trackingNumber","carrier"]},"ImportOrdersDTO":{"type":"object","properties":{"paymentIds":{"minItems":1,"type":"array","items":{"type":"string"},"description":"The ODUS payment IDs to import as orders. Up to 100 per request."},"mode":{"default":"separate","enum":["separate","single"],"type":"string","description":"How to create orders. `separate` creates one order per payment; `single` creates one order holding the items of every payment (all payments must share the same customer and currency)."}},"required":["paymentIds"]},"BulkFulfillEntriesJobRequestDTO":{"type":"object","properties":{"entries":{"minItems":1,"maxItems":10000,"type":"array","items":{"$ref":"#/components/schemas/BulkFulfillEntryDTO"},"description":"Entries to fulfill, one per shipment or per order item, exactly as `POST /orders/bulk-fulfill` takes them. At most 10000 rows, and the request as a whole must be under 4 MB — a file of unusually wide rows can reach the size limit first, and is refused with `413` before any of these rows are read. Split a file past either limit and start one job per part."}},"required":["entries"]},"BulkFulfillJobRequestDTO":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}},"description":"Rows parsed from the integration's shipment file, one object per row, keyed by column name. At most 10000 rows, and the request as a whole must be under 4 MB — a file of unusually wide rows can reach the size limit first, and is refused with `413` before any of these rows are read. Split a file past either limit and start one job per part. Columns the integration's parser does not use are ignored, so dropping them makes a wide file fit."}},"required":["rows"]},"FulfillOrderRequestDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FulfillItemInputDTO"},"description":"Items to fulfill"},"trackingNumber":{"type":"string","description":"Carrier-issued tracking number. The tracking URL is derived from it."},"carrier":{"type":"string","description":"Carrier name (e.g. UPS, USPS)"},"trackingUrl":{"type":"string","description":"Tracking URL for the shipment. When omitted it is derived from the tracking number."}},"required":["items","trackingNumber","carrier"]},"FulfillItemInputDTO":{"type":"object","properties":{"orderItemId":{"type":"string","description":"The ID of the order item being fulfilled"},"quantity":{"type":"number","minimum":1,"description":"Quantity of this order item to fulfill"}},"required":["orderItemId","quantity"]},"CancelOrderRequestDTO":{"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/CancelOrderItemInputDTO"},"description":"Items to cancel, each with the quantity to cancel. Omit when cancelling the whole order."},"cancelWholeOrder":{"enum":[true],"type":"boolean","description":"Set to true to cancel the entire order instead of naming items. The only way to cancel an order with nothing shippable on it, which has no item to name. Send it or `items`, never both."}},"oneOf":[{"required":["items"]},{"required":["cancelWholeOrder"]}]},"CancelOrderItemInputDTO":{"type":"object","properties":{"orderItemId":{"type":"string","description":"The ID of the order item being cancelled"},"quantity":{"type":"number","minimum":1,"description":"Quantity of this order item to cancel"}},"required":["orderItemId","quantity"]},"AddOrderItemsRequestDTO":{"type":"object","properties":{"paymentIds":{"minItems":1,"type":"array","items":{"type":"string"},"description":"The ODUS payment IDs whose items are added to the order. Up to 10 per request."}},"required":["paymentIds"]},"OrderExportRequestDTO":{"type":"object","properties":{"type":{"enum":["orders","order-items"],"type":"string","description":"What each row of the file is: an order, or a shippable order item. Default `orders`. Ignored when `integrationType` is set.","example":"orders"},"columns":{"type":"array","items":{"type":"string"},"description":"The column keys to include, from `GET /orders/export/columns`. Required columns are always written. Default: the required columns only. Ignored when `integrationType` is set.","example":["customerEmail","shippingAddress.country"]},"integrationType":{"enum":["shipbob","nextsmartship","shipaway"],"type":"string","description":"Format the file for this integration's bulk-import template instead (CSV, XLSX or a ZIP of XLSX files, as `GET /orders/export/integration-formats` reports). The merchant account must have an active integration of this type.","example":"shipbob"},"sortBy":{"enum":["id","createdAt","updatedAt","status","paymentId","amount","paymentAuthorizedAt"],"type":"string","description":"Field the rows are ordered by. Default `createdAt`.","example":"createdAt"},"sortDirection":{"enum":["asc","desc"],"type":"string","description":"Sort direction. Default `desc`.","example":"desc"},"filters":{"type":"object","properties":{"$or":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}}}},"$and":{"minItems":1,"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}}}}},"additionalProperties":{"anyOf":[{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},{"type":"array","items":{"type":"object","additionalProperties":{"type":"object","properties":{"eq":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"ne":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]},{"minItems":1,"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"enum":[null],"type":"string","nullable":true}]}}]},"gt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"gte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lt":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"lte":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"like":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"in":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]},"nin":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}}}}]},"description":"Which orders to export, in the shape the `GET /orders` query string carries filters: each key is a field name and its value an object of operators (`eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `like`, `in`, `nin`) with a value or list of values, plus optional `$or` / `$and` lists of such conditions. A condition in any other shape is refused rather than ignored. Default: every order.","example":{"status":{"in":["unfulfilled","partially_fulfilled"]},"createdAt":{"gte":"2026-05-01T00:00:00.000Z","lt":"2026-06-01T00:00:00.000Z"}}}}},"UpdateMerchantConfigRequestDTO":{"type":"object","properties":{"bundlingWindowMinutes":{"type":"number","minimum":0,"description":"Time window in minutes for bundling payments into the same order. 0 disables cross-payment bundling.","example":30},"lowStockThreshold":{"type":"number","minimum":0,"description":"Units at or below which a SKU with no threshold of its own counts as low stock in the inventory view.","example":10},"orderAgeOutDays":{"type":"number","minimum":0,"description":"Number of days after payment authorization at which an order whose payment was captured and still owes fulfillment is marked aged out. An authorization that was never captured never ages out. 0 disables aging out.","example":30}}},"CancelOrderWithRefundRequestDTO":{"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/CancelOrderItemInputDTO"},"description":"Items to cancel, each with the quantity to cancel. Omit when cancelling the whole order."},"cancelWholeOrder":{"enum":[true],"type":"boolean","description":"Set to true to cancel the entire order instead of naming items. The only way to cancel an order with nothing shippable on it, which has no item to name. Send it or `items`, never both."},"refundPayments":{"type":"boolean","description":"Whether to refund, or void, the payments of what you cancel. A payment is refunded in full, so it is refunded only when nothing it paid for is left to ship and none of it has shipped. When this is `true` and the items you cancel leave part of a payment, the request is refused. When `false`, nothing is refunded and the customer keeps paying for what you cancel."}},"required":["refundPayments"],"oneOf":[{"required":["items"]},{"required":["cancelWholeOrder"]}]},"ProvisioningInProgress":{"type":"object","required":["status","merchantAccountId"],"properties":{"status":{"type":"string","enum":["provisioning"],"description":"Signals the merchant OMS environment is still being provisioned."},"merchantAccountId":{"type":"string","description":"The merchant account whose OMS environment is being provisioned.","example":"dAI3aa87ROOeupeBCjNSKCOBOisBCYjB"}}}}},"openapi":"3.0.0","paths":{"/environment-secrets":{"get":{"description":"Retrieve the current environment secrets configuration","operationId":"EnvironmentSecretController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSecretDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get environment secrets","tags":["Environment Secrets"]},"post":{"description":"Create or update the environment secrets configuration","operationId":"EnvironmentSecretController_upsert","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertEnvironmentSecretRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSecretDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Upsert environment secrets","tags":["Environment Secrets"]}},"/webhooks":{"get":{"description":"Retrieve a paginated list of webhook delivery records","operationId":"WebhookController_findAllPaginated","parameters":[{"name":"id","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"createdAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"firstDispatchedAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"lastDispatchedAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"abandonedAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"success","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"boolean"},"ne":{"type":"boolean"}}}},{"name":"subscriber","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","firstDispatchedAt","lastDispatchedAt","abandonedAt","attempts"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookResponseDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find all Webhook Deliveries","tags":["Webhooks"]}},"/webhooks/{id}":{"get":{"description":"Retrieve a webhook delivery record by its ID","operationId":"WebhookController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponseDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one Webhook Delivery","tags":["Webhooks"]}},"/webhook-subscribers":{"get":{"description":"Retrieve a paginated list of Webhook Subscribers","operationId":"WebhookSubscriberController_findAllPaginated","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","updatedAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSubscriberDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find all Webhook Subscribers","tags":["Webhook Subscribers"]},"post":{"description":"Create a new Webhook Subscriber","operationId":"WebhookSubscriberController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookSubscriberRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriberWithSecretDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a Webhook Subscriber","tags":["Webhook Subscribers"]}},"/webhook-subscribers/{id}":{"get":{"description":"Retrieve a Webhook Subscriber by its ID","operationId":"WebhookSubscriberController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriberDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one Webhook Subscriber","tags":["Webhook Subscribers"]},"post":{"description":"Update an existing Webhook Subscriber by its ID","operationId":"WebhookSubscriberController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookSubscriberRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriberDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update a Webhook Subscriber","tags":["Webhook Subscribers"]}},"/fulfillments":{"get":{"description":"Returns a paginated list of all fulfillments across orders","operationId":"FulfillmentController_findAll","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","shippedAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List all fulfillments","tags":["Fulfillments"]}},"/fulfillments/{id}":{"get":{"description":"Retrieve a fulfillment by its ID with items populated","operationId":"FulfillmentController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one Fulfillment","tags":["Fulfillments"]}},"/fulfillments/{id}/tracking":{"post":{"description":"Update the tracking number and/or URL for a fulfillment","operationId":"FulfillmentController_updateTracking","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFulfillmentTrackingRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update fulfillment tracking","tags":["Fulfillments"]}},"/fulfillment-routing":{"get":{"description":"Returns whether orders are routed through the fulfillment routing tree, its live version and the draft being edited.","operationId":"FulfillmentRoutingController_findState","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get the fulfillment routing","tags":["Fulfillment Routing"]}},"/fulfillment-routing/draft":{"post":{"description":"Saves the tree as the draft, creating the draft if there is none. A draft may be unfinished; it is checked in full when you publish it. Send the `revision` you last read: a save made by someone else since then is not overwritten.","operationId":"FulfillmentRoutingController_saveDraft","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveFulfillmentRoutingDraftRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Save the fulfillment routing draft","tags":["Fulfillment Routing"]}},"/fulfillment-routing/draft/delete":{"post":{"description":"Deletes the draft. The live version is not changed. Send the `revision` you last read: a draft someone else saved since then is not deleted.","operationId":"FulfillmentRoutingController_discardDraft","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscardFulfillmentRoutingDraftRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Discard the fulfillment routing draft","tags":["Fulfillment Routing"]}},"/fulfillment-routing/draft/publish":{"post":{"description":"Publishes the draft as the next version and makes it live. Every segment needs a condition, every condition a value, and every fulfill block an integration connected to its provider.","operationId":"FulfillmentRoutingController_publishDraft","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishFulfillmentRoutingDraftRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Publish the fulfillment routing draft","tags":["Fulfillment Routing"]}},"/fulfillment-routing/versions":{"get":{"description":"Returns the 100 newest published versions, newest first, without their trees.","operationId":"FulfillmentRoutingController_listVersions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingVersionListDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List the fulfillment routing versions","tags":["Fulfillment Routing"]}},"/fulfillment-routing/versions/{number}":{"get":{"description":"Returns one published version with its tree.","operationId":"FulfillmentRoutingController_findVersion","parameters":[{"name":"number","required":true,"in":"path","schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingVersionDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get a fulfillment routing version","tags":["Fulfillment Routing"]}},"/fulfillment-routing/versions/{number}/make-live":{"post":{"description":"Makes an earlier version live again. The version is not copied, and the draft is kept.","operationId":"FulfillmentRoutingController_makeLive","parameters":[{"name":"number","required":true,"in":"path","schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Make a fulfillment routing version live","tags":["Fulfillment Routing"]}},"/fulfillment-routing/activate":{"post":{"description":"Routes orders through the live version from the next submission on, instead of the fulfillment routes. Needs a published version. Making another version live later changes the routing at once.","operationId":"FulfillmentRoutingController_activate","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Turn fulfillment routing on","tags":["Fulfillment Routing"]}},"/fulfillment-routing/deactivate":{"post":{"description":"Routes orders through the fulfillment routes again, from the next submission on. The versions and the draft are kept.","operationId":"FulfillmentRoutingController_deactivate","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Turn fulfillment routing off","tags":["Fulfillment Routing"]}},"/fulfillment-routing/evaluate":{"post":{"description":"Shows where the draft, the live version or a version you name would send an order, against current stock: an existing order as it is now, or a ship-to country and items. Nothing is sent to an integration and nothing is saved. Needs permission to view stock levels too, and to view orders when you give `orderId`.","operationId":"FulfillmentRoutingController_evaluate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateFulfillmentRoutingRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentRoutingEvaluationDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Test the fulfillment routing","tags":["Fulfillment Routing"]}},"/fulfillment-routing/integrations":{"get":{"description":"Returns the integrations a fulfillment route or a fulfill block can name: those that are active and connected to their provider, sorted by name, with their ids and names only. Needs permission to view fulfillment routes, not integrations.","operationId":"FulfillmentRoutingController_listRoutableIntegrations","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutableIntegrationListDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List the integrations orders can be routed to","tags":["Fulfillment Routing"]}},"/integrations":{"get":{"description":"Returns a paginated list of 3PL integrations","operationId":"IntegrationController_findAllPaginated","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","updatedAt","name","type","active"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List all integrations","tags":["Integrations"]},"post":{"description":"Create a new 3PL integration","operationId":"IntegrationController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create an integration","tags":["Integrations"]}},"/integrations/{id}":{"get":{"description":"Retrieve an integration by its ID","operationId":"IntegrationController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one integration","tags":["Integrations"]},"post":{"description":"Update an existing 3PL integration by its ID","operationId":"IntegrationController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIntegrationRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update an integration","tags":["Integrations"]}},"/integrations/{id}/channels":{"get":{"description":"Returns the channels reachable with the integration credentials, including granted scopes. Only ShipBob integrations are supported.","operationId":"IntegrationController_getChannels","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List ShipBob channels available to this integration","tags":["Integrations"]}},"/integrations/{id}/products":{"get":{"description":"Returns a paginated list of the products reachable with the integration credentials, used to configure product mappings for order exports. Products already mapped to a SKU are omitted. A product added, renamed or removed at the provider can take a few minutes to be reflected here. Check `complete` before treating the list, or an empty search result, as the provider's full catalogue.","operationId":"IntegrationController_getProducts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"Case-insensitive substring of the product name or its SKU in the external system.","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}},"contains":{"type":"string"}}}},{"name":"sku","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}},"contains":{"type":"string"}}}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: name)","schema":{"enum":["name","sku"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"$ref":"#/components/schemas/PageMetaDTO"},"data":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationExternalProductDTO"}},"complete":{"type":"boolean","description":"Whether this is the provider's whole catalogue. When `false`, the provider holds more products than this endpoint reads, so both the list and the `search` parameter cover only part of it — a product that is missing may still exist at the provider, and its reference can be used to create a mapping directly.","example":true}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List products in the external 3PL system","tags":["Integrations"]}},"/integration-product-mappings":{"get":{"description":"Returns a paginated list of product mappings between internal SKUs and external 3PL product references","operationId":"IntegrationProductMappingController_findAllPaginated","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","updatedAt","integrationType","sku"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationProductMappingDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List all integration product mappings","tags":["Integration Product Mappings"]},"post":{"description":"Map an internal SKU to the product reference a 3PL provider expects in its order import template","operationId":"IntegrationProductMappingController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationProductMappingDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationProductMappingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create an integration product mapping","tags":["Integration Product Mappings"]}},"/integration-product-mappings/{id}":{"get":{"description":"Retrieve an integration product mapping by its ID","operationId":"IntegrationProductMappingController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationProductMappingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one integration product mapping","tags":["Integration Product Mappings"]},"post":{"description":"Update an existing integration product mapping by its ID","operationId":"IntegrationProductMappingController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIntegrationProductMappingRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationProductMappingDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update an integration product mapping","tags":["Integration Product Mappings"]},"delete":{"description":"Delete an integration product mapping by its ID","operationId":"IntegrationProductMappingController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRemovedDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Delete an integration product mapping","tags":["Integration Product Mappings"]}},"/inventory":{"get":{"description":"Returns a paginated list with one row per SKU: the catalogue products carrying it, the quantity each connected integration holds, the combined total, and a stock status. Two products sharing a SKU share one row. Filter by `productId` to list the SKU rows a product is on. Served from a cached snapshot — `GET /inventory/sources` reports when it was taken and `POST /inventory/refresh` rebuilds it.","operationId":"InventoryController_findAllPaginated","parameters":[{"name":"sku","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}},"contains":{"type":"string"}}}},{"name":"productId","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}},"contains":{"type":"string"}}}},{"name":"status","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}},"contains":{"type":"string"}}}},{"name":"totalQuantity","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"number"},"ne":{"type":"number"},"gt":{"type":"number"},"gte":{"type":"number"},"lt":{"type":"number"},"lte":{"type":"number"},"in":{"type":"array","items":{"type":"number"}},"nin":{"type":"array","items":{"type":"number"}},"contains":{"type":"number"}}}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: sku)","schema":{"enum":["sku","totalQuantity","status"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"$ref":"#/components/schemas/PageMetaDTO"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SkuInventoryDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List stock by SKU across 3PL integrations","tags":["Inventory"]}},"/inventory/products/{sku}":{"get":{"description":"Returns one SKU with the catalogue products carrying it, the quantity each connected integration holds, the combined total, its stock status and the threshold that status was resolved against. The figures are the ones `GET /inventory` reports for the same SKU, as of the same `refreshedAt`. Answers `404` when no shippable product in the catalogue carries the SKU.","operationId":"InventoryController_findOne","parameters":[{"name":"sku","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkuInventoryDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get one SKU’s inventory","tags":["Inventory"]}},"/inventory/products/{sku}/threshold":{"post":{"description":"Sets the number of units at or below which this SKU counts as low stock, replacing the merchant-wide default for it, and returns the SKU with its status recomputed against the new threshold. Only `lowStockThreshold` and `status` change; the quantities and `refreshedAt` are unchanged, since no provider is asked again.","operationId":"InventoryController_setThreshold","parameters":[{"name":"sku","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetInventoryThresholdDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkuInventoryDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Set a SKU’s low-stock threshold","tags":["Inventory"]}},"/inventory/sources":{"get":{"description":"Reports which integrations the inventory list covers, whether each one answered the last stock read, when that read happened, and the threshold below which a SKU counts as low stock.","operationId":"InventoryController_getSources","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventorySourcesDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Describe the inventory view","tags":["Inventory"]}},"/inventory/refresh":{"post":{"description":"Asks every connected integration for its current stock and replaces the cached snapshot, then reports the same metadata as `GET /inventory/sources`. Read-only towards the providers.","operationId":"InventoryController_refresh","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventorySourcesDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Refresh inventory","tags":["Inventory"]}},"/search":{"get":{"description":"Finds orders by id, by the identifier your fulfillment provider assigned, or by customer email, and fulfillments by id or tracking number. Each list holds at most 5 results, and a list is empty when the credentials used may not read that kind of record. A query matching too many records is refused; make it longer or more specific.","operationId":"SearchController_search","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":3,"description":"Text to search for. Matches an order id, a fulfillment id, the order identifier assigned by your fulfillment provider, a customer email or a tracking number. A payment id finds the order holding its items, and an order id also returns its payments. At least 3 characters.","example":"ord_2abc3def4ghi5jkl"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultsDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Search orders and fulfillments","tags":["Search"]}},"/secret-keys":{"get":{"description":"Retrieve a paginated list of Secret Keys","operationId":"SecretKeyController_findAllPaginated","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","updatedAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/SecretKeyPartialDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find all Secret Keys","tags":["Secret Keys"]},"post":{"description":"Create a new Secret Key","operationId":"SecretKeyController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSecretKeyRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretKeyWithKeyDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a Secret Key","tags":["Secret Keys"]}},"/secret-keys/{id}":{"get":{"description":"Retrieve a Secret Key by its ID","operationId":"SecretKeyController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretKeyDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one Secret Key","tags":["Secret Keys"]},"post":{"description":"Update an existing Secret Key by its ID","operationId":"SecretKeyController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSecretKeyRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretKeyDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update a Secret Key","tags":["Secret Keys"]},"delete":{"description":"Delete a Secret Key by its ID","operationId":"SecretKeyController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRemovedDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Delete a Secret Key","tags":["Secret Keys"]}},"/orders":{"get":{"description":"Returns a paginated list of orders","operationId":"OrderController_findAllPaginated","parameters":[{"name":"paymentAuthorizedAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"createdAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time"},"ne":{"type":"string","format":"date-time"},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"agedOutAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time","nullable":true},"ne":{"type":"string","format":"date-time","nullable":true},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}}},{"name":"holdStatus","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","nullable":true},"ne":{"type":"string","nullable":true},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}},"description":"Filters orders by `holdStatus`, where they stand with a hold your fulfillment provider has put on them. `holdStatus[ne]=null` selects every order on hold. An order your provider holds because it could not charge you — your prepaid balance with NextSmartShip, or your payment method with ShipBob — is `held`, with `holdReasonCode` `insufficient_funds`."},{"name":"recipientFaults","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","nullable":true},"ne":{"type":"string","nullable":true}}},"description":"Filters orders by whether they carry recorded recipient faults. Compare it with `null`: `recipientFaults[ne]=null` selects the orders with faults recorded, and `recipientFaults[eq]=null` the orders with none recorded, which includes orders not checked yet. To check one order now, call `GET /orders/{orderId}/recipient-validation`."},{"name":"cancelledUnitsShippedAt","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","format":"date-time","nullable":true},"ne":{"type":"string","format":"date-time","nullable":true},"gt":{"type":"string","format":"date-time"},"gte":{"type":"string","format":"date-time"},"lt":{"type":"string","format":"date-time"},"lte":{"type":"string","format":"date-time"},"in":{"type":"array","items":{"type":"string","format":"date-time"}},"nin":{"type":"array","items":{"type":"string","format":"date-time"}}}},"description":"Filters orders by when your fulfillment provider first reported shipping units of them that you had cancelled. `cancelledUnitsShippedAt[ne]=null` selects every order with such a shipment."},{"name":"tplSubmissionStatus","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","nullable":true},"ne":{"type":"string","nullable":true},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}},"description":"Filters orders by the state of their automatic submission to your fulfillment provider: `pending`, `submitted`, `failed` (another attempt is scheduled), `dead_letter`, or a value starting with `skipped_` for an order sent to no provider. An order the provider refused because your prepaid balance with it could not cover it is on hold with `holdReasonCode` `insufficient_funds` — `submitted` when the provider has it, `failed` with nothing scheduled when it refused the order before creating it; filter on `holdStatus` for those. `dead_letter` means submission stopped: the provider refused the order, or every attempt failed. `GET /orders/{id}` returns why, in `lastSubmissionError`. If the order has shipped nothing and has no `externalOrderId`, correcting the customer’s shipping address submits it again; if the provider refuses it again, it returns to `dead_letter`. Combine with `status` to leave out orders fulfilled or cancelled since."},{"name":"amount","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"number"},"ne":{"type":"number"},"gt":{"type":"number"},"gte":{"type":"number"},"lt":{"type":"number"},"lte":{"type":"number"},"in":{"type":"array","items":{"type":"number"}},"nin":{"type":"array","items":{"type":"number"}}}}},{"name":"status","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"externalOrderId","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","nullable":true},"ne":{"type":"string","nullable":true},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"customerId","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"customerEmail","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"shippingAddress.country","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"orderItems.paymentId","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"orderItems.productId","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"orderItems.sku","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string","nullable":true},"ne":{"type":"string","nullable":true},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}}},{"name":"orderItems.productName","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"ne":{"type":"string"},"like":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"nin":{"type":"array","items":{"type":"string"}}}},"deprecated":true,"description":"Filters orders by the product name recorded on an order item. Use `orderItems.productId` instead, which identifies a product exactly where two products share a name."},{"name":"fulfillmentIntegrationType","required":false,"in":"query","style":"deepObject","explode":true,"schema":{"type":"object","properties":{"eq":{"type":"string"},"in":{"type":"array","items":{"type":"string"}}}},"description":"Filters orders by who fulfills them, naming the provider (for example `shipbob`) rather than the merchant’s own connection. `none` selects orders with no fulfillment connection recorded. Several values may be given with `in`, and they are combined as alternatives."},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt","updatedAt","status","paymentId","amount","paymentAuthorizedAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderPartialDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List all Orders","tags":["Orders"]}},"/orders/export/columns":{"get":{"description":"Returns available columns for order and order-item CSV exports","operationId":"OrderController_getExportColumns","parameters":[],"responses":{"200":{"description":""},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get export column definitions","tags":["Orders"]}},"/orders/export/integration-formats":{"get":{"description":"Returns the integration types that the merchant has at least one active integration for, and which can therefore be used as an export format.","operationId":"OrderController_getIntegrationExportFormats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationExportFormatsResponseDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List available integration export formats","tags":["Orders"]}},"/orders/export/integration-validation":{"get":{"description":"Predicts which of the orders matching the current filters the export would write, judging each order on its shippable items only. An order is skipped when it has no shippable item; a SKU the merchant has not mapped falls back to the format’s default value and never takes its order out of the export.","operationId":"OrderController_validateIntegrationExport","parameters":[{"name":"integrationType","required":true,"in":"query","schema":{"enum":["shipbob","nextsmartship"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationExportValidationResponseDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Validate orders for an integration export","tags":["Orders"]}},"/orders/{id}":{"get":{"description":"Retrieve an order by its ID, including order items","operationId":"OrderController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find one Order","tags":["Orders"]}},"/orders/{orderId}/fulfillments":{"get":{"description":"Returns a paginated list of fulfillments for the specified order","operationId":"OrderController_findFulfillments","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List fulfillments for an order","tags":["Orders"]}},"/orders/{orderId}/history":{"get":{"description":"Returns a paginated, append-only history of the order's lifecycle transitions — creation, payment capture, 3PL submission attempts, failures and skips, fulfillments, status changes, cancellation, age-out — each with when it happened, curated context, and what kind of thing caused it. Orders created before history recording was introduced start with an empty history.","operationId":"OrderController_findHistory","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["id","createdAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderHistoryEntryDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List history for an order","tags":["Orders"]}},"/orders/{orderId}/recipient-validation":{"get":{"description":"Checks the order's recipient details — name, company, address and phone — against a fulfillment provider's rules, and returns every problem found. The order is neither sent nor changed, so you can check it at any time, for example after correcting the customer's address. An order that goes to NextSmartShip also carries these problems as `recipientFaults` while it still owes fulfillment. Only `nextsmartship` can be checked.","operationId":"OrderController_validateRecipient","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}},{"name":"integrationType","required":true,"in":"query","description":"The fulfillment provider whose rules to check against.","schema":{"enum":["nextsmartship"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientValidationResponseDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Validate an order's recipient","tags":["Orders"]}},"/orders/bulk-fulfill":{"post":{"description":"Fulfill multiple orders at once from a parsed CSV import, inside the request. Each entry specifies an order, tracking URL, and optionally a specific order item. For more than a few hundred entries, or to keep a record of the run, start a job with `POST /orders/bulk-fulfill/jobs` instead.","operationId":"OrderController_bulkFulfill","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillOrderDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillResultDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Bulk fulfill orders","tags":["Orders"]}},"/orders/import":{"post":{"description":"Creates orders from existing payments selected by id. The import is all-or-nothing: if any payment is already imported, missing, not succeeded, reversed, charged back, failed to capture, or has no line items belonging to a product enabled for Order Management, no orders are created and every failing payment is reported.","operationId":"OrderController_importOrders","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportOrdersDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportOrdersResultDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Import orders from payments","tags":["Orders"]}},"/orders/bulk-fulfill/integration-formats":{"get":{"description":"Returns the integration types for which the merchant has at least one active integration AND a bulk-fulfill CSV parser is registered.","operationId":"OrderController_getBulkFulfillIntegrationFormats","parameters":[],"responses":{"200":{"description":""},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List available integration bulk-fulfill formats","tags":["Orders"]}},"/orders/bulk-fulfill/integration-formats/{type}/template":{"get":{"description":"Returns the required and optional CSV column names that the bulk-fulfill parser for the given integration accepts.","operationId":"OrderController_getBulkFulfillIntegrationTemplate","parameters":[{"name":"type","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillTemplateDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get integration bulk-fulfill CSV template","tags":["Orders"]}},"/orders/bulk-fulfill/jobs":{"post":{"description":"Starts a background bulk fulfill of the given entries — the same ones `POST /orders/bulk-fulfill` takes — and returns its record straight away, with `status` `pending` and the `jobId` to poll on `GET /async-jobs/{id}` until `state` is `completed` or `failed`. A completed job reports, under `result`, the same summary the synchronous route returns, including the entries that could not be fulfilled; a failed job reports why under `error` and fulfilled nothing beyond what it had already recorded. Unlike the synchronous route the work survives a restart and is never cut short by a request timeout, and the record is listed by `GET /order-jobs`. The request is limited both by entry count and by size (4 MB), and a request over the size limit is refused with `413` before it reaches this operation. One bulk fulfill runs at a time per merchant account; starting another while one is running is refused, and the refusal names the job already running.","operationId":"OrderController_startBulkFulfill","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillEntriesJobRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillJobDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Start a bulk fulfill","tags":["Orders"]}},"/orders/bulk-fulfill/integration/{type}/jobs":{"post":{"description":"Starts a background bulk fulfill of the uploaded rows, read with the parser for the given integration (a ShipBob \"Order Details\" export, a NextSmartShip shipment export), and returns its record straight away, with `status` `pending` and the `jobId` to poll on `GET /async-jobs/{id}` until `state` is `completed` or `failed` — both are final. A completed job reports, under `result`, what it fulfilled, skipped and could not fulfill, row by row; a failed job reports why under `error` and fulfilled nothing beyond what it had already recorded. The work survives a restart and is never cut short by a request timeout, and the record is listed by `GET /order-jobs`. The request is limited both by row count and by size (4 MB), and a request over the size limit is refused with `413` before it reaches this operation. One bulk fulfill runs at a time per merchant account; starting another while one is running is refused, and the refusal names the job already running.","operationId":"OrderController_startBulkFulfillIntegration","parameters":[{"name":"type","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillJobRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFulfillJobDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Start a bulk fulfill from an integration file","tags":["Orders"]}},"/orders/{orderId}/fulfill":{"post":{"description":"Fulfill one or more order items with specified quantities. An order whose `status` is `cancelled` cannot be fulfilled, and a request to fulfill it is refused.","operationId":"OrderController_fulfill","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillOrderRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Fulfill an order","tags":["Orders"]}},"/orders/{orderId}/cancel":{"post":{"description":"Cancels the given quantities of one or more order items. Cancelling every remaining unit of every shippable item cancels the whole order. Send `cancelWholeOrder: true` instead of `items` to cancel the order outright, which is the only way to cancel an order that has nothing shippable on it; that form is refused once any unit has shipped, and refused a second time on an order already cancelled this way. If your fulfillment provider already has the order (`externalOrderId` is set), only the whole order can be cancelled, because providers cancel an order as a whole and never single items; the order is then cancelled with the provider for you. Cancelling here refunds nobody: to refund the payments of what you cancel, use `POST /orders/{orderId}/cancellations`.","operationId":"OrderController_cancel","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOrderRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Cancel an order or some of its items","tags":["Orders"]}},"/orders/{orderId}/add-items":{"post":{"description":"Adds order items from existing payments (selected by id) to an unfulfilled order that has not been sent to your fulfillment provider. The order qualifies while no submission has been attempted (`lastSubmissionAttemptedAt` is empty) and its `tplSubmissionStatus` is either `pending` with `submitToTplAt` still ahead, or one no provider receives the order from: `null`, `skipped_no_route`, `skipped_no_country`, `skipped_no_shippable_items`, `skipped_route_conflict`, `skipped_integration_inactive` or `skipped_insufficient_stock`. Any other order is refused with a `400`, since your provider would never receive the added items: import the payments as an order of their own with `POST /orders/import` instead. All-or-nothing: if any payment is already imported, missing, not succeeded, reversed, charged back, failed to capture, has no line items belonging to a product enabled for Order Management, or does not match the order's customer/currency, no items are added and every failing payment is reported.","operationId":"OrderController_addItems","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrderItemsRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrderItemsResultDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Add items to an order from payments","tags":["Orders"]}},"/orders/{orderId}/retry-submission":{"post":{"description":"Sends an order your fulfillment provider could not take to the provider again, with the shipping address and customer details the order carries now: a `tplSubmissionStatus` `dead_letter` order, or one on hold with `holdReasonCode` `insufficient_funds` that the provider does not have (`externalOrderId` is empty). If the provider refused the order for its customer details, correct them first, then retry. An order the provider refused for lack of prepaid funds is sent again automatically once your balance with the provider covers it; to send it sooner, for example right after you top up, resubmit it with `POST /orders/{orderId}/resubmit` while the provider has it (`externalOrderId` is set), or retry it here while it does not. The order is sent shortly afterwards, usually within minutes, rather than during this request: `tplSubmissionStatus` becomes `failed` with `submitToTplAt` set, then `submitted` once the provider accepts the order. If the provider refuses it again, it returns to `dead_letter` with the new reason in `lastSubmissionError`, or goes on hold for funds if your balance still cannot cover it; a provider that cannot be reached is retried automatically, as on the first submission, until the order runs out of attempts. Only an `unfulfilled` order can be retried, and only while the provider does not already have it (`externalOrderId` is empty). Retry only an order you have not shipped some other way, for example by importing it into your provider yourself: a retry sends it again. The order's history records the retry and the provider's answer.","operationId":"OrderController_retrySubmission","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retry sending an order to its fulfillment provider","tags":["Orders"]}},"/order-exports":{"post":{"description":"Starts a background export of the orders matching the given parameters and returns its record straight away, with `status` `pending` and the `jobId` to poll on `GET /async-jobs/{id}`. When the job completes, the record gains `rowCount` and `artifact`, and the file can be downloaded from `GET /async-jobs/artifacts/{type}/{name}` for 90 days. The record is listed by `GET /order-jobs` alongside the account's bulk fulfills. One export runs at a time per merchant account; starting another while one is running is refused. To run a past export again, post its `parameters` back here or call `POST /order-jobs/{id}/rerun`.","operationId":"OrderExportController_start","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderExportRequestDTO"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderExportDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Start an order export","tags":["Orders"]}},"/order-jobs":{"get":{"description":"Returns every order export and bulk fulfill this merchant account has started as a background job — through `POST /order-exports`, `POST /orders/bulk-fulfill/jobs` or `POST /orders/bulk-fulfill/integration/{type}/jobs` — newest first, pending, completed and failed alike, of the kinds the caller is permitted to start: exports with `order:export`, bulk fulfills with `order:bulk_fulfill`. A bulk fulfill run inside the request with `POST /orders/bulk-fulfill` leaves no record here. Each record says what it was (`kind`), what it was run with (`parameters`), and how it ended. An export's `artifactAvailable` says whether its file can still be downloaded (90 days); a bulk fulfill's `inputAvailable` says whether its rows are still stored and so whether it can be run again (90 days).","operationId":"OrderJobController_findAllPaginated","parameters":[{"name":"sortBy","required":false,"in":"query","description":"Field to sort by (default: createdAt)","schema":{"enum":["createdAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort direction (default: desc)","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number: a whole number of 1 or more (default: 1). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Items per page: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400.","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Items per page for cursor pagination: a whole number from 1 to 100 (default: 10). Any other value is refused with a 400. Sending it switches the response to cursor mode; omit it for offset pagination.","schema":{"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response’s `nextCursor` or `prevCursor`. Only read when `limit` is present, and must be used with the same `sortBy`/`sortDirection` it was issued for.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"pagination":{"oneOf":[{"$ref":"#/components/schemas/PageMetaDTO"},{"$ref":"#/components/schemas/CursorPageMetaDTO"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderJobDTO"}}}}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List past exports and bulk fulfills","tags":["Orders"]}},"/order-jobs/{id}/rerun":{"post":{"description":"Starts a new job with a new record from a past one, and returns that record with `status` `pending`. An export is run again from its `parameters` against the current orders, exactly as posting them to `POST /order-exports` would — its file can differ from the original. A bulk fulfill is run again on the very rows it was given, which are stored for 90 days after it was started; once they are gone the request is refused and the file has to be uploaded again. Every shipment the original recorded is skipped as a duplicate, so re-running a bulk fulfill only records what it did not get to. Takes the permission that starting the kind takes. One job of each kind runs at a time per merchant account; a re-run while one is running is refused.","operationId":"OrderJobController_rerun","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderJobDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Run a past export or bulk fulfill again","tags":["Orders"]}},"/merchant-configs":{"get":{"description":"Retrieve the merchant configuration for the current merchant.","operationId":"MerchantConfigController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantConfigDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Find the Merchant Configuration","tags":["Merchant Configuration"]}},"/merchant-configs/{id}":{"post":{"description":"Update an existing Merchant Configuration by its ID","operationId":"MerchantConfigController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMerchantConfigRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantConfigDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Update a Merchant Configuration","tags":["Merchant Configuration"]}},"/tenants/status":{"get":{"description":"Reports the merchant account's `oms` entitlement and whether order creation from payments is currently active for the calling merchant.","operationId":"TenantProvisioningController_status","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantStatusReportDTO"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get OMS addon status","tags":["OMS Addon"]}},"/tenants/activate":{"post":{"description":"Starts turning successful payments into orders by ensuring the ODUS webhook subscriber that feeds the OMS is active — creating it on first activation, unarchiving it after a pause. The tenant environment itself is provisioned lazily: a first call on a never-provisioned merchant answers `202` while the environment is created, and succeeds once it is ready. Idempotent.","operationId":"TenantProvisioningController_activate","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantStatusDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Activate order creation","tags":["OMS Addon"]}},"/tenants/repair":{"post":{"description":"Restores the ODUS webhook subscriber and API secret key the addon depends on to the state activating produces: exactly one active subscriber pointing at the OMS and subscribed to the events it handles, and an active API key carrying exactly the permissions the OMS needs. Reconciles the tenant schema too, so it is a superset of re-activating. Idempotent and non-destructive to orders and merchant data.","operationId":"TenantProvisioningController_repair","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantStatusDTO"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Repair the OMS addon","tags":["OMS Addon"]}},"/tenants/pause":{"post":{"description":"Stops turning new payments into orders by archiving the ODUS webhook subscriber that feeds the OMS. The tenant environment, its data and the OMS UI all remain available; activating again is non-destructive.","operationId":"TenantProvisioningController_pause","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantStatusDTO"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Pause order creation","tags":["OMS Addon"]}},"/async-jobs/{id}":{"get":{"description":"Returns where a background job is in its lifecycle, how far it has got, and — once it has finished — what it produced or why it failed. Poll it after starting a job until `state` is `completed` or `failed`. A job is visible only to the merchant account that started it. A job record stays readable for at least 7 days after the job completes and at least 30 days after it fails; once it has been removed this returns `404`.","operationId":"AsyncJobController_getStatus","parameters":[{"name":"id","required":true,"in":"path","description":"The job id returned when the job was started.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncJobStatusDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get the status of an async job","tags":["Async Jobs"]}},"/async-jobs/artifacts/{type}/{name}":{"get":{"description":"Streams the file a completed job produced, as an attachment, with its media type in `Content-Type` and its file name in `Content-Disposition`. `type` and `name` are the values a completed job reports under `result.artifact`. A file is kept for 90 days from the moment it was stored; a file that has expired, or one produced for another merchant account, returns `404`.","operationId":"AsyncJobController_downloadArtifact","parameters":[{"name":"type","required":true,"in":"path","description":"The job type, as reported in `result.artifact.type`.","schema":{"type":"string"}},{"name":"name","required":true,"in":"path","description":"The file name, as reported in `result.artifact.name`.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"*/*":{"schema":{"type":"string","contentMediaType":"*/*"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Download the file an async job produced","tags":["Async Jobs"]}},"/orders/{orderId}/resubmit":{"post":{"description":"Asks the fulfillment provider to fulfill an order again, with the shipping address and customer details the order carries now. You can resubmit an order that is on hold (`holdStatus` `held`), and an order sent with customer details that break the provider's rules (`recipientFaults`) without waiting for the provider to hold it. Correct the customer first — both kinds of order pick up customer updates — then resubmit. An order on hold is resubmitted for you when you correct its customer's name, phone number or shipping address, unless its `holdReasonCode` is one such a correction does not fix; calling this after that, before the provider answers, is refused as already resubmitted, and you can treat that refusal as done. The provider takes the change only while it is holding the order, so it may refuse an order it has not held yet; resubmit that one once it does. The provider answers asynchronously: `holdStatus` becomes `resubmitted` immediately, then clears once the provider accepts the order, or becomes `held` with a new `holdReason` if it holds it. An order held because the provider could not charge your prepaid balance for it (`holdReasonCode` `insufficient_funds`) is sent again automatically once the balance covers it; resubmit it to send it sooner, for example right after you top up, while the provider has it (`externalOrderId` is set). When the provider refused it before creating it, `externalOrderId` is empty and there is nothing to resubmit: use `POST /orders/{orderId}/retry-submission` instead. Only orders sent to NextSmartShip are resubmitted. ShipBob takes no resubmission, and an order it holds is never sent to it a second time. When ShipBob holds the order because it could not validate the shipping address (`holdReasonCode` `address_invalid`), resubmitting sends ShipBob the shipping address the order carries now instead, for the shipments it holds, and ShipBob checks it again. The order stays `held` until ShipBob releases it. The order's history records ShipBob's answer as a `tpl_address_update_requested` entry. If ShipBob did not save the address for every shipment it holds, the request is refused with the reason: correct the address in ShipBob. It is also refused if you cancelled some of the order's items or recorded a shipment of it yourself, because ShipBob would still ship those items. Every other order ShipBob holds is refused: resolve the hold in ShipBob, which ships the order itself once it releases the hold.","operationId":"OrderResubmissionController_resubmit","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Resubmit an order that is on hold","tags":["Orders"]}},"/orders/{orderId}/cancellations":{"post":{"description":"Cancels the given quantities of one or more order items, or the whole order with `cancelWholeOrder: true`, and with `refundPayments: true` refunds the payments of what you cancel. A payment is refunded in full: a captured payment is refunded for what is left of it, and one not captured yet is voided. So a payment is refunded only when nothing it paid for is left to ship and none of it has shipped; a request that would leave part of a payment is refused. Refunds are made with your own permissions, so your role must be allowed to refund payments. If your fulfillment provider already has the order (`externalOrderId` is set), only the whole order can be cancelled: the provider is asked to cancel it first, and the order is cancelled and refunded only if the provider confirms. If it cannot cancel it, for example because it has shipped, nothing changes and the response says why. If a refund fails before anything is cancelled, nothing is cancelled. With `refundPayments: false` the order is cancelled as by `POST /orders/{orderId}/cancel`, and nobody is refunded.","operationId":"OrderCancellationController_create","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOrderWithRefundRequestDTO"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}},"202":{"description":"The merchant is entitled but its OMS environment is not provisioned yet. Provisioning has been kicked off (exactly once) and is in progress; retry the request — it succeeds once the environment is ready. Returned only for identity-token (dashboard) requests bound to an active-entitled merchant, not for secret-key API calls; any such endpoint can return it while provisioning is underway.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisioningInProgress"}}}},"400":{"description":"The request was rejected. `type` is `invalid_request_error`; when the failure is a validation failure `code` is `validation_failed` and `errors` lists every problem found, with field-attributable entries prefixed by the field’s path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"401":{"description":"No credentials were supplied, or the identity token / secret key is not valid for the target merchant. `type` is `authentication_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The credentials are valid but lack the permission this operation requires. `type` is `permission_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No resource exists with the requested identifier. `type` is `not_found_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request exceeded a limit on what this API accepts and was refused before the operation ran, so nothing was created or changed. The body must be under 4 MB. `type` is `invalid_request_error`, and `message` names the limit that was met. Reduce the request below the limit and send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests. The rate limit is applied per client across all operations. `type` is `rate_limit_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed because of an unexpected error. `type` is `api_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The request could not be served right now: the API is temporarily at capacity, or a dependency needed to serve the request is unavailable — for every operation the auth service that verifies credentials and resolves entitlement, and on the provisioning routes also the ODUS API the OMS reconciles against. `type` is `api_error`. Unlike a plain 500 the condition is transient rather than a fault in the request, so it is worth retrying with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"The request exceeded the processing time limit and was abandoned. `type` is `api_error` and `code` is `timeout` — unlike a plain 500 the request may still have taken effect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Cancel an order and refund its payments","tags":["Orders"]}}},"security":[{"bearer":[]}]}