{
"eventId": "<string>",
"eventType": "SUBSCRIPTION_CREATED",
"data": {
"subscription": {
"id": "<string>",
"description": "<string>",
"status": "<string>",
"isActive": true,
"isCompleted": true,
"firstCollectionDate": "2023-11-07T05:31:56Z",
"lastCollectionDate": "2023-11-07T05:31:56Z",
"nextCollectionDate": "2023-11-07T05:31:56Z",
"numberOfPayments": 123,
"collectionMethod": "<string>",
"onlyAutomaticCollection": true,
"items": [
{
"description": "<string>",
"amount": 123,
"currency": "<string>",
"quantity": 123,
"conceptId": "<string>"
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"customer": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"organization": {
"id": "<string>",
"name": "<string>"
}
}
}Webhooks
Suscripción creada
Payload enviado cuando se crea una suscripción.
WEBHOOK
subscriptionCreated
{
"eventId": "<string>",
"eventType": "SUBSCRIPTION_CREATED",
"data": {
"subscription": {
"id": "<string>",
"description": "<string>",
"status": "<string>",
"isActive": true,
"isCompleted": true,
"firstCollectionDate": "2023-11-07T05:31:56Z",
"lastCollectionDate": "2023-11-07T05:31:56Z",
"nextCollectionDate": "2023-11-07T05:31:56Z",
"numberOfPayments": 123,
"collectionMethod": "<string>",
"onlyAutomaticCollection": true,
"items": [
{
"description": "<string>",
"amount": 123,
"currency": "<string>",
"quantity": 123,
"conceptId": "<string>"
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"customer": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"organization": {
"id": "<string>",
"name": "<string>"
}
}
}Body
application/json
Response
2XX
Webhook accepted by the receiver.
Was this page helpful?