Recuperar detalhes de um cycle específico
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>'const options = {method: 'GET', headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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",
"status": "authorized"
}
]
}Subscriptions
Recuperar detalhes de um cycle específico
GET
/
v1
/
subscriptions
/
{id}
/
cycles
/
{cycleId}
Recuperar detalhes de um cycle específico
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>'const options = {method: 'GET', headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/subscriptions/{id}/cycles/{cycleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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",
"status": "authorized"
}
]
}Response
200 - application/json
Success
Identificador do cycle
Example:
"01985cf8-9877-7c09-bbf6-2cceb3384a61"
Identificador do cliente
Example:
"2a8b64ce-904c-4256-b79a-49525808609c"
Identificador do merchant
Example:
"225d39bc-1fbb-480a-90bd-f0caad05d2d0"
Número do cycle
Example:
1
Status do cycle
Available options:
scheduled, pending, authorized, failed, retrying, canceled Example:
"authorized"
Data de criação do cycle
Example:
"2025-07-30T20:14:12.599715Z"
Histórico de pagamentos do cycle
Show child attributes
Show child attributes
Related topics
Recuperar detalhes de um vendedorWebhooks v1.1Recuperar detalhes de assinaturaSobre as APIs da MalgaWas this page helpful?
⌘I