# Get Order Subscription

Returns subscription with a given ID that exists in the order.

## GET /public/v1/commerce/orders/{orderId}/subscriptions

>

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/{orderId}/subscriptions":{"get":{"tags":["OrderSubscriptions"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"$meta":{"type":"object","allOf":[{"type":"object","properties":{"pagination":{"allOf":[{"type":"object","properties":{"offset":{"type":"integer","format":"int32"},"limit":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int32","nullable":true}},"additionalProperties":false}]},"omitted":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]},"data":{"type":"array","items":{"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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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":{"client":{"type":"string","nullable":true},"operations":{"type":"string","nullable":true},"vendor":{"type":"string","nullable":true}},"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}]},"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}]},"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":{"id":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"parameters":{"nullable":true}},"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":{"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}]},"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":{"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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/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":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/properties/terms/allOf/0/properties"},"additionalProperties":false}]},"quantityNotApplicable":{"type":"boolean"},"status":{"type":"string"},"product":{"type":"object","allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/properties/product/allOf/0/properties"},"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":{"$ref":"#/paths/~1public~1v1~1commerce~1orders~1{orderId}~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/properties"},"additionalProperties":false}],"nullable":true},"markupSource":{"allOf":[{"enum":["Unknown","PriceList","PricingPolicy","Manual"],"type":"string"}],"nullable":true}},"additionalProperties":false},"nullable":true},"template":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false}]}},"additionalProperties":false}}},"additionalProperties":false}}}}}}}}}
```
