curl --request POST \
--url https://api.abacatepay.com/v1/billing/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"frequency": "ONE_TIME",
"methods": [
"PIX"
],
"products": [
{
"externalId": "prod-1234",
"name": "Assinatura de Programa Fitness",
"description": "Acesso ao programa fitness premium por 1 mês.",
"quantity": 2,
"price": 2000
}
],
"returnUrl": "https://example.com/billing",
"completionUrl": "https://example.com/completion",
"customerId": "cust_abcdefghij",
"customer": {
"name": "Daniel Lima",
"cellphone": "(11) 4002-8922",
"email": "[email protected]",
"taxId": "123.456.789-01"
},
"allowCoupons": false,
"coupons": [
"ABKT10",
"ABKT5",
"PROMO10"
],
"externalId": "seu_id_123",
"metadata": {
"externalId": "123"
}
}'