Api key provided on integrations tab in Easyflow platform.
Get subscription
Returns the details of a subscription, including its recurrences and their payments.
Since 2026-10-30, the
business-idheader is required. Requests without it return401with the messageBusinessId is required.
- The API key must have read access to subscriptions, and its user must be a collaborator of the business sent in
business-id. - A
subscriptionIdthat is not a valid ID returns400withInvalid param: [id]. - Up to 120 requests per minute for each user (all API keys of the same user share the limit). Above that, the API returns
429with theRetry-Afterheader.
Headers
x-api-keystringrequiredx-api-secretstringrequiredApi Secret provided on integrations tab in Easyflow platform.
business-idstringrequiredBusiness Identifier
Path parameters
subscriptionIdstringrequired
Responses
200Returns the details of the subscription.
Returns the details of the subscription.
Content typeapplication/jsonobject
statusCodeintegerdataobjectShow child attributesHide child attributes
idstringnamestringoriginstringHow the subscription was created:
offer(from an offer),payment-link(from a payment link) orapi(directly through the API).subscribedAtstringperiodicitystringnumberRecurrencesintegerstatusstringStatus of the subscription.
subscriptionPaymentStatusstringPayment status of the subscription.
customerobjectShow child attributesHide child attributes
namestringemailstringphoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
billingAddressobjectShow child attributesHide child attributes
zipCodestringnullablestreetstringnullablenumberstringnullablecomplementstringnullableneighborhoodstringnullablecitystringnullablestatestringnullable
deliveryAddressobjectShow child attributesHide child attributes
zipCodestringnullablestreetstringnullablenumberstringnullablecomplementstringnullableneighborhoodstringnullablecitystringnullablestatestringnullable
documentobjectShow child attributesHide child attributes
typestringnumberstring
userIdstringexternalReferenceIdstring
orderItemobjectShow child attributesHide child attributes
idstringproductobjectnullableProduct of the subscription. It is
nullwhen the subscription has no product.Show child attributesHide child attributes
idstringnamestringbusinessIdstring
unitValueInCentsintegerquantityinteger
recurrenceValueInCentsintegerexpirationstringnullablepaymentMethodstringcreditCardobjectShow child attributesHide child attributes
nicknamestringnullablelast4NumbersstringholderNamestringexpiresAtMonthintegerexpiresAtYearintegerflagstring
repeatIndefinitelybooleancustomValueobjectShow child attributesHide child attributes
recurrenceFromintegerrecurrenceTointegervalueInCentsinteger
recurrencesarray of objectsShow child attributesHide child attributes
recurrenceintegerbillingDatestringdueDatestringpaidAtstringrecurrenceValueInCentsintegerstatusstringpaymentsarray of objectsShow child attributesHide child attributes
idstringstatusstringvaluePaidInCentsintegerexternalIdstringnullablefineValueInCentsintegerinstallmentsintegerinterestValueInCentsintegerpaymentMethodstringvalueInCentsinteger
400The subscription does not exist (message Invalid param: [subscriptionId]), or subscriptionId is not a valid ID (message Invalid param: [id]).
The subscription does not exist (message Invalid param: [subscriptionId]), or subscriptionId is not a valid ID (message Invalid param: [id]).
Content typeapplication/jsonobject
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode that identifies the error. Present only on some errors.
401The credential is missing or invalid, or the business-id header is missing (message BusinessId is required).
The credential is missing or invalid, or the business-id header is missing (message BusinessId is required).
Content typeapplication/jsonobject
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
403The API key has no read access to subscriptions, or its user is not a collaborator of the business sent in business-id.
The API key has no read access to subscriptions, or its user is not a collaborator of the business sent in business-id.
Content typeapplication/jsonobject
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
429More than 120 requests in a minute for the user (all API keys of the same user share the limit). The message is Too many requests, retry after the Retry-After seconds. Wait the number of seconds in the Retry-After header before sending a new request.
More than 120 requests in a minute for the user (all API keys of the same user share the limit). The message is Too many requests, retry after the Retry-After seconds. Wait the number of seconds in the Retry-After header before sending a new request.
Content typeapplication/jsonobject
statusCodeintegerHTTP status code.
messagestringExplanation of the error.
500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
Content typeapplication/jsonobject
statusCodeintegerHTTP status code.
messagestringExplanation of the error.