MUDAR FORMA DE PAGAMENTO DE UMA RECORRÊNCIA
ENDPOINT UTILIZADO:
Em alguns casos se faz necessário realizar a troca da forma de pagamento da recorrência em questão. Nestes casos utiliza-se o endpoint abaixo:
Tipo de Operação: PUT
HEADER REQUEST:
BODY REQUEST MODELO:
{
"type": "Credit",
"card": {
"number": "string",
"securityCode": "string",
"expirationDate": {
"year": "string",
"month": "string"
},
"brand": "None",
"holder": {
"name": "string",
"socialNumber": "string",
"billingAddress": {
"country": "string",
"zipCode": "string",
"number": "string",
"street": "string",
"complement": "string",
"city": "string",
"state": "string",
"neighborhood": "string"
}
},
"saveCard": true,
"validate": true,
"autoCancelTransaction": true
},
"cardToken": {
"token": "string",
"securityCode": "string"
},
"boletoCustomerAddress": {
"country": "string",
"zipCode": "string",
"number": "string",
"street": "string",
"complement": "string",
"city": "string",
"state": "string",
"neighborhood": "string"
},
"pixCustomerAddress": {
"country": "string",
"zipCode": "string",
"number": "string",
"street": "string",
"complement": "string",
"city": "string",
"state": "string",
"neighborhood": "string"
},
"boletoCustomerEmail": "string",
"pixCustomerEmail": "string"
}
BODY RESPONSE MODELO:
{
"merchantOrderId": "string",
"customer": {
"tag": "string",
"name": "string",
"identity": "string",
"identityType": "string",
"email": "string",
"birthdate": "string",
"address": {
"country": "string",
"zipCode": "string",
"number": "string",
"street": "string",
"complement": "string",
"city": "string",
"state": "string",
"neighborhood": "string"
}
},
"startDate": "2023-12-04T20:28:25.480Z",
"endDate": "2023-12-04T20:28:25.480Z",
"nextRecurrenceDate": "2023-12-04T20:28:25.480Z",
"recurrenceDay": 0,
"recurrencePaymentType": "Credit",
"cardNumber": "string",
"cardToken": "string",
"recurrenceToken": "string",
"payments": [
{
"methodType": "Credit",
"token": "string",
"receivedDate": "2023-12-04T20:28:25.480Z"
}
],
"plan": {
"merchantPlanId": "string",
"name": "string",
"description": "string",
"interval": "Monthly",
"amount": 0,
"items": [
{
"itemToken": "string",
"merchantOrderId": "string",
"recurrenceToken": "string",
"amount": 0,
"description": "string",
"closeDate": "2023-12-04T20:28:25.480Z",
"status": "string",
"isRecurrent": "string",
"quantity": 0,
"referenceId": "string"
}
],
"created": "2023-12-04T20:28:25.480Z",
"active": true,
"isAutoRenewable": true,
"isAutoStarted": true
},
"status": "NotStarted",
"cancellationReason": "string",
"items": [
{
"itemToken": "string",
"merchantOrderId": "string",
"recurrenceToken": "string",
"amount": 0,
"description": "string",
"closeDate": "2023-12-04T20:28:25.480Z",
"status": "string",
"isRecurrent": "string",
"quantity": 0,
"referenceId": "string"
}
]
}