- Partially update a subscription
Used to define how often to process the subscription. The subscription will process once every {Frequency} {Interval}.
Used to define how often to process the subscription. The subscription will process once every {Frequency} {Interval}.
Next order date of the subscription. The hourly process that creates subscription orders will query for subscriptions with a NextOrderDate between now and five hours ago.
Only use when creating a subscription on behalf of another user. ID of the buyer or marketplace owner placing the order.
ID of the marketplace owner or supplier receiving the order created by this subscription, only writable on create.
{ "Type": "PurchaseOrder", "CreditCardID": "", "SpendingAccountID": "" }
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/me/subscriptions/{subscriptionID}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.ordercloud.io/v1/me/subscriptions/{subscriptionID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "",
"Frequency": 0,
"Interval": "Days",
"NextOrderDate": "2018-01-01T00:00:00-06:00",
"LastOrderDate": "2018-01-01T00:00:00-06:00",
"NotificationDate": "2018-01-01T00:00:00-06:00",
"DateCreated": "2018-01-01T00:00:00-06:00",
"EndDate": "2018-01-01T00:00:00-06:00",
"Active": false,
"FromCompanyID": "",
"FromUserID": "",
"ToCompanyID": "",
"Payment": {
"Type": "PurchaseOrder",
"CreditCardID": "",
"SpendingAccountID": ""
},
"BillingAddressID": "",
"ShippingAddressID": "",
"ProjectedSubtotal": 0,
"xp": {}
}'Used to define how often to process the subscription. The subscription will process once every {Frequency} {Interval}.
Used to define how often to process the subscription. The subscription will process once every {Frequency} {Interval}.
Next order date of the subscription. The hourly process that creates subscription orders will query for subscriptions with a NextOrderDate between now and five hours ago.
Date that subscription order reminder message sender will be triggered if used. Value is the result of NextOrderDate less NotificationDays on the subscription integration.
Only use when creating a subscription on behalf of another user. ID of the buyer or marketplace owner placing the order.
ID of the marketplace owner or supplier receiving the order created by this subscription, only writable on create.
{ "Type": "PurchaseOrder", "CreditCardID": "", "SpendingAccountID": "" }
Tentative subtotal of next subscription order. Based on current known pricing; avoid if product or pricing is provided by an external integration.
{ "ID": "", "Frequency": 0, "Interval": "Days", "NextOrderDate": "2018-01-01T00:00:00-06:00", "LastOrderDate": "2018-01-01T00:00:00-06:00", "NotificationDate": "2018-01-01T00:00:00-06:00", "DateCreated": "2018-01-01T00:00:00-06:00", "EndDate": "2018-01-01T00:00:00-06:00", "Active": false, "FromCompanyID": "", "FromUserID": "", "ToCompanyID": "", "Payment": { "Type": "PurchaseOrder", "CreditCardID": "", "SpendingAccountID": "" }, "BillingAddressID": "", "ShippingAddressID": "", "ProjectedSubtotal": 0, "xp": {} }