{"openapi":"3.2.0","info":{"title":"OrbCart API","version":"1","summary":"Carts, Quotes, payments and Orders over HTTP.","license":{"name":"Apache-2.0","identifier":"Apache-2.0"}},"servers":[{"url":"{environment}","description":"Your environment's URL.","variables":{"environment":{"default":"http://localhost:8787"}}}],"tags":[{"name":"Storefront","description":"With a publishable key or a Cart token."},{"name":"Admin","description":"With a secret key, on servers only."}],"paths":{"/v1/carts":{"post":{"summary":"Create a Cart.","tags":["Storefront"],"security":[{"publishable":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCart"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"List Carts that need a person.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"attention","in":"query","required":true,"schema":{"type":"string","const":"true"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/handoffs":{"post":{"summary":"Open an agent's checkout in the buyer's browser.","tags":["Storefront"],"security":[{"publishable":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueCheckout"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/buyer":{"post":{"summary":"Claim the Cart for the signed-in buyer.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifiedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/successor":{"post":{"summary":"Start the next Cart after a purchase.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}":{"get":{"summary":"Read a Cart.","tags":["Storefront","Admin"],"security":[{"cart":[]},{"secret":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RedactedCart"},{"$ref":"#/components/schemas/Cart"}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/payment-methods/{method}/setup":{"get":{"summary":"A payment method's public setup before there is a Quote.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSetup"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/lines":{"post":{"summary":"Add a Line.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLine"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/lines/{line}":{"patch":{"summary":"Set a Line's quantity.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"line","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLineQuantity"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Remove a Line.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"line","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/ship-to":{"put":{"summary":"Set the delivery address.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/bill-to":{"put":{"summary":"Set a separate billing address.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Bill to the delivery address again.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/contact":{"put":{"summary":"Set the buyer's email and phone.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/shipping":{"put":{"summary":"Choose a shipping method.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShipping"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/codes":{"post":{"summary":"Enter a discount code.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterCode"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/codes/{code}":{"delete":{"summary":"Remove a discount code.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/extensions/{name}":{"put":{"summary":"Set a Cart extension.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetExtension"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Remove a Cart extension.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/quote":{"post":{"summary":"Get a signed Quote.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}":{"get":{"summary":"Reopen a Quote with its last payment state.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenedQuote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}/payment-methods/{method}/setup":{"get":{"summary":"A payment method's public setup for the Quote's amount.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSetup"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}/accept":{"post":{"summary":"Accept the Quote and pay.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptQuote"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Acceptance"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/payments/{payment}/resume":{"post":{"summary":"Resume a Payment after a provider redirect.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"payment","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumePayment"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAcceptance"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/prepare-payment":{"post":{"summary":"Prepare a payment the buyer approves at the provider first, such as PayPal.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparePayment"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPreparation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/preparations/{preparation}/update":{"post":{"summary":"Pass on an address or shipping method the buyer chose at the provider.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparation","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreparation"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/preparations/{preparation}/review":{"post":{"summary":"Quote what the buyer approved at the provider.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparation","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewedPreparation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}":{"get":{"summary":"Read an Order by ID or number, or a buyer's own by its token.","tags":["Storefront","Admin"],"security":[{"secret":[]},{"order":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberOrder"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/fulfillments":{"post":{"summary":"Report shipped units.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/acknowledge":{"post":{"summary":"Confirm your ERP took the Order.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/refunds":{"get":{"summary":"Refunds and what is still refundable.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefunds"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"summary":"Refund.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundOrder"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refund"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/refunds/preview":{"post":{"summary":"Calculate a refund without making it.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPreview"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/search":{"post":{"summary":"Find Orders by email.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOrders"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSearchResults"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders":{"get":{"summary":"List Orders: a signed-in buyer's own, or all of them with filters.","tags":["Storefront","Admin"],"security":[{"secret":[]},{"publishable":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"default":"newest","type":"string","enum":["newest","oldest"]}},{"name":"payment","in":"query","required":false,"schema":{"type":"string"}},{"name":"fulfillment","in":"query","required":false,"schema":{"type":"string"}},{"name":"refunds","in":"query","required":false,"schema":{"type":"string"}},{"name":"handoff","in":"query","required":false,"schema":{"type":"string"}},{"name":"attention","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"count","in":"query","required":false,"schema":{"type":"string","const":"true"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderList"},{"$ref":"#/components/schemas/BuyerOrderList"}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events":{"get":{"summary":"List the Events of Orders and of the Carts before them, newest first, with how far each receiver's delivery came.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events/{event}/resend":{"post":{"summary":"Send an Event again, with the same ID, to one Receiver or to all that want its type.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"event","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendEvent"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resent"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events/replay":{"post":{"summary":"Send the Events from an instant on again, oldest first, a batch per call.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayEvents"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Replayed"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/insights/checkout":{"get":{"summary":"Count where buyers get stuck: the funnel, the time a checkout takes, the friction and the payment methods of the last days.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":365}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","enum":["storefront","agent"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutInsights"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers":{"get":{"summary":"List the Receivers of Events that the code defines, with how each stands.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiverList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers/{receiver}/pause":{"post":{"summary":"Stop deliveries to a Receiver until it is resumed.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"receiver","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receiver"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers/{receiver}/resume":{"post":{"summary":"Resume a Receiver and deliver its backlog at once.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"receiver","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receiver"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/offers/invalidate":{"post":{"summary":"Void Offers by reference or tag.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidateOffers"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invalidation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/environment":{"get":{"summary":"Mode, jurisdiction and Channels.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/address-formats/{country}":{"get":{"summary":"Postal code and region rules of a country.","tags":["Storefront","Admin"],"security":[{"publishable":[]},{"cart":[]},{"secret":[]}],"parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressFormat"}}}},"default":{"$ref":"#/components/responses/Problem"}}}}},"webhooks":{"order.created":{"post":{"summary":"The Order arose.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderCreatedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.fulfilled":{"post":{"summary":"Units were shipped, picked up or delivered.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderFulfilledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.handed_off":{"post":{"summary":"Your ERP took the Order.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderHandedOffEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.issue_opened":{"post":{"summary":"Something needs a person, such as `handoff_failed`.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderIssueOpenedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.issue_resolved":{"post":{"summary":"An issue of the Order is resolved.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderIssueResolvedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.authorized":{"post":{"summary":"The amount is reserved.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentAuthorizedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.pending_funds":{"post":{"summary":"A slower method was accepted, the money comes later.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentPendingFundsEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.captured":{"post":{"summary":"Money was collected, also in part.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentCapturedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.refunded":{"post":{"summary":"A refund succeeded.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentRefundedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.refund_failed":{"post":{"summary":"A refund could not be settled.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentRefundFailedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.failed":{"post":{"summary":"A Payment ended without money, or a capture was refused.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentFailedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.canceled":{"post":{"summary":"A Payment was canceled, by the buyer or by OrbCart.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentCanceledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"quote.created":{"post":{"summary":"A Quote was made. The same Quote again is no new event.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/QuoteCreatedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"quote.accepted":{"post":{"summary":"The buyer agreed to a Quote, and its Payment begins.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/QuoteAcceptedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"cart.abandoned":{"post":{"summary":"A Cart with lines stood still and has no Order.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/CartAbandonedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"cart.canceled":{"post":{"summary":"A Cart without an Order ended: it stood still for its Channel's inactivity period, or its agent discarded it. It is deleted.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/CartCanceledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}}},"components":{"schemas":{"Acceptance":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"ordered"},"payment":{"$ref":"#/components/schemas/Payment"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","status","payment","order"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"requires_action"},"payment":{"$ref":"#/components/schemas/PaymentRequiringAction"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","enum":["pending","failed"]},"payment":{"$ref":"#/components/schemas/Payment"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"quote_changed"},"quote":{"$ref":"#/components/schemas/Quote"},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}}},"required":["object","status","quote","changes"]}]},"AcceptQuote":{"type":"object","properties":{"payment":{"type":"string","minLength":1,"maxLength":100},"instrument":{"$ref":"#/components/schemas/Instrument"},"preparation":{"type":"string","minLength":1,"maxLength":100},"returnTo":{"type":"string","maxLength":2000}},"required":["payment"],"additionalProperties":false},"AcknowledgeOrder":{"default":{},"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"Activity":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"at":{"type":"string"},"actor":{"type":"string"},"reason":{"type":"string"},"reference":{"type":"string"},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"providerReference":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"},"carrier":{"type":"string"},"tracking":{"type":"string"},"trackingUrl":{"type":"string"},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}}},"required":["sequence","type","at","actor"]},"AddLine":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":9999},"configuration":{"$ref":"#/components/schemas/LineConfiguration"}},"required":["reference"],"additionalProperties":false},"Address":{"anyOf":[{"type":"object","properties":{"partial":{"default":false,"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["name","line1","city","country"],"additionalProperties":false},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"],"additionalProperties":false}]},"AddressFormat":{"type":"object","properties":{"object":{"type":"string","const":"address_format"},"country":{"type":"string"},"postalCode":{"type":"object","properties":{"required":{"type":"boolean"},"pattern":{"type":"string"},"kind":{"type":"string"}},"required":["required","pattern","kind"]},"region":{"type":"object","properties":{"required":{"type":"boolean"},"kind":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}}},"required":["required","kind"]}},"required":["object","country"]},"AppliedDiscount":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]},"BuyerOrderList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"next":{"type":"string"}},"required":["object","data"]},"Cart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle"]},"CartAbandonedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"cart.abandoned"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","reference","quantity"]}},"journey":{"$ref":"#/components/schemas/Journey"}},"required":["cart","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"CartCanceledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"cart.canceled"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"reason":{"type":"string"}},"required":["cart","reason"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"CartEstimate":{"type":"object","properties":{"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}}},"required":["id","totals","discounts"]}},"shipping":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}}},"required":["id","type","title","price","totals","discounts"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"excludes":{"type":"array","items":{"type":"string"}}},"required":["currency","pricesIncludeTax","lines","totals","excludes"]},"CartExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"CartLifecycle":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"open"}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","const":"locked"},"quote":{"type":"string"},"waitsFor":{"type":"string","enum":["buyer","provider"]}},"required":["status","quote","waitsFor"]},{"type":"object","properties":{"status":{"type":"string","const":"ordered"},"quote":{"type":"string"},"order":{"type":"string"}},"required":["status","quote"]},{"type":"object","properties":{"status":{"type":"string","const":"merged"},"into":{"type":"string"}},"required":["status","into"]}]},"CartList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CartSummary"}},"next":{"type":"string"}},"required":["object","data"]},"CartSummary":{"type":"object","properties":{"object":{"type":"string","const":"cart_summary"},"id":{"type":"string"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedAt":{"type":"string"}},"required":["object","id","issues","version","indexedAt"]},"Change":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["line_added","line_removed","offer_changed"]},"line":{"type":"string"}},"required":["type","line"]},{"type":"object","properties":{"type":{"type":"string","const":"quantity_changed"},"line":{"type":"string"},"from":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"to":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","line","from","to"]},{"type":"object","properties":{"type":{"type":"string","const":"price_changed"},"line":{"type":"string"},"from":{"$ref":"#/components/schemas/Money"},"to":{"$ref":"#/components/schemas/Money"}},"required":["type","line","from","to"]},{"type":"object","properties":{"type":{"type":"string","enum":["shipping_changed","delivery_time_changed"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"line_delivery_time_changed"},"line":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","line"]},{"type":"object","properties":{"type":{"type":"string","enum":["shipping_price_changed","tax_changed","total_changed"]},"from":{"$ref":"#/components/schemas/Money"},"to":{"$ref":"#/components/schemas/Money"}},"required":["type","from","to"]},{"type":"object","properties":{"type":{"type":"string","enum":["ship_to_changed","bill_to_changed","extensions_changed"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["discount_added","discount_removed"]},"discount":{"type":"string"},"code":{"type":"string"}},"required":["type","discount"]},{"type":"object","properties":{"type":{"type":"string","const":"legal_updated"},"legal":{"type":"string"}},"required":["type","legal"]},{"type":"object","properties":{"type":{"type":"string","const":"code_invalid"},"code":{"type":"string"},"reason":{"type":"string"},"methods":{"type":"array","items":{"type":"string"}}},"required":["type","code"]},{"type":"object","properties":{"type":{"type":"string","const":"unavailable"},"line":{"type":"string"},"reason":{"type":"string"}},"required":["type","line","reason"]},{"type":"object","properties":{"type":{"type":"string","const":"shipping_unavailable"},"option":{"type":"string"},"lines":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}},"required":["type","option","lines","reason"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["line_added","line_removed","offer_changed","quantity_changed","price_changed","shipping_changed","delivery_time_changed","line_delivery_time_changed","shipping_price_changed","tax_changed","total_changed","ship_to_changed","bill_to_changed","extensions_changed","discount_added","discount_removed","legal_updated","code_invalid","unavailable","shipping_unavailable"]}}},"required":["type"],"additionalProperties":{}}]},"ChannelFunnel":{"type":"object","properties":{"channel":{"type":"string"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}}},"required":["channel","attempts","orders","funnel"]},"CheckoutInsights":{"type":"object","properties":{"object":{"type":"string","const":"checkout_insights"},"window":{"$ref":"#/components/schemas/InsightsWindow"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumed":{"type":"integer","minimum":0,"maximum":9007199254740991},"withoutJourney":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}},"byChannel":{"type":"array","items":{"$ref":"#/components/schemas/ChannelFunnel"}},"byOrigin":{"type":"array","items":{"$ref":"#/components/schemas/OriginFunnel"}},"checkout":{"$ref":"#/components/schemas/Timing"},"deciding":{"$ref":"#/components/schemas/Timing"},"friction":{"type":"object","properties":{"quoteChanged":{"$ref":"#/components/schemas/FrictionCount"},"declined":{"$ref":"#/components/schemas/FrictionCount"},"challenged":{"$ref":"#/components/schemas/FrictionCount"},"unknown":{"$ref":"#/components/schemas/FrictionCount"},"recovered":{"$ref":"#/components/schemas/FrictionCount"}},"required":["quoteChanged","declined","challenged","unknown","recovered"]},"payments":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMix"}}},"required":["object","window","attempts","orders","resumed","withoutJourney","funnel","byChannel","byOrigin","checkout","deciding","friction","payments"]},"Contact":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":1,"maxLength":40}},"required":["email"],"additionalProperties":false},"ContinueCheckout":{"type":"object","properties":{"handoff":{"type":"string","minLength":1,"maxLength":200}},"required":["handoff"],"additionalProperties":false},"CreateCart":{"default":{},"type":"object","properties":{},"additionalProperties":false},"CreatedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"token":{"type":"string"}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","token"]},"DeliveryStatus":{"type":"string","enum":["pending","delivered","failed"]},"EnterCode":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":100}},"required":["code"],"additionalProperties":false},"Environment":{"type":"object","properties":{"object":{"type":"string","const":"environment"},"id":{"type":"string"},"merchant":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"jurisdiction":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"currency":{"type":"string"},"locale":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"shipsTo":{"type":"array","items":{"type":"string"}},"paymentMethods":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"}},"required":["method","provider"]}}},"required":["id","currency","locale","pricesIncludeTax","shipsTo","paymentMethods"]}},"extensions":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ExtensionView"}}},"required":["object","id","merchant","mode","jurisdiction","channels"]},"Event":{"anyOf":[{"$ref":"#/components/schemas/OrderCreatedEvent"},{"$ref":"#/components/schemas/OrderFulfilledEvent"},{"$ref":"#/components/schemas/OrderHandedOffEvent"},{"$ref":"#/components/schemas/OrderIssueOpenedEvent"},{"$ref":"#/components/schemas/OrderIssueResolvedEvent"},{"$ref":"#/components/schemas/PaymentAuthorizedEvent"},{"$ref":"#/components/schemas/PaymentPendingFundsEvent"},{"$ref":"#/components/schemas/PaymentCapturedEvent"},{"$ref":"#/components/schemas/PaymentRefundedEvent"},{"$ref":"#/components/schemas/PaymentRefundFailedEvent"},{"$ref":"#/components/schemas/PaymentFailedEvent"},{"$ref":"#/components/schemas/PaymentCanceledEvent"},{"$ref":"#/components/schemas/QuoteCreatedEvent"},{"$ref":"#/components/schemas/QuoteAcceptedEvent"},{"$ref":"#/components/schemas/CartAbandonedEvent"},{"$ref":"#/components/schemas/CartCanceledEvent"},{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"type":{"type":"string","not":{"enum":["order.created","order.fulfilled","order.handed_off","order.issue_opened","order.issue_resolved","payment.authorized","payment.pending_funds","payment.captured","payment.refunded","payment.refund_failed","payment.failed","payment.canceled","quote.created","quote.accepted","cart.abandoned","cart.canceled"]}},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["specversion","id","source","subject","time","environment","channel","type","data"]}]},"EventList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ListedEvent"}},"next":{"type":"string"}},"required":["object","data"]},"ExtensionView":{"type":"object","properties":{"on":{"type":"string","enum":["line","cart"]},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["on","schema"]},"FieldError":{"type":"object","properties":{"pointer":{"type":"string"},"code":{"type":"string"},"detail":{"type":"string"}},"required":["pointer","code","detail"]},"Fields":{"type":"object","properties":{"email":{"type":"string","enum":["required","optional"]},"phone":{"type":"string","enum":["required","optional"]},"ship_to":{"type":"string","enum":["required","optional"]},"billing_country":{"type":"string","enum":["required","optional"]},"ship_to_postal_code":{"type":"string","enum":["required","optional"]},"ship_to_region":{"type":"string","enum":["required","optional"]}},"additionalProperties":{"type":"string","enum":["required","optional"]}},"FrictionCount":{"type":"object","properties":{"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["attempts","orders"]},"FulfillmentAxis":{"type":"string","enum":["unfulfilled","partially_fulfilled","fulfilled","canceled"]},"FulfillOrder":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["line","quantity"],"additionalProperties":false}},"carrier":{"type":"string","minLength":1,"maxLength":100},"tracking":{"type":"string","minLength":1,"maxLength":200},"trackingUrl":{"type":"string","maxLength":2000,"format":"uri"},"reference":{"type":"string","minLength":1,"maxLength":200}},"required":["lines","reference"],"additionalProperties":false},"FunnelStep":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/JourneyStep"},"reached":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["step","reached","stopped"]},"HandoffAxis":{"type":"string","enum":["pending","delivered"]},"IdentifiedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"merged":{"type":"string"},"token":{"type":"string"}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle"]},"InsightsWindow":{"type":"object","properties":{"since":{"type":"string"},"until":{"type":"string"},"limit":{"$ref":"#/components/schemas/WindowLimit"}},"required":["since","until"]},"Instrument":{"$ref":"#/components/schemas/JsonObject"},"InvalidateOffers":{"type":"object","properties":{"references":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"reason":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false},"Invalidation":{"type":"object","properties":{"object":{"type":"string","const":"invalidation"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"references":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"at":{"type":"string"}},"required":["object","version","references","tags","at"]},"Issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}}},"required":["type","short"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"},"since":{"type":"string"}},"required":["type","since"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"},"payment":{"type":"string"}},"required":["type","refund","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"},"since":{"type":"string"}},"required":["type","refund","since"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"},"since":{"type":"string"}},"required":["type","payment","since"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["stock_not_committed","handoff_failed","payment_failed","payment_amount_mismatch","refund_failed","refund_unresolved","capture_unresolved"]}}},"required":["type"],"additionalProperties":{}}]},"Journey":{"type":"object","properties":{"channel":{"type":"string"},"origin":{"$ref":"#/components/schemas/JourneyOrigin"},"steps":{"type":"object","properties":{"lines":{"type":"string"},"quote":{"type":"string"},"address":{"type":"string"},"shipping":{"type":"string"},"payment":{"type":"string"},"order":{"type":"string"}}},"method":{"type":"object","properties":{"id":{"type":"string"},"express":{"type":"boolean"}},"required":["id","express"]},"friction":{"type":"object","properties":{"quoteChanged":{"type":"integer","minimum":0,"maximum":9007199254740991},"declined":{"type":"integer","minimum":0,"maximum":9007199254740991},"challenged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991},"recovered":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["quoteChanged","declined","challenged","unknown","recovered"]},"resumed":{"type":"boolean"}},"required":["channel","origin","steps","friction"]},"JourneyOrigin":{"type":"string","enum":["storefront","agent"]},"JourneyStep":{"type":"string","enum":["lines","quote","address","shipping","payment","order"]},"Json":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/Json"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}]},"JsonInput":{"$ref":"#/components/schemas/Json"},"JsonObject":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"Line":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"status":{"type":"string","enum":["available","unavailable"]},"reason":{"type":"string"},"offer":{"$ref":"#/components/schemas/OfferView"},"stale":{"default":false,"type":"boolean"}},"required":["id","reference","quantity","configuration","status"]},"LineConfiguration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"ListCarts":{"type":"object","properties":{"attention":{"type":"string","const":"true"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200}},"required":["attention"],"additionalProperties":false},"ListedEvent":{"type":"object","properties":{"event":{"$ref":"#/components/schemas/Event"},"deliveries":{"type":"array","items":{"type":"object","properties":{"receiver":{"type":"string"},"status":{"$ref":"#/components/schemas/DeliveryStatus"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["receiver","status","attempts"]}}},"required":["event","deliveries"]},"ListedIssue":{"type":"object","properties":{"type":{"type":"string"},"since":{"type":"string"}},"required":["type"]},"ListEvents":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string"},"subject":{"type":"string","minLength":1,"maxLength":100},"channel":{"type":"string"},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"additionalProperties":false},"ListOrders":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200},"sort":{"default":"newest","type":"string","enum":["newest","oldest"]},"payment":{"type":"string"},"fulfillment":{"type":"string"},"refunds":{"type":"string"},"handoff":{"type":"string"},"attention":{"type":"string","enum":["true","false"]},"channel":{"type":"string"},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"count":{"type":"string","const":"true"}},"additionalProperties":false},"Member":{"type":"object","properties":{"object":{"type":"string","const":"member"},"id":{"type":"string"},"role":{"$ref":"#/components/schemas/Role"},"signIn":{"type":"string","enum":["access","local"]},"email":{"type":"string"}},"required":["object","id","role","signIn"]},"MemberCart":{"anyOf":[{"$ref":"#/components/schemas/RedactedCart"},{"$ref":"#/components/schemas/MerchantCart"}]},"MemberOrder":{"anyOf":[{"$ref":"#/components/schemas/RedactedOrder"},{"$ref":"#/components/schemas/Order"}]},"MerchantCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","issues","history"]},"Money":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"]},"OfferView":{"type":"object","properties":{"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"image":{"type":"string"},"deliveryTime":{"type":"string"},"compareAt":{"$ref":"#/components/schemas/Money"},"promotion":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"withdrawal":{"type":"object","properties":{"excluded":{"type":"string"}},"required":["excluded"]}},"required":["title","price"]},"OpenedQuote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","type","title","price","totals","discounts","taxes"]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"},"acceptance":{"$ref":"#/components/schemas/PaymentAcceptance"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","legal","signature","document"]},"Order":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"string"},"number":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"locale":{"type":"string"},"orderedAt":{"type":"string"},"quote":{"$ref":"#/components/schemas/Quote"},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"consent":{"type":"object","properties":{"givenAt":{"type":"string"}},"required":["givenAt"]},"payment":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"},"captured":{"$ref":"#/components/schemas/Money"},"refunded":{"$ref":"#/components/schemas/Money"}},"required":["id","method"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"shipments":{"type":"array","items":{"$ref":"#/components/schemas/Shipment"}},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"token":{"type":"string"},"url":{"type":"string"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}},"required":["object","id","number","cart","environment","channel","locale","orderedAt","quote","contact","consent","payment","fulfillment","shipments","refunds","token"]},"OrderCount":{"type":"object","properties":{"value":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"boolean"}},"required":["value","capped"]},"OrderCreatedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"order.created"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"total":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","reference","quantity"]}},"journey":{"$ref":"#/components/schemas/Journey"}},"required":["order","total","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderFulfilledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"order.fulfilled"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}},"carrier":{"type":"string"},"reference":{"type":"string"}},"required":["order","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderHandedOffEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"order.handed_off"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"reference":{"type":"string"}},"required":["order"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderIssueOpenedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"order.issue_opened"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["stock_not_committed","handoff_failed","payment_failed","payment_amount_mismatch","capture_unresolved","refund_failed","refund_unresolved"]}}},"required":["type"],"additionalProperties":{}}]}},"required":["order","issue"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderIssueResolvedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"order.issue_resolved"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["stock_not_committed","handoff_failed","payment_failed","payment_amount_mismatch","capture_unresolved","refund_failed","refund_unresolved"]}}},"required":["type"],"additionalProperties":{}}]},"resolvedBy":{"type":"string"}},"required":["order","issue"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderSummary"}},"next":{"type":"string"},"count":{"$ref":"#/components/schemas/OrderCount"}},"required":["object","data"]},"OrderRefunds":{"type":"object","properties":{"object":{"type":"string","const":"order_refunds"},"available":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["line","quantity"]}},"shipping":{"type":"boolean"}},"required":["lines","shipping"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RefundSummary"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}},"required":["object","available","data","issues"]},"OrderSearchResult":{"type":"object","properties":{"object":{"type":"string","const":"order_summary"},"id":{"type":"string"},"number":{"type":"string"},"channel":{"type":"string"},"orderedAt":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"},"payment":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"}},"required":["method","provider","status"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"lineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","number","channel","orderedAt","total","payment","fulfillment","refunds","issues","lineCount","unitCount"]},"OrderSearchResults":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderSearchResult"}},"next":{"type":"string"}},"required":["object","data"]},"OrderSummary":{"type":"object","properties":{"object":{"type":"string","const":"order_summary"},"id":{"type":"string"},"number":{"type":"string"},"channel":{"type":"string"},"orderedAt":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"},"payment":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"}},"required":["method","provider","status"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"lineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedAt":{"type":"string"}},"required":["object","id","number","channel","orderedAt","total","payment","fulfillment","refunds","issues","lineCount","unitCount","version","indexedAt"]},"OriginFunnel":{"type":"object","properties":{"origin":{"$ref":"#/components/schemas/JourneyOrigin"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}}},"required":["origin","attempts","orders","funnel"]},"Payment":{"oneOf":[{"$ref":"#/components/schemas/PaymentRequiringAction"},{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","const":"failed"},"reason":{"type":"string"}},"required":["object","id","quote","amount","method","provider","status"]},{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","enum":["processing","unknown","authorized","captured","pending_funds","canceled"]}},"required":["object","id","quote","amount","method","provider","status"]}]},"PaymentAcceptance":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"ordered"},"payment":{"$ref":"#/components/schemas/Payment"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","status","payment","order"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"requires_action"},"payment":{"$ref":"#/components/schemas/PaymentRequiringAction"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","enum":["pending","failed"]},"payment":{"$ref":"#/components/schemas/Payment"}},"required":["object","status","payment"]}]},"PaymentAuthorizedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.authorized"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentAxis":{"type":"string","enum":["authorized","partially_captured","captured","pending_funds","failed","canceled"]},"PaymentCanceledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.canceled"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"reason":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentCapturedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.captured"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["order","payment","amount"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentFailedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.failed"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"reason":{"type":"string"}},"required":["payment"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentMethod":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"flow":{"type":"string"},"express":{"type":"string"},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"sdk":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"setupRequired":{"type":"boolean"}},"required":["id","provider","flow","fields","missing","sdk"]},"PaymentMix":{"type":"object","properties":{"method":{"type":"string"},"express":{"type":"boolean"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["method","express","attempts","orders"]},"PaymentPendingFundsEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.pending_funds"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentPreparation":{"type":"object","properties":{"object":{"type":"string","const":"payment_preparation"},"id":{"type":"string"},"method":{"type":"string"},"providerReference":{"type":"string"}},"required":["object","id","method","providerReference"]},"PaymentRefundedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.refunded"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["order","payment","amount","lines","shipping"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentRefundFailedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"payment.refund_failed"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["order","payment","refund","amount"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentRequiringAction":{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","const":"requires_action"},"action":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"redirect"},"url":{"type":"string"}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"sdk"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["type","data"]}]}},"required":["object","id","quote","amount","method","provider","status","action"]},"PaymentSetup":{"type":"object","properties":{"sdk":{"$ref":"#/components/schemas/JsonObject"}},"required":["sdk"]},"PreparePayment":{"type":"object","properties":{"payment":{"type":"string","minLength":1,"maxLength":100},"returnTo":{"type":"string","maxLength":2000}},"required":["payment"],"additionalProperties":false},"Problem":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string"},"kind":{"$ref":"#/components/schemas/ProblemKind"},"retryable":{"type":"boolean"},"requestId":{"type":"string"},"detail":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"}},"cart":{"$ref":"#/components/schemas/Cart"},"missing":{"type":"array","items":{"type":"string"}},"invalid":{"type":"array","items":{"type":"string"}},"lines":{"type":"array","items":{"type":"string"}},"country":{"type":"string"},"taxCategory":{"type":"string"}},"required":["title","status","code","kind","retryable","requestId","detail"]},"ProblemKind":{"type":"string","enum":["invalid","unauthorized","forbidden","not_found","conflict","rate_limited","unavailable","internal"]},"Quote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","type","title","price","totals","discounts","taxes"]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","legal","signature","document"]},"QuoteAcceptedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"quote.accepted"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"quote":{"type":"string"},"payment":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"}},"required":["cart","quote","payment","total"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"QuoteCreatedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string"},"type":{"type":"string","const":"quote.created"},"source":{"type":"string"},"subject":{"type":"string"},"time":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"dataschema":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"quote":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"}},"required":["cart","quote","total"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"QuoteDocument":{"type":"object","properties":{"format":{"type":"string","const":"quote/1"},"cart":{"type":"string"},"merchant":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"type":"object","properties":{"reference":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"taxCategory":{"type":"string"},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"image":{"type":"string"},"deliveryTime":{"type":"string"},"compareAt":{"$ref":"#/components/schemas/Money"},"promotion":{"type":"string"},"appliedCodes":{"type":"array","items":{"type":"string"}},"components":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"}},"required":["reference","title","price"]}},"shipping":{"type":"object","properties":{"weightInGrams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"restrictions":{"type":"array","items":{"type":"string"}}}},"withdrawal":{"type":"object","properties":{"excluded":{"type":"string"}},"required":["excluded"]},"limits":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"signature":{"type":"string"}},"required":["reference","title","price","taxCategory","source"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"delivery"},"id":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"requires":{"type":"array","items":{"type":"string"}},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["type","id","title","price","requires","totals","discounts","taxes"]},{"type":"object","properties":{"type":{"type":"string","const":"pickup"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]}},"required":["id","name","address"]},"id":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"requires":{"type":"array","items":{"type":"string"}},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["type","location","id","title","price","requires","totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"agent":{"type":"object","properties":{"profile":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["profile","keyFingerprint"]},"extensions":{"$ref":"#/components/schemas/CartExtensions"},"configurationVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["format","cart","merchant","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","legal","extensions","configurationVersion"]},"ReadCheckoutInsights":{"type":"object","properties":{"days":{"default":30,"type":"integer","minimum":1,"maximum":365},"channel":{"type":"string"},"origin":{"$ref":"#/components/schemas/JourneyOrigin"}},"additionalProperties":false},"Receiver":{"type":"object","properties":{"object":{"type":"string","const":"receiver"},"name":{"type":"string"},"kind":{"$ref":"#/components/schemas/ReceiverKind"},"state":{"$ref":"#/components/schemas/ReceiverState"},"backlog":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSuccess":{"type":"string"}},"required":["object","name","kind","state","backlog"]},"ReceiverKind":{"type":"string","enum":["function","http","service"]},"ReceiverList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Receiver"}}},"required":["object","data"]},"ReceiverState":{"type":"string","enum":["active","failing","paused"]},"RedactedActivity":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"at":{"type":"string"},"actor":{"type":"string"},"reference":{"type":"string"},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"providerReference":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"},"carrier":{"type":"string"},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}}},"required":["sequence","type","at","actor"]},"RedactedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"personalData":{"type":"string","const":"withheld"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["available","unavailable"]},"reason":{"type":"string"},"offer":{"$ref":"#/components/schemas/OfferView"},"stale":{"default":false,"type":"boolean"}},"required":["id","reference","quantity","status"]}},"history":{"type":"array","items":{"$ref":"#/components/schemas/RedactedActivity"}}},"required":["object","id","environment","channel","version","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","issues","personalData","lines","history"]},"RedactedOrder":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"string"},"number":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"locale":{"type":"string"},"orderedAt":{"type":"string"},"consent":{"type":"object","properties":{"givenAt":{"type":"string"}},"required":["givenAt"]},"payment":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"},"captured":{"$ref":"#/components/schemas/Money"},"refunded":{"$ref":"#/components/schemas/Money"}},"required":["id","method"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"personalData":{"type":"string","const":"withheld"},"quote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"shipping":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","type","title","price","totals","discounts","taxes"]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offer":{"$ref":"#/components/schemas/OfferView"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","offer","totals","discounts","taxes"]}}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","totals","legal","lines"]},"history":{"type":"array","items":{"$ref":"#/components/schemas/RedactedActivity"}}},"required":["object","id","number","cart","environment","channel","locale","orderedAt","consent","payment","fulfillment","refunds","personalData","quote"]},"Refund":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"requestedAt":{"type":"string"},"requestedBy":{"type":"string"},"id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"},"reason":{"type":"string"},"providerReference":{"type":"string"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","id","status","amount","lines","shipping","order"]},"RefundOrder":{"type":"object","properties":{"lines":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"component":{"type":"string","minLength":1,"maxLength":200}},"required":["line"],"additionalProperties":false}},"shipping":{"default":false,"type":"boolean"},"expectedAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"reason":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"RefundPreview":{"type":"object","properties":{"object":{"type":"string","const":"refund_preview"},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"}},"required":["object","amount","lines","shipping"]},"RefundsAxis":{"type":"string","enum":["none","partial","full"]},"RefundSummary":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"requestedAt":{"type":"string"},"requestedBy":{"type":"string"},"id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"}},"required":["line","quantity"]}},"shipping":{"type":"boolean"},"reason":{"type":"string"},"providerReference":{"type":"string"}},"required":["object","requestedAt","id","status","amount","lines","shipping"]},"Replayed":{"type":"object","properties":{"object":{"type":"string","const":"replayed"},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"receivers":{"type":"array","items":{"type":"string"}},"next":{"type":"string"}},"required":["object","events","receivers"]},"ReplayEvents":{"type":"object","properties":{"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"receiver":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*$"},"after":{"type":"string","minLength":1,"maxLength":200}},"required":["since"],"additionalProperties":false},"ResendEvent":{"default":{},"type":"object","properties":{"receiver":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*$"}},"additionalProperties":false},"Resent":{"type":"object","properties":{"object":{"type":"string","const":"resent"},"receivers":{"type":"array","items":{"type":"string"}}},"required":["object","receivers"]},"ResumePayment":{"default":{"returned":{}},"type":"object","properties":{"returned":{"default":{},"type":"object","propertyNames":{"type":"string","maxLength":100},"additionalProperties":{"type":"string","maxLength":16384}}},"additionalProperties":false},"ReviewedPreparation":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","type","title","price","totals","discounts","taxes"]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"},"acceptance":{"$ref":"#/components/schemas/PaymentAcceptance"},"preparation":{"$ref":"#/components/schemas/PaymentPreparation"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","legal","signature","document","preparation"]},"Role":{"type":"string","enum":["owner","developer","support","viewer"]},"SearchOrders":{"type":"object","properties":{"email":{"type":"string"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200}},"required":["email"],"additionalProperties":false},"SetExtension":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/JsonInput"}},"required":["value"],"additionalProperties":false},"SetLineQuantity":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":9999}},"required":["quantity"],"additionalProperties":false},"SetShipping":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100}},"required":["id"],"additionalProperties":false},"Shipment":{"type":"object","properties":{"shippedAt":{"type":"string"},"carrier":{"type":"string"},"tracking":{"type":"string"},"trackingUrl":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}}},"required":["shippedAt","lines"]},"ShippingMethod":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"}},"required":["id","type","title","price"]},"Timing":{"type":"object","properties":{"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"median":{"type":"integer","minimum":0,"maximum":9007199254740991},"p90":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["orders"]},"UpdatePreparation":{"anyOf":[{"type":"object","properties":{"shipTo":{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"],"additionalProperties":false}},"required":["shipTo"],"additionalProperties":false},{"type":"object","properties":{"shipping":{"$ref":"#/components/schemas/SetShipping"}},"required":["shipping"],"additionalProperties":false}]},"WindowLimit":{"type":"string","enum":["retention","cap"]}},"responses":{"Problem":{"description":"A Problem Details answer (RFC 9457). Decide by `code`, never by `detail`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"securitySchemes":{"publishable":{"type":"http","scheme":"bearer","description":"A publishable key, `pk_test_…` or `pk_live_…`: creates Carts in its Channel. Safe in a browser."},"cart":{"type":"http","scheme":"bearer","description":"A Cart token, `cart_…_secret_…`: reads, changes, quotes and pays one Cart. Keep it secret."},"order":{"type":"http","scheme":"bearer","description":"An Order token, `ord_…_secret_…`: reads one Order as its buyer sees it. It is the secret in the buyer's link to the order page."},"secret":{"type":"http","scheme":"bearer","description":"A secret key, `sk_test_…` or `sk_live_…`: the Admin API. Server only."}}}}