Api key provided on integrations tab in Easyflow platform.
Filter subscription
Returns a list of subscriptions.
Headers
x-api-keystringrequiredx-api-secretstringrequiredApi Secret provided on integrations tab in Easyflow platform.
business-idstringrequiredBusiness Identifier
Query parameters
pageintegerrequiredPage number to access
limitintegerrequiredNumber of items to be loaded per page
Request body
Optional Fields for Subscription Filtering
Content typeapplication/jsonobject
emailstringnamestringinitialDatestringendDatestringstatusstringFilter by the specified status, such as: active, inactive, canceled, expired
initialValueintegerendValueintegertypestringFilter by the specified types, such as: credit-card, pix, bank-billet, crypto, debit-card
productIdsarray of stringsfieldstringorderByobjectShow child attributesHide child attributes
orderByFieldstringFilter by the specified field, such as: email, product, createdAt, recurrenceValueInCents, expiration
orderDirectionstringASC or DESC
Responses
200Returns a list of subscriptions.
Returns a list of subscriptions.
Content typeapplication/jsonobject
statusCodeintegerdataobjectShow child attributesHide child attributes
docsarray of objectsShow child attributesHide child attributes
idstringnamestringoriginstringHow the subscription was created:
offer(from an offer),payment-link(from a payment link) orapi(directly through the API).periodicitystringnumberRecurrencesintegerstatusstringStatus of the subscription.
subscriptionPaymentStatusstringPayment status of the subscription.
customerobjectShow child attributesHide child attributes
namestringemailstringphoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
billingAddressobjectShow child attributesHide child attributes
zipCodestringstreetstringnumberstringcomplementstringneighborhoodstringcitystringstatestring
deliveryAddressobjectShow child attributesHide child attributes
zipCodestringstreetstringnumberstringcomplementstringneighborhoodstringcitystringstatestring
documentobjectShow child attributesHide child attributes
typestringnumberstring
userIdstringexternalReferenceIdstring
recurrenceValueInCentsintegerexpirationstringpaymentMethodstringcreditCardobjectShow child attributesHide child attributes
nicknamestringlast4NumbersstringholderNamestringexpiresAtMonthintegerexpiresAtYearintegerflagstring
orderItemobjectShow child attributesHide child attributes
idstringproductobjectnullableProduct of the subscription. It is
nullwhen the subscription has no product.Show child attributesHide child attributes
idstringnamestring
unitValueInCentsintegerquantityinteger
repeatIndefinitelybooleancreatedAtstringsubscribedAtstringcustomValueobjectShow child attributesHide child attributes
recurrenceFromintegernullablerecurrenceTointegernullablevalueInCentsintegernullable
nextPaymentstring
limitintegercurrentPageintegernextPageintegernullabletotalPagesintegertotalDocsintegerhasNextboolean
400If the provided parameter is invalid, the API will return the following error response:
If the provided parameter is invalid, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode that identifies the error. Present only on some errors.
401If the request is unauthorized, the API will return the following error response:
If the request is unauthorized, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
403If the request is forbidden, the API will return the following error response:
If the request is forbidden, the API will return the following error response:
Content typeapplication/jsonobject
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
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.