Run in Apidog
Requisição Forneça seu token bearer no cabeçalho Authorization
ao fazer requisições para recursos protegidos. Exemplo: Authorization: Bearer ********************
Parâmetros Body application/json
{
"billing" : {
"type" : "one_time" ,
"frequency" : null ,
"title" : "15 Caixa de frutas - Kiwi - Bruno3" ,
"description" : "lorem ipsum" ,
"amount" : 21000 ,
"customer_id" : 1
} ,
"payment_settings" : [
{
"max_installments" : 12 ,
"discount_percentage" : 0 ,
"billing_date" : "2024-10-29" ,
"payment_type_id" : 1
} ,
{
"max_installments" : 5 ,
"discount_percentage" : 0 ,
"billing_date" : "2024-10-29" ,
"payment_type_id" : 2
} ,
{
"max_installments" : 5 ,
"discount_percentage" : 0 ,
"billing_date" : "2024-10-29" ,
"payment_type_id" : 3
}
]
} Códigos de solicitação
curl --location --request POST 'https://sandbox.enterpay.com.br/api/billings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"billing": {
"type": "one_time",
"frequency": null,
"title": "15 Caixa de frutas - Kiwi - Bruno3",
"description": "lorem ipsum",
"amount": 21000,
"customer_id": 1
},
"payment_settings": [
{
"max_installments": 12,
"discount_percentage": 0,
"billing_date": "2024-10-29",
"payment_type_id": 1
},
{
"max_installments": 5,
"discount_percentage": 0,
"billing_date": "2024-10-29",
"payment_type_id": 2
},
{
"max_installments": 5,
"discount_percentage": 0,
"billing_date": "2024-10-29",
"payment_type_id": 3
}
]
}' Respostas application/json Gerar Código
{
"success" : true ,
"message" : "Operação realizada com sucesso." ,
"data" : {
"type" : "one_time" ,
"frequency" : null ,
"title" : "200 sacos de cimento CP3" ,
"description" : "lorem ipsum" ,
"amount" : 6500 ,
"customer_id" : 1 ,
"updated_at" : "2024-09-13T18:44:57.000000Z" ,
"created_at" : "2024-09-13T18:44:57.000000Z" ,
"id" : 4
}
} Modificado em 2024-10-04 21:00:07