Skip to main content

Get subscription

METHODURL
GET/subscriptions/{subscriptionId}
EXAMPLEhttps://test.api.macropay.com/v2/subscriptions/{subscriptionId}

Endpoint to get subscription information.

SUCCESS RESPONSES - GET SUBSCRIPTION

HTTP CODEDESCRIPTION
200Subscription information is provided in the body in JSON format.

SUCCESS RESPONSE EXAMPLE - GET SUBSCRIPTION

{
"id": "0195146b-fb77-73b4-bb92-ba8bc2180433",
"planId": "4aa7c1e4-cf8c-4d1c-a6ad-451dd07411ee",
"status": "fulfilled",
"cycle": 0,
"createdAt": "2025-02-17T15:00:12.491953Z"
}

ERROR RESPONSES - GET SUBSCRIPTION

HTTP CODEERROR CODEERROR MESSAGEDESCRIPTION
4040020Subscription not foundSubscription %s not found
5000900Internal Server ErrorThe server experienced an unexpected error.