Checkout - Parcelamento
Criar regras de parcelamentos para um pagamento
Changed onCria uma nova regra de parcelamento para um tipo de pagamento específico com base nos dados fornecidos
post/{alias}/checkout/payments/{paymentId}/installments
Request
- Base URLhttps://api.dooki.com.br/v2
- URLhttps://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/installments
- AuthAPI key in header User-Token and API key in header User-Secret-Key
Path parameters
aliasstring required
Alias da loja
paymentIdinteger required
ID da forma de pagamento
Request body
Example request
{
"installments": [
{
"payment_id": 2,
"installment": 1,
"tax": 1.5
}
]
}Response
Regras de parcelamento criadas com sucesso
Example response
{
"data": [
{
"id": 1,
"payment_id": 2,
"installment": 1,
"tax": 1.5,
"start_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"end_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
]
}Changes
- info
added the media type
application/jsonfor the response with the status
- info