Subscription order endpoints

GET List subscription orders

https://submarine.discolabs.com/api/v1/customers/{{ customer_id }}/subscriptions/{{ subscription_id }}/subscription_orders.json

Fetch a list of the subscription orders for the given subscription.

Parameter

Name

Required

Type

Description

Path

customer_id

Yes

integer

ID of the currently logged in customer.

Path

subscription_id

Yes

integer

ID of the subscription to retrieve orders for.

PATCH Update existing subscription order

https://submarine.discolabs.com/api/v1/customers/{{ customer_id }}/subscriptions/{{ subscription_id }}/subscription_orders/{{ id }}.json

Update an existing subscription order.

Parameter

Name

Required

Type

Description

Path

customer_id

Yes

integer

ID of the currently logged in customer.

Path

subscription_id

Yes

integer

ID of the subscription the subscription order to be updated belongs to.

Path

id

Yes

integer

ID of the subscription order to update.

POST Skip subscription order

https://submarine.discolabs.com/api/v1/customers/{customer_id}/subscriptions/{subscription_id}/subscription_orders/{subscription_order_id}/skip

Skip an order in the subscription schedule.

Parameter

Name

Required

Type

Path

customer_id

Yes

integer

Path

subscription_id

Yes

integer

Path

subscription_order_id

Yes

integer

POST Unskip subscription order

https://submarine.discolabs.com/api/v1/customers/{customer_id}/subscriptions/{subscription_id}/subscription_orders/{subscription_order_id}/unskip

Unskip a skipped order in the subscription schedule.