CANCELANDO UM BOLETO

A nossa API conta com um endpoint para o cancelamento de um boleto. Caso haja a necessidade, basta utilizar a seguinte requisição:

Tipo de Operação: DELETE

/Orders/BoletoPayments/{paymentToken}

HEADER REQUEST:

BODY RESPONSE MODELO:

{

   "payment": {

     "paymentStatus": "Undefined",

     "boleto": {

       "amount": 0,

       "expirationDate": "2022-08-04T14:59:27.222Z",

       "emissionDate": "2022-08-04T14:59:27.222Z",

       "boletoNumber": "string",

       "digitableLine": "string",

       "boletoInstruction": [

         {

           "code": "string",

           "status": 0,

           "type": "string",

           "date": "2022-08-04T14:59:27.223Z",

           "value": "string"

         }

       ],

       "demonstrative": "string"

     },

     "received": [

       {

         "amount": 0,

         "abatement": 0,

         "discount": 0,

         "additions": 0,

         "processedDate": "2022-08-04T14:59:27.223Z",

         "creditDate": "2022-08-04T14:59:27.223Z"

       }

     ],

     "paymentToken": "string",

     "recurrencePlan": {

       "merchantPlanId": "string",

       "name": "string",

       "description": "string",

       "interval": "Monthly",

       "amount": 0,

       "created": "2022-08-04T14:59:27.223Z",

       "active": true,

       "isAutoRenewable": true

     },

     "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"

       }

     },

     "amount": 0

   },

   "merchantOrderId": "string"

 }