BUSCAR RECORRÊNCIA POR NÚMERO DO PEDIDO

ENDPOINT UTILIZADO:

Fluxo utilizado para buscar os detalhes da recorrência identificada pelo número do pedido inserido na requisição. Tratá as informações em tela:

HEADER REQUEST:

BODY REQUEST MODELO:

Não há, basta informar os headers e direcionar as informações para o referido endpoint.

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-05T00:52:17.192Z",

  "endDate": "2023-12-05T00:52:17.192Z",

  "nextRecurrenceDate": "2023-12-05T00:52:17.192Z",

  "recurrenceDay": 0,

  "recurrencePaymentType": "Credit",

  "cardNumber": "string",

  "cardToken": "string",

  "recurrenceToken": "string",

  "payments": [

    {

      "methodType": "Credit",

      "token": "string",

      "receivedDate": "2023-12-05T00:52:17.192Z"

    }

  ],

  "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-05T00:52:17.192Z",

        "status": "string",

        "isRecurrent": "string",

        "quantity": 0,

        "referenceId": "string"

      }

    ],

    "created": "2023-12-05T00:52:17.192Z",

    "active": true,

    "isAutoRenewable": true,

    "isAutoStarted": true

  },

  "status": "NotStarted",

  "cancellationReason": "string",

  "items": [

    {

      "itemToken": "string",

      "merchantOrderId": "string",

      "recurrenceToken": "string",

      "amount": 0,

      "description": "string",

      "closeDate": "2023-12-05T00:52:17.192Z",

      "status": "string",

      "isRecurrent": "string",

      "quantity": 0,

      "referenceId": "string"

    }

  ]

}