Documentation
Feedback
Guides
API Reference

API Reference
Filter By
Post
Get
Put
Delete
Patch

Subscriptions API (v3)

Subscriptions is the VTEX solution for customers to make recurrent purchases at your store on a regular schedule. When customers subscribe, they define what products they want to acquire regularly and at what frequency they want these automatic orders to be created. For more information, see Subscriptions onboarding guide.

Index

Cycles

Plans

Reports

Subscriptions

Settings

Common parameters

Parameter name Description Type
{{accountName}} Name of the VTEX account. Used as part of the URL. Server variable.
{{environment}} Environment to use. Used as part of the URL. The default value is vtexcommercestable. Server variable.
X-VTEX-API-AppKey Unique identifier of the API key. Authentication header. Must be used together with X-VTEX-API-AppToken. Not necessary when using VtexIdclientAutCookie.
X-VTEX-API-AppToken Secret token of the API key. Authentication header. Must be used together with X-VTEX-API-AppKey. Not necessary when using VtexIdclientAutCookie.
VtexIdclientAutCookie User token, valid for 24 hours. Authentication header. Not necessary when using X-VTEX-API-AppKey and X-VTEX-API-AppToken.

Endpoints

Cycles

SummaryMethodPath
Get cycle detailsGET/api/rns/pub/cycles/{cycleId}
List cyclesGET/api/rns/pub/cycles
Retry cyclePOST/api/rns/pub/cycles/{cycleId}/retry

Plans

SummaryMethodPath
List plansGET/api/rns/pvt/plans
Get plan detailsGET/api/rns/pvt/plans/{id}

Reports

SummaryMethodPath
List report templatesGET/api/rns/pvt/reports
Get report document detailsGET/api/rns/pvt/reports/{reportName}/documents/{documentId}
Generate reportPOST/api/rns/pvt/reports/{reportName}/documents

Subscriptions

SummaryMethodPath
Get subscription details by IDGET/api/rns/pub/subscriptions/{id}
Update subscription by IDPATCH/api/rns/pub/subscriptions/{id}
List subscriptionsGET/api/rns/pub/subscriptions
Create subscriptionPOST/api/rns/pub/subscriptions
Remove item from subscriptionDELETE/api/rns/pub/subscriptions/{id}/items/{itemId}
Edit item from subscriptionPATCH/api/rns/pub/subscriptions/{id}/items/{itemId}
Add item to subscriptionPOST/api/rns/pub/subscriptions/{id}/items
Calculate the current prices for a subscriptionPOST/api/rns/pub/subscriptions/{id}/simulate
Calculate the current prices for the provided subscription templatePOST/api/rns/pub/subscriptions/simulate
Get conversation messagesGET/api/rns/pub/subscriptions/{subscriptionId}/conversation-message

Settings

SummaryMethodPath
Get subscriptions settingsGET/api/rns/settings
Edit subscriptions settingsPOST/api/rns/settings

Loading API specification...