curl --request GET \
--url https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'
{
"id": "01985cf8-9877-7c09-bbf6-2cceb3384a61",
"customerId": "2a8b64ce-904c-4256-b79a-49525808609c",
"merchantId": "225d39bc-1fbb-480a-90bd-f0caad05d2d0",
"cycle": 1,
"status": "authorized",
"createdAt": "2025-07-30T20:14:12.599715Z",
"paymentHistory": [
{
"id": "84ec50c5-1fb4-4d6b-bbff-fedc47ba9fa3",
"createdAt": "2025-07-30T20:14:12.608115Z",
"chargeId": "6f2a0713-c4cd-4e2d-8603-69855902676d"
}
]
}
curl --request GET \
--url https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'
{
"id": "01985cf8-9877-7c09-bbf6-2cceb3384a61",
"customerId": "2a8b64ce-904c-4256-b79a-49525808609c",
"merchantId": "225d39bc-1fbb-480a-90bd-f0caad05d2d0",
"cycle": 1,
"status": "authorized",
"createdAt": "2025-07-30T20:14:12.599715Z",
"paymentHistory": [
{
"id": "84ec50c5-1fb4-4d6b-bbff-fedc47ba9fa3",
"createdAt": "2025-07-30T20:14:12.608115Z",
"chargeId": "6f2a0713-c4cd-4e2d-8603-69855902676d"
}
]
}
Success
The response is of type object
.
Was this page helpful?