# Fail Order

## POST /public/v1/commerce/orders/{id}/fail

> Fails the order. Status changes to failed. State of the agreement doesn't change except the status.

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"Marketplace API","version":"5.0.764-gbc924a47"},"servers":[{"url":"https://api.s1.today"}],"paths":{"/public/v1/commerce/orders/{id}/fail":{"post":{"tags":["Orders"],"summary":"Fails the order. Status changes to failed. State of the agreement doesn't change except the status.","parameters":[{"name":"id","in":"path","description":"Id of order to be failed","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update details of order","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","nullable":true},"by":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"omitted":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"icon":{"type":"string","nullable":true}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"completed":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"deleted":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"failed":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"processing":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"querying":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"quoted":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"type":{"allOf":[{"enum":["Purchase","Change","Termination","Configuration"],"type":"string"}]},"status":{"allOf":[{"enum":["New","Draft","Deleted","Processing","Querying","Failed","Completed","Quoted"],"type":"string"}]},"notes":{"type":"string","nullable":true},"comments":{"type":"string","nullable":true},"statusNotes":{"allOf":[{"type":"object","properties":{"id":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"parameters":{"nullable":true}},"additionalProperties":false}],"nullable":true},"template":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false}]},"listing":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":false}]},"authorization":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"currency":{"type":"string"}},"additionalProperties":false}]},"agreement":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"status":{"allOf":[{"enum":["New","Draft","Provisioning","Updating","Active","Terminated","Failed","Deleted"],"type":"string"}]},"name":{"type":"string"}},"additionalProperties":false}]},"assignee":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"icon":{"type":"string","nullable":true}},"additionalProperties":false}]},"externalIds":{"allOf":[{"type":"object","properties":{"client":{"type":"string","nullable":true},"operations":{"type":"string","nullable":true},"vendor":{"type":"string","nullable":true}},"additionalProperties":false}]},"price":{"allOf":[{"type":"object","properties":{"currency":{"type":"string"},"markup":{"type":"number","format":"double"},"margin":{"type":"number","format":"double"},"defaultMarkup":{"type":"number","format":"double","nullable":true},"PPx1":{"type":"number","format":"double","nullable":true},"SPx1":{"type":"number","format":"double","nullable":true},"SPxY":{"type":"number","format":"double","nullable":true},"SPxM":{"type":"number","format":"double","nullable":true},"PPxY":{"type":"number","format":"double","nullable":true},"PPxM":{"type":"number","format":"double","nullable":true}},"additionalProperties":false}]},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"oldQuantity":{"type":"integer","format":"int32"},"quantity":{"type":"integer","format":"int32"},"price":{"allOf":[{"type":"object","properties":{"currency":{"type":"string"},"markup":{"type":"number","format":"double"},"margin":{"type":"number","format":"double"},"unitSP":{"type":"number","format":"double","nullable":true},"unitPP":{"type":"number","format":"double","nullable":true},"PPx1":{"type":"number","format":"double","nullable":true},"SPx1":{"type":"number","format":"double","nullable":true},"SPxY":{"type":"number","format":"double","nullable":true},"SPxM":{"type":"number","format":"double","nullable":true},"PPxY":{"type":"number","format":"double","nullable":true},"PPxM":{"type":"number","format":"double","nullable":true}},"additionalProperties":false}]},"item":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"pending":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"published":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"unpublished":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"description":{"type":"string"},"externalIds":{"allOf":[{"type":"object","properties":{"vendor":{"type":"string"},"operations":{"type":"string","nullable":true}},"additionalProperties":false}]},"group":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false}]},"unit":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string","nullable":true},"name":{"type":"string"}},"additionalProperties":false}]},"terms":{"allOf":[{"type":"object","properties":{"period":{"enum":["1m","1y","one-time"],"type":"string"},"commitment":{"enum":["1m","1y","3y"],"type":"string","nullable":true}},"additionalProperties":false}]},"quantityNotApplicable":{"type":"boolean"},"status":{"type":"string"},"product":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalIds":{"allOf":[{"type":"object","properties":{"operations":{"type":"string","nullable":true},"defaultErpItem":{"type":"string","nullable":true}},"additionalProperties":false}]},"icon":{"type":"string"},"status":{"type":"string"}},"additionalProperties":false}]},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":"string","nullable":true},"type":{"type":"string"},"name":{"type":"string"},"value":{},"displayValue":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false}]},"subscription":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"active":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"terminated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"terminating":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updating":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"terminationDate":{"type":"string","format":"date-time","nullable":true},"externalIds":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/externalIds/allOf/0/properties"},"additionalProperties":false}]},"terms":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/item/allOf/0/properties/terms/allOf/0/properties"},"additionalProperties":false}]},"product":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/item/allOf/0/properties/product/allOf/0/properties"},"additionalProperties":false}]},"autoRenew":{"type":"boolean"},"status":{"allOf":[{"enum":["Draft","Active","Deleted","Updating","Terminating","Terminated"],"type":"string"}]},"commitmentDate":{"type":"string","format":"date-time","nullable":true},"parameters":{"allOf":[{"type":"object","properties":{"fulfillment":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":"string","nullable":true},"name":{"type":"string"},"type":{"allOf":[{"enum":["SingleLineText","MultiLineText","Address","Contact","Checkbox","Choice","Subdomain","Heading","DropDown","Email","DataObject","Date"],"type":"string"}]},"phase":{"allOf":[{"enum":["Configuration","Order","Fulfillment"],"type":"string"}]},"error":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/statusNotes/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"constraints":{"allOf":[{"type":"object","properties":{"required":{"type":"boolean"},"hidden":{"type":"boolean"},"readonly":{"type":"boolean"}},"additionalProperties":false}],"nullable":true},"displayValue":{"type":"string","nullable":true},"value":{"nullable":true}},"additionalProperties":false},"nullable":true}},"additionalProperties":false}]},"agreement":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/agreement/allOf/0/properties"},"additionalProperties":false}]},"price":{"allOf":[{"type":"object","properties":{"currency":{"type":"string"},"markup":{"type":"number","format":"double"},"margin":{"type":"number","format":"double"},"SPxY":{"type":"number","format":"double","nullable":true},"SPxM":{"type":"number","format":"double","nullable":true},"PPxY":{"type":"number","format":"double","nullable":true},"PPxM":{"type":"number","format":"double","nullable":true},"defaultMarkup":{"type":"number","format":"double","nullable":true},"defaultMargin":{"type":"number","format":"double","nullable":true}},"additionalProperties":false}]},"lines":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties"},"additionalProperties":false},"nullable":true},"template":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/template/allOf/0/properties"},"additionalProperties":false}]}},"additionalProperties":false}],"nullable":true},"markupSource":{"allOf":[{"enum":["Unknown","PriceList","PricingPolicy","Manual"],"type":"string"}],"nullable":true}},"additionalProperties":false}},"subscriptions":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/subscription/allOf/0/properties"},"additionalProperties":false}},"parameters":{"allOf":[{"type":"object","properties":{"ordering":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/subscription/allOf/0/properties/parameters/allOf/0/properties/fulfillment/items/properties"},"additionalProperties":false},"nullable":true},"fulfillment":{"type":"array","items":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/subscription/allOf/0/properties/parameters/allOf/0/properties/fulfillment/items/properties"},"additionalProperties":false},"nullable":true}},"additionalProperties":false}]},"error":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/statusNotes/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"product":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/item/allOf/0/properties/product/allOf/0/properties"},"additionalProperties":false}]},"client":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"type":{"allOf":[{"enum":["Client","Vendor","Operations"],"type":"string"}],"nullable":true},"status":{"allOf":[{"enum":["Active","Enabled","Disabled"],"type":"string"}],"nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false}]},"licensee":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true}},"additionalProperties":false}]},"buyer":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false}]},"seller":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"name":{"type":"string"}},"additionalProperties":false}]},"vendor":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/client/allOf/0/properties"},"additionalProperties":false}]},"billTo":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/buyer/allOf/0/properties"},"additionalProperties":false}]},"pricingPolicy":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"client":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/audit/allOf/0/properties"},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"icon":{"type":"string","nullable":true},"externalIds":{"allOf":[{"type":"object","properties":{"pyraTenantId":{"type":"string","format":"uuid","nullable":true}},"additionalProperties":false}],"nullable":true},"externalId":{"type":"string","nullable":true},"externalName":{"type":"string","nullable":true},"type":{"allOf":[{"enum":["Client","Vendor","Operations"],"type":"string"}],"nullable":true},"status":{"allOf":[{"enum":["Active","Enabled","Disabled"],"type":"string"}],"nullable":true},"serviceLevel":{"allOf":[{"enum":["Express","Elite","Dsc","Focus","Runners","Strategics","NotApplicable"],"type":"string"}],"nullable":true},"address":{"allOf":[{"type":"object","properties":{"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"country":{"type":"string","nullable":true}},"additionalProperties":false}],"nullable":true},"technicalSupportEmail":{"type":"string","nullable":true},"website":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"isDefault":{"type":"boolean"}},"additionalProperties":false},"nullable":true},"eligibility":{"allOf":[{"type":"object","properties":{"client":{"type":"boolean"},"partner":{"type":"boolean"}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"published":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"pending":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"unpublished":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"shortDescription":{"type":"string","nullable":true},"longDescription":{"type":"string","nullable":true},"externalIds":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/item/allOf/0/properties/product/allOf/0/properties/externalIds/allOf/0/properties"},"additionalProperties":false}]},"website":{"type":"string"},"icon":{"type":"string"},"status":{"type":"string"},"vendor":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/client/allOf/0/properties"},"additionalProperties":false}]},"settings":{"allOf":[{"type":"object","properties":{"productOrdering":{"type":"boolean"},"productRequests":{"allOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"name":{"type":"string","nullable":true},"label":{"type":"string","nullable":true}},"additionalProperties":false}]},"itemSelection":{"type":"boolean"},"orderQueueChanges":{"type":"boolean"},"preValidation":{"allOf":[{"type":"object","properties":{"purchaseOrderDraft":{"type":"boolean"},"purchaseOrderQuerying":{"type":"boolean"},"changeOrderDraft":{"type":"boolean"},"configurationOrderDraft":{"type":"boolean"},"terminationOrder":{"type":"boolean"},"productRequest":{"type":"boolean"}},"additionalProperties":false}]},"splitBilling":{"allOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","nullable":true}},"additionalProperties":false}]},"subscriptionCessation":{"allOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"mode":{"enum":["Termination","Auto-renewal","Termination or auto-renewal"],"type":"string","nullable":true}},"additionalProperties":false}]}},"additionalProperties":false}]},"statistics":{"allOf":[{"type":"object","properties":{"itemCount":{"type":"integer","format":"int32"},"ordersPlacedCount":{"type":"integer","format":"int32"},"agreementCount":{"type":"integer","format":"int32"},"subscriptionCount":{"type":"integer","format":"int32"},"requestCount":{"type":"integer","format":"int32"}},"additionalProperties":false}]}},"additionalProperties":false},"nullable":true}},"additionalProperties":false}]},"termsAndConditions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"published":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"pending":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"unpublished":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"displayOrder":{"type":"integer","format":"int32"},"status":{"type":"string"},"product":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/lines/items/properties/item/allOf/0/properties/product/allOf/0/properties"},"additionalProperties":false}]},"accepted":{"type":"string","format":"date-time","nullable":true},"acceptedBy":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true}},"additionalProperties":false}]}},"additionalProperties":false}},"certificates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false}},"defaultMarkupSource":{"allOf":[{"enum":["Unknown","PriceList","PricingPolicy","Manual"],"type":"string"}],"nullable":true}},"additionalProperties":false}},"text/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties"},"additionalProperties":false}},"application/*+json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties"},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/requestBody/content/application~1json/schema/properties"},"additionalProperties":false}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/responses/403/content/application~1json/schema/properties"},"additionalProperties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{id}~1fail/post/responses/403/content/application~1json/schema/additionalProperties"}}}}},"500":{"description":"Internal Server Error"}}}}}}
```
