{
  "info": {
    "name": "PayZu Gateway",
    "description": "API do PayZu Gateway: planos, assinaturas, faturas com a cobrança no cartão e no Pix, o cancelamento e o estorno, clientes, cartões salvos e token de cartão, contestações, checkout e webhooks.\n\nValores em centavos. Preencha `apiKey` com uma chave de API criada no painel do PayZu Gateway: as rotas da API do integrador a enviam como token Bearer. Preencha `checkoutKey` com a chave de checkout do painel: só o token de cartão e as rotas de plano e de assinatura do checkout a usam. As rotas da fatura e do link no checkout e o script de tokenização não pedem chave. Preencha `cardToken` com o `id` de Gerar um token de cartão: o token vale 15 minutos e serve para uma operação só.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.gateway.payzu.com.br"
    },
    {
      "key": "apiKey",
      "value": ""
    },
    {
      "key": "checkoutKey",
      "value": ""
    },
    {
      "key": "cardToken",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Autenticação",
      "item": [
        {
          "name": "Autenticar com a chave de API",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "pending",
                  "description": "Filtra pelo status da fatura.",
                  "disabled": true
                },
                {
                  "key": "payment_method",
                  "value": "credit_card",
                  "description": "Meio da última tentativa (payments[0]).",
                  "disabled": true
                },
                {
                  "key": "subscription_id",
                  "value": "",
                  "description": "Filtra pelo ID da assinatura.",
                  "disabled": true
                },
                {
                  "key": "customer_id",
                  "value": "",
                  "description": "Filtra pelo ID do cliente.",
                  "disabled": true
                },
                {
                  "key": "payment_link_id",
                  "value": "",
                  "description": "Filtra pelo ID do link de pagamento.",
                  "disabled": true
                },
                {
                  "key": "external_reference",
                  "value": "",
                  "description": "Filtra pela sua referência.",
                  "disabled": true
                },
                {
                  "key": "due_from",
                  "value": "",
                  "description": "Vencimento a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "due_to",
                  "value": "",
                  "description": "Vencimento até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "paid_from",
                  "value": "",
                  "description": "Pagas a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "paid_to",
                  "value": "",
                  "description": "Pagas até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "updated_from",
                  "value": "",
                  "description": "Alteradas a partir deste dia, no horário de Brasília, para sincronizar.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Busca na descrição, na sua referência e no código da assinatura, e no nome, no e-mail ou no documento do cliente.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                }
              ]
            },
            "description": "Autenticar com a chave de API"
          },
          "response": [
            {
              "name": "Chave aceita",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "pending",
                      "description": "Filtra pelo status da fatura.",
                      "disabled": true
                    },
                    {
                      "key": "payment_method",
                      "value": "credit_card",
                      "description": "Meio da última tentativa (payments[0]).",
                      "disabled": true
                    },
                    {
                      "key": "subscription_id",
                      "value": "",
                      "description": "Filtra pelo ID da assinatura.",
                      "disabled": true
                    },
                    {
                      "key": "customer_id",
                      "value": "",
                      "description": "Filtra pelo ID do cliente.",
                      "disabled": true
                    },
                    {
                      "key": "payment_link_id",
                      "value": "",
                      "description": "Filtra pelo ID do link de pagamento.",
                      "disabled": true
                    },
                    {
                      "key": "external_reference",
                      "value": "",
                      "description": "Filtra pela sua referência.",
                      "disabled": true
                    },
                    {
                      "key": "due_from",
                      "value": "",
                      "description": "Vencimento a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "due_to",
                      "value": "",
                      "description": "Vencimento até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "paid_from",
                      "value": "",
                      "description": "Pagas a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "paid_to",
                      "value": "",
                      "description": "Pagas até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "updated_from",
                      "value": "",
                      "description": "Alteradas a partir deste dia, no horário de Brasília, para sincronizar.",
                      "disabled": true
                    },
                    {
                      "key": "search",
                      "value": "",
                      "description": "Busca na descrição, na sua referência e no código da assinatura, e no nome, no e-mail ou no documento do cliente.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    }
                  ]
                }
              },
              "status": "Chave aceita",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"in_PSSHbv1eu5ZneriC2C3my4\",\n      \"status\": \"paid\",\n      \"url\": \"https://invoice.payzu.com.br/pay/in_PSSHbv1eu5ZneriC2C3my4\",\n      \"description\": \"Plano Mensal\",\n      \"external_reference\": null,\n      \"created_at\": \"2026-11-11T15:20:59.361Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.365Z\",\n      \"amounts\": {\n        \"subtotal\": 15990,\n        \"discount\": 1599,\n        \"total\": 14391,\n        \"paid\": 14391,\n        \"refunded\": 0\n      },\n      \"billing\": {\n        \"cycle_number\": 0,\n        \"due_at\": \"2026-11-11T15:20:59.361Z\",\n        \"expires_at\": \"2026-11-11T16:20:59.361Z\",\n        \"paid_at\": \"2026-11-11T15:20:59.363Z\",\n        \"canceled_at\": null,\n        \"refunded_at\": null,\n        \"chargedback_at\": null\n      },\n      \"items\": [\n        {\n          \"name\": \"Plano Mensal\",\n          \"sku\": null,\n          \"quantity\": 1,\n          \"unit_price\": 15990\n        }\n      ],\n      \"payment_settings\": {\n        \"accepted_methods\": [\n          \"credit_card\"\n        ],\n        \"credit_card\": {\n          \"max_installments\": 1\n        }\n      },\n      \"checkout\": {\n        \"redirect_url\": null,\n        \"cancel_url\": null\n      },\n      \"customer\": {\n        \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n        \"name\": \"Maria Souza\",\n        \"email\": \"maria@exemplo.com.br\",\n        \"document\": \"52998224725\",\n        \"document_type\": \"cpf\"\n      },\n      \"subscription\": {\n        \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n        \"code\": \"EELBD9PE\",\n        \"name\": \"Plano Mensal\"\n      },\n      \"payment_link\": null,\n      \"payments\": [\n        {\n          \"id\": \"pay_r9j4jAwhQdxwZUsHlBVGJT\",\n          \"status\": \"paid\",\n          \"method\": \"credit_card\",\n          \"amount\": 14391,\n          \"created_at\": \"2026-11-11T15:20:59.362Z\",\n          \"paid_at\": \"2026-11-11T15:20:59.363Z\",\n          \"failed_at\": null,\n          \"failure\": null,\n          \"credit_card\": {\n            \"installments\": 1,\n            \"authorization_code\": \"123456\",\n            \"card\": {\n              \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n              \"brand\": \"visa\",\n              \"last_digits\": \"1111\",\n              \"holder_name\": \"MARIA SOUZA\"\n            }\n          }\n        }\n      ],\n      \"refunds\": [],\n      \"cancellation\": null,\n      \"chargeback\": null,\n      \"metadata\": null\n    },\n    {\n      \"id\": \"in_5Hn9WqZc2LmXv6BtYr1dKe\",\n      \"status\": \"pending\",\n      \"url\": \"https://invoice.payzu.com.br/pay/in_5Hn9WqZc2LmXv6BtYr1dKe\",\n      \"description\": \"Pedido 1235\",\n      \"external_reference\": \"pedido-1235\",\n      \"created_at\": \"2026-11-11T15:20:59.344Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.345Z\",\n      \"amounts\": {\n        \"subtotal\": 5990,\n        \"discount\": 0,\n        \"total\": 5990,\n        \"paid\": 0,\n        \"refunded\": 0\n      },\n      \"billing\": {\n        \"cycle_number\": null,\n        \"due_at\": \"2026-11-11T15:20:59.344Z\",\n        \"expires_at\": \"2026-11-26T15:20:59.344Z\",\n        \"paid_at\": null,\n        \"canceled_at\": null,\n        \"refunded_at\": null,\n        \"chargedback_at\": null\n      },\n      \"items\": [\n        {\n          \"name\": \"Pedido 1235\",\n          \"sku\": null,\n          \"quantity\": 1,\n          \"unit_price\": 5990\n        }\n      ],\n      \"payment_settings\": {\n        \"accepted_methods\": [\n          \"credit_card\",\n          \"pix\"\n        ],\n        \"credit_card\": {\n          \"max_installments\": 12\n        }\n      },\n      \"checkout\": {\n        \"redirect_url\": null,\n        \"cancel_url\": null\n      },\n      \"customer\": {\n        \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n        \"name\": \"Maria Souza\",\n        \"email\": \"maria@exemplo.com.br\",\n        \"document\": \"52998224725\",\n        \"document_type\": \"cpf\"\n      },\n      \"subscription\": null,\n      \"payment_link\": null,\n      \"payments\": [\n        {\n          \"id\": \"pay_EHbu1cBNxmis3c7Ftz2Dg7\",\n          \"status\": \"pending\",\n          \"method\": \"pix\",\n          \"amount\": 5990,\n          \"created_at\": \"2026-11-11T15:20:59.344Z\",\n          \"paid_at\": null,\n          \"failed_at\": null,\n          \"failure\": null,\n          \"pix\": {\n            \"qr_code_text\": \"00020126MOCKEHbu1cBNxmis3c7Ftz2Dg7\",\n            \"expires_at\": \"2026-11-11T16:20:59.344Z\",\n            \"end_to_end_id\": null,\n            \"payer\": null\n          }\n        }\n      ],\n      \"refunds\": [],\n      \"cancellation\": null,\n      \"chargeback\": null,\n      \"metadata\": null\n    },\n    {\n      \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n      \"status\": \"paid\",\n      \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n      \"description\": \"Pedido 1234\",\n      \"external_reference\": \"pedido-1234\",\n      \"created_at\": \"2026-11-11T15:20:59.333Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.336Z\",\n      \"amounts\": {\n        \"subtotal\": 15990,\n        \"discount\": 0,\n        \"total\": 15990,\n        \"paid\": 15990,\n        \"refunded\": 0\n      },\n      \"billing\": {\n        \"cycle_number\": null,\n        \"due_at\": \"2026-11-11T15:20:59.333Z\",\n        \"expires_at\": \"2026-11-26T15:20:59.333Z\",\n        \"paid_at\": \"2026-11-11T15:20:59.335Z\",\n        \"canceled_at\": null,\n        \"refunded_at\": null,\n        \"chargedback_at\": null\n      },\n      \"items\": [\n        {\n          \"name\": \"Curso de fotografia\",\n          \"sku\": \"CURSO-01\",\n          \"quantity\": 1,\n          \"unit_price\": 15990\n        }\n      ],\n      \"payment_settings\": {\n        \"accepted_methods\": [\n          \"credit_card\",\n          \"pix\"\n        ],\n        \"credit_card\": {\n          \"max_installments\": 12\n        }\n      },\n      \"checkout\": {\n        \"redirect_url\": null,\n        \"cancel_url\": null\n      },\n      \"customer\": {\n        \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n        \"name\": \"Maria Souza\",\n        \"email\": \"maria@exemplo.com.br\",\n        \"document\": \"52998224725\",\n        \"document_type\": \"cpf\"\n      },\n      \"subscription\": null,\n      \"payment_link\": null,\n      \"payments\": [\n        {\n          \"id\": \"pay_Nfa3VKU4p0ojE3jMQeunRD\",\n          \"status\": \"paid\",\n          \"method\": \"credit_card\",\n          \"amount\": 15990,\n          \"created_at\": \"2026-11-11T15:20:59.333Z\",\n          \"paid_at\": \"2026-11-11T15:20:59.335Z\",\n          \"failed_at\": null,\n          \"failure\": null,\n          \"credit_card\": {\n            \"installments\": 1,\n            \"authorization_code\": \"123456\",\n            \"card\": {\n              \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n              \"brand\": \"visa\",\n              \"last_digits\": \"1111\",\n              \"holder_name\": \"MARIA SOUZA\"\n            }\n          }\n        }\n      ],\n      \"refunds\": [],\n      \"cancellation\": null,\n      \"chargeback\": null,\n      \"metadata\": {\n        \"internal_id\": \"1234\"\n      }\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Faturas",
      "item": [
        {
          "name": "Criar uma fatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices"
              ]
            },
            "description": "Criar uma fatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"description\": \"Pedido 1239\",\n  \"amount\": 9900,\n  \"customer\": {\n    \"name\": \"João Lima\",\n    \"email\": \"joao@exemplo.com.br\",\n    \"document\": \"11144477735\",\n    \"document_type\": \"cpf\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Fatura criada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices"
                  ]
                }
              },
              "status": "Fatura criada",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_4VbN7cXzQ2LmKd8WtRy5Ha\",\n  \"status\": \"pending\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_4VbN7cXzQ2LmKd8WtRy5Ha\",\n  \"description\": \"Pedido 1239\",\n  \"external_reference\": null,\n  \"created_at\": \"2026-11-11T15:27:45.090Z\",\n  \"updated_at\": \"2026-11-11T15:27:45.090Z\",\n  \"amounts\": {\n    \"subtotal\": 9900,\n    \"discount\": 0,\n    \"total\": 9900,\n    \"paid\": 0,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-11T15:27:45.090Z\",\n    \"expires_at\": \"2026-11-26T15:27:45.090Z\",\n    \"paid_at\": null,\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Pedido 1239\",\n      \"sku\": null,\n      \"quantity\": 1,\n      \"unit_price\": 9900\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 12\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": null,\n    \"cancel_url\": null\n  },\n  \"customer\": {\n    \"id\": \"cus_7RtW2mXcVb9LzYq4KdNh5E\",\n    \"name\": \"João Lima\",\n    \"email\": \"joao@exemplo.com.br\",\n    \"document\": \"11144477735\",\n    \"document_type\": \"cpf\"\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [],\n  \"refunds\": [],\n  \"cancellation\": null,\n  \"chargeback\": null,\n  \"metadata\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar uma fatura",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:invoice_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":invoice_id"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_7Kd2QmXvB9LtYc4WnRz8Hs",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Consultar uma fatura"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices/:invoice_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices",
                    ":invoice_id"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_7Kd2QmXvB9LtYc4WnRz8Hs",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n  \"status\": \"paid\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n  \"description\": \"Pedido 1234\",\n  \"external_reference\": \"pedido-1234\",\n  \"created_at\": \"2026-11-11T15:20:59.333Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.336Z\",\n  \"amounts\": {\n    \"subtotal\": 15990,\n    \"discount\": 0,\n    \"total\": 15990,\n    \"paid\": 15990,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-11T15:20:59.333Z\",\n    \"expires_at\": \"2026-11-26T15:20:59.333Z\",\n    \"paid_at\": \"2026-11-11T15:20:59.335Z\",\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Curso de fotografia\",\n      \"sku\": \"CURSO-01\",\n      \"quantity\": 1,\n      \"unit_price\": 15990\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 12\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": null,\n    \"cancel_url\": null\n  },\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [\n    {\n      \"id\": \"pay_Nfa3VKU4p0ojE3jMQeunRD\",\n      \"status\": \"paid\",\n      \"method\": \"credit_card\",\n      \"amount\": 15990,\n      \"created_at\": \"2026-11-11T15:20:59.333Z\",\n      \"paid_at\": \"2026-11-11T15:20:59.335Z\",\n      \"failed_at\": null,\n      \"failure\": null,\n      \"credit_card\": {\n        \"installments\": 1,\n        \"authorization_code\": \"123456\",\n        \"card\": {\n          \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n          \"brand\": \"visa\",\n          \"last_digits\": \"1111\",\n          \"holder_name\": \"MARIA SOUZA\"\n        }\n      }\n    }\n  ],\n  \"refunds\": [],\n  \"cancellation\": null,\n  \"chargeback\": null,\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Pagar uma fatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:invoice_id/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":invoice_id",
                "payments"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Pagar uma fatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"method\": \"credit_card\",\n  \"credit_card\": {\n    \"card_id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n    \"installments\": 3\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Tentativa feita",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices/:invoice_id/payments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices",
                    ":invoice_id",
                    "payments"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Tentativa feita",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"status\": \"paid\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"description\": \"Pedido 1236\",\n  \"external_reference\": \"pedido-1236\",\n  \"created_at\": \"2026-11-11T15:24:10.512Z\",\n  \"updated_at\": \"2026-11-11T15:26:02.414Z\",\n  \"amounts\": {\n    \"subtotal\": 20980,\n    \"discount\": 0,\n    \"total\": 20980,\n    \"paid\": 20980,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-18T03:00:00.000Z\",\n    \"expires_at\": \"2026-11-25T03:00:00.000Z\",\n    \"paid_at\": \"2026-11-11T15:26:02.412Z\",\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Curso de fotografia\",\n      \"sku\": \"CURSO-01\",\n      \"quantity\": 1,\n      \"unit_price\": 15990\n    },\n    {\n      \"name\": \"Apostila impressa\",\n      \"sku\": null,\n      \"quantity\": 2,\n      \"unit_price\": 2495\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 3\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\",\n    \"cancel_url\": \"https://loja.exemplo.com.br/carrinho\"\n  },\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [\n    {\n      \"id\": \"pay_8LqZ3nWcVb5TyXm2KdRh7E\",\n      \"status\": \"paid\",\n      \"method\": \"credit_card\",\n      \"amount\": 20980,\n      \"created_at\": \"2026-11-11T15:26:02.108Z\",\n      \"paid_at\": \"2026-11-11T15:26:02.412Z\",\n      \"failed_at\": null,\n      \"failure\": null,\n      \"credit_card\": {\n        \"installments\": 3,\n        \"authorization_code\": \"123456\",\n        \"card\": {\n          \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n          \"brand\": \"visa\",\n          \"last_digits\": \"1111\",\n          \"holder_name\": \"MARIA SOUZA\"\n        }\n      }\n    },\n    {\n      \"id\": \"pay_5NwK7xQcLb3MzYv9TdRh2E\",\n      \"status\": \"failed\",\n      \"method\": \"credit_card\",\n      \"amount\": 20980,\n      \"created_at\": \"2026-11-11T15:25:31.040Z\",\n      \"paid_at\": null,\n      \"failed_at\": \"2026-11-11T15:25:31.764Z\",\n      \"failure\": {\n        \"stage\": \"issuer\",\n        \"code\": \"PZ250\",\n        \"message\": \"O cartão não tem saldo ou limite para este valor. O cliente pode usar outro cartão.\"\n      },\n      \"credit_card\": {\n        \"installments\": 3,\n        \"authorization_code\": null,\n        \"card\": {\n          \"id\": null,\n          \"brand\": \"mastercard\",\n          \"last_digits\": \"5454\",\n          \"holder_name\": \"MARIA SOUZA\"\n        }\n      }\n    }\n  ],\n  \"refunds\": [],\n  \"cancellation\": null,\n  \"chargeback\": null,\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Cancelar uma fatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:invoice_id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":invoice_id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_5Hn9WqZc2LmXv6BtYr1dKe",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Cancelar uma fatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"note\": \"Cliente desistiu da compra\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Fatura cancelada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices/:invoice_id/cancel",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices",
                    ":invoice_id",
                    "cancel"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_5Hn9WqZc2LmXv6BtYr1dKe",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Fatura cancelada",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_5Hn9WqZc2LmXv6BtYr1dKe\",\n  \"status\": \"canceled\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_5Hn9WqZc2LmXv6BtYr1dKe\",\n  \"description\": \"Pedido 1235\",\n  \"external_reference\": \"pedido-1235\",\n  \"created_at\": \"2026-11-11T15:20:59.344Z\",\n  \"updated_at\": \"2026-11-11T15:31:04.118Z\",\n  \"amounts\": {\n    \"subtotal\": 5990,\n    \"discount\": 0,\n    \"total\": 5990,\n    \"paid\": 0,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-11T15:20:59.344Z\",\n    \"expires_at\": \"2026-11-26T15:20:59.344Z\",\n    \"paid_at\": null,\n    \"canceled_at\": \"2026-11-11T15:31:04.118Z\",\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Pedido 1235\",\n      \"sku\": null,\n      \"quantity\": 1,\n      \"unit_price\": 5990\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 12\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": null,\n    \"cancel_url\": null\n  },\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [\n    {\n      \"id\": \"pay_EHbu1cBNxmis3c7Ftz2Dg7\",\n      \"status\": \"pending\",\n      \"method\": \"pix\",\n      \"amount\": 5990,\n      \"created_at\": \"2026-11-11T15:20:59.344Z\",\n      \"paid_at\": null,\n      \"failed_at\": null,\n      \"failure\": null,\n      \"pix\": {\n        \"qr_code_text\": \"00020126MOCKEHbu1cBNxmis3c7Ftz2Dg7\",\n        \"expires_at\": \"2026-11-11T16:20:59.344Z\",\n        \"end_to_end_id\": null,\n        \"payer\": null\n      }\n    }\n  ],\n  \"refunds\": [],\n  \"cancellation\": {\n    \"reason\": \"merchant_request\",\n    \"note\": \"Cliente desistiu da compra\"\n  },\n  \"chargeback\": null,\n  \"metadata\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Estornar uma fatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:invoice_id/refunds",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":invoice_id",
                "refunds"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_2WcN6xQmLb9TzYv4KdRh8E",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Estornar uma fatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"cancel_subscription\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Estorno pedido",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices/:invoice_id/refunds",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "invoices",
                    ":invoice_id",
                    "refunds"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_2WcN6xQmLb9TzYv4KdRh8E",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Estorno pedido",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_2WcN6xQmLb9TzYv4KdRh8E\",\n  \"status\": \"refunded\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_2WcN6xQmLb9TzYv4KdRh8E\",\n  \"description\": \"Mentoria individual\",\n  \"external_reference\": null,\n  \"created_at\": \"2026-11-11T15:32:07.510Z\",\n  \"updated_at\": \"2026-11-13T14:10:26.381Z\",\n  \"amounts\": {\n    \"subtotal\": 49900,\n    \"discount\": 0,\n    \"total\": 49900,\n    \"paid\": 49900,\n    \"refunded\": 49900\n  },\n  \"billing\": {\n    \"cycle_number\": 0,\n    \"due_at\": \"2026-11-11T15:32:07.510Z\",\n    \"expires_at\": \"2026-11-11T16:32:07.510Z\",\n    \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n    \"canceled_at\": null,\n    \"refunded_at\": \"2026-11-13T14:10:26.380Z\",\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Mentoria individual\",\n      \"sku\": null,\n      \"quantity\": 1,\n      \"unit_price\": 49900\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 1\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": null,\n    \"cancel_url\": null\n  },\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"subscription\": {\n    \"id\": \"sub_7Qm2xVbTn4KcYd9LwRzH3a\",\n    \"code\": \"K7T2M9QA\",\n    \"name\": \"Mentoria individual\"\n  },\n  \"payment_link\": null,\n  \"payments\": [\n    {\n      \"id\": \"pay_4Hn8sWqZ2LmXc6VbTyR1dE\",\n      \"status\": \"refunded\",\n      \"method\": \"credit_card\",\n      \"amount\": 49900,\n      \"created_at\": \"2026-11-11T15:32:07.512Z\",\n      \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n      \"failed_at\": null,\n      \"failure\": null,\n      \"credit_card\": {\n        \"installments\": 1,\n        \"authorization_code\": \"123456\",\n        \"card\": {\n          \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n          \"brand\": \"visa\",\n          \"last_digits\": \"1111\",\n          \"holder_name\": \"MARIA SOUZA\"\n        }\n      }\n    }\n  ],\n  \"refunds\": [\n    {\n      \"id\": \"rfd_8WqL5nXcVb2TzYm7KdRh4E\",\n      \"status\": \"confirmed\",\n      \"amount\": 49900,\n      \"requested_at\": \"2026-11-13T14:10:25.978Z\",\n      \"confirmed_at\": \"2026-11-13T14:10:26.380Z\",\n      \"failed_at\": null,\n      \"failure\": null\n    }\n  ],\n  \"cancellation\": null,\n  \"chargeback\": null,\n  \"metadata\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Planos",
      "item": [
        {
          "name": "Listar os planos",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/plans?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "plans"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                },
                {
                  "key": "status",
                  "value": "active",
                  "description": "Filtra pelo status do plano.",
                  "disabled": true
                },
                {
                  "key": "recurrence",
                  "value": "monthly",
                  "description": "Filtra pela periodicidade.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Busca no nome do plano.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                }
              ]
            },
            "description": "Listar os planos"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/plans?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "plans"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    },
                    {
                      "key": "status",
                      "value": "active",
                      "description": "Filtra pelo status do plano.",
                      "disabled": true
                    },
                    {
                      "key": "recurrence",
                      "value": "monthly",
                      "description": "Filtra pela periodicidade.",
                      "disabled": true
                    },
                    {
                      "key": "search",
                      "value": "",
                      "description": "Busca no nome do plano.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n      \"status\": \"active\",\n      \"url\": \"https://invoice.payzu.com.br/checkout/jdUWa_UHtX_7a-vtN_NChU7bug_IbxizyqDEN2X0000/plano-mensal\",\n      \"name\": \"Plano Mensal\",\n      \"description\": \"Acesso mensal à plataforma e ao suporte\",\n      \"amount\": 15990,\n      \"recurrence\": \"monthly\",\n      \"created_at\": \"2026-11-11T15:20:59.297Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.306Z\",\n      \"payment_settings\": {\n        \"accepted_methods\": [\n          \"credit_card\",\n          \"pix\"\n        ]\n      },\n      \"checkout\": {\n        \"slug\": \"plano-mensal\",\n        \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n        \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n      },\n      \"discount\": {\n        \"type\": \"percentage\",\n        \"value\": 10,\n        \"cycles\": 3,\n        \"internal_description\": \"Campanha de novembro\",\n        \"public_description\": \"10% nos 3 primeiros meses\"\n      },\n      \"metadata\": {\n        \"internal_id\": \"1234\"\n      }\n    },\n    {\n      \"id\": \"plan_seedlocala0000000000\",\n      \"status\": \"active\",\n      \"url\": \"https://invoice.payzu.com.br/checkout/jdUWa_UHtX_7a-vtN_NChU7bug_IbxizyqDEN2X0000/mensal\",\n      \"name\": \"Plano Mensal A\",\n      \"description\": \"Plano de teste criado pelo seed local\",\n      \"amount\": 8990,\n      \"recurrence\": \"monthly\",\n      \"created_at\": \"2026-11-11T15:20:57.730Z\",\n      \"updated_at\": \"2026-11-11T15:20:57.730Z\",\n      \"payment_settings\": {\n        \"accepted_methods\": [\n          \"credit_card\",\n          \"pix\"\n        ]\n      },\n      \"checkout\": {\n        \"slug\": \"mensal\",\n        \"logo_url\": null,\n        \"redirect_url\": null\n      },\n      \"discount\": null,\n      \"metadata\": null\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Criar um plano",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/plans",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "plans"
              ]
            },
            "description": "Criar um plano",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Plano Mensal\",\n  \"description\": \"Acesso mensal à plataforma\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ]\n  },\n  \"checkout\": {\n    \"slug\": \"plano-mensal\",\n    \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Plano criado",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/plans",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "plans"
                  ]
                }
              },
              "status": "Plano criado",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n  \"status\": \"active\",\n  \"url\": \"https://invoice.payzu.com.br/checkout/jdUWa_UHtX_7a-vtN_NChU7bug_IbxizyqDEN2X0000/plano-mensal\",\n  \"name\": \"Plano Mensal\",\n  \"description\": \"Acesso mensal à plataforma\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"created_at\": \"2026-11-11T15:20:59.297Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.297Z\",\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ]\n  },\n  \"checkout\": {\n    \"slug\": \"plano-mensal\",\n    \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um plano",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/plans/:plan_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "plans",
                ":plan_id"
              ],
              "variable": [
                {
                  "key": "plan_id",
                  "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                  "description": "ID do plano."
                }
              ]
            },
            "description": "Consultar um plano"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/plans/:plan_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "plans",
                    ":plan_id"
                  ],
                  "variable": [
                    {
                      "key": "plan_id",
                      "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                      "description": "ID do plano."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n  \"status\": \"active\",\n  \"url\": \"https://invoice.payzu.com.br/checkout/jdUWa_UHtX_7a-vtN_NChU7bug_IbxizyqDEN2X0000/plano-mensal\",\n  \"name\": \"Plano Mensal\",\n  \"description\": \"Acesso mensal à plataforma\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"created_at\": \"2026-11-11T15:20:59.297Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.297Z\",\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ]\n  },\n  \"checkout\": {\n    \"slug\": \"plano-mensal\",\n    \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar um plano",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/plans/:plan_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "plans",
                ":plan_id"
              ],
              "variable": [
                {
                  "key": "plan_id",
                  "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                  "description": "ID do plano."
                }
              ]
            },
            "description": "Alterar um plano",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"description\": \"Acesso mensal à plataforma e ao suporte\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/plans/:plan_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "plans",
                    ":plan_id"
                  ],
                  "variable": [
                    {
                      "key": "plan_id",
                      "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                      "description": "ID do plano."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n  \"status\": \"active\",\n  \"url\": \"https://invoice.payzu.com.br/checkout/jdUWa_UHtX_7a-vtN_NChU7bug_IbxizyqDEN2X0000/plano-mensal\",\n  \"name\": \"Plano Mensal\",\n  \"description\": \"Acesso mensal à plataforma e ao suporte\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"created_at\": \"2026-11-11T15:20:59.297Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.306Z\",\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ]\n  },\n  \"checkout\": {\n    \"slug\": \"plano-mensal\",\n    \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Excluir um plano",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/plans/:plan_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "plans",
                ":plan_id"
              ],
              "variable": [
                {
                  "key": "plan_id",
                  "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                  "description": "ID do plano."
                }
              ]
            },
            "description": "Excluir um plano"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Assinaturas",
      "item": [
        {
          "name": "Criar uma assinatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions"
              ]
            },
            "description": "Criar uma assinatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"payment_method\": \"credit_card\",\n  \"credit_card\": {\n    \"card_id\": \"card_GL2pIWf5pznF4qwg2KKd5v\"\n  },\n  \"customer_id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n  \"plan_id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Assinatura criada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions"
                  ]
                }
              },
              "status": "Assinatura criada",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"active\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.366Z\",\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null,\n    \"renewal_failures\": 0\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"previous_cancellations\": [],\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"invoice\": {\n    \"id\": \"in_PSSHbv1eu5ZneriC2C3my4\",\n    \"status\": \"paid\",\n    \"url\": \"https://invoice.payzu.com.br/pay/in_PSSHbv1eu5ZneriC2C3my4\",\n    \"description\": \"Plano Mensal\",\n    \"external_reference\": null,\n    \"created_at\": \"2026-11-11T15:20:59.361Z\",\n    \"updated_at\": \"2026-11-11T15:20:59.365Z\",\n    \"amounts\": {\n      \"subtotal\": 15990,\n      \"discount\": 1599,\n      \"total\": 14391,\n      \"paid\": 14391,\n      \"refunded\": 0\n    },\n    \"billing\": {\n      \"cycle_number\": 0,\n      \"due_at\": \"2026-11-11T15:20:59.361Z\",\n      \"expires_at\": \"2026-11-11T16:20:59.361Z\",\n      \"paid_at\": \"2026-11-11T15:20:59.363Z\",\n      \"canceled_at\": null,\n      \"refunded_at\": null,\n      \"chargedback_at\": null\n    },\n    \"items\": [\n      {\n        \"name\": \"Plano Mensal\",\n        \"sku\": null,\n        \"quantity\": 1,\n        \"unit_price\": 15990\n      }\n    ],\n    \"payment_settings\": {\n      \"accepted_methods\": [\n        \"credit_card\"\n      ],\n      \"credit_card\": {\n        \"max_installments\": 1\n      }\n    },\n    \"checkout\": {\n      \"redirect_url\": null,\n      \"cancel_url\": null\n    },\n    \"customer\": {\n      \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n      \"name\": \"Maria Souza\",\n      \"email\": \"maria@exemplo.com.br\",\n      \"document\": \"52998224725\",\n      \"document_type\": \"cpf\"\n    },\n    \"subscription\": {\n      \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n      \"code\": \"EELBD9PE\",\n      \"name\": \"Plano Mensal\"\n    },\n    \"payment_link\": null,\n    \"payments\": [\n      {\n        \"id\": \"pay_r9j4jAwhQdxwZUsHlBVGJT\",\n        \"status\": \"paid\",\n        \"method\": \"credit_card\",\n        \"amount\": 14391,\n        \"created_at\": \"2026-11-11T15:20:59.362Z\",\n        \"paid_at\": \"2026-11-11T15:20:59.363Z\",\n        \"failed_at\": null,\n        \"failure\": null,\n        \"credit_card\": {\n          \"installments\": 1,\n          \"authorization_code\": \"123456\",\n          \"card\": {\n            \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n            \"brand\": \"visa\",\n            \"last_digits\": \"1111\",\n            \"holder_name\": \"MARIA SOUZA\"\n          }\n        }\n      }\n    ],\n    \"refunds\": [],\n    \"cancellation\": null,\n    \"chargeback\": null,\n    \"metadata\": null\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar uma assinatura",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions",
                ":subscription_id"
              ],
              "variable": [
                {
                  "key": "subscription_id",
                  "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                  "description": "ID da assinatura."
                }
              ]
            },
            "description": "Consultar uma assinatura"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions",
                    ":subscription_id"
                  ],
                  "variable": [
                    {
                      "key": "subscription_id",
                      "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                      "description": "ID da assinatura."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"active\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.366Z\",\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null,\n    \"renewal_failures\": 0\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"previous_cancellations\": [],\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar uma assinatura",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions",
                ":subscription_id"
              ],
              "variable": [
                {
                  "key": "subscription_id",
                  "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                  "description": "ID da assinatura."
                }
              ]
            },
            "description": "Alterar uma assinatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": 16990,\n  \"metadata\": {\n    \"internal_id\": \"5678\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions",
                    ":subscription_id"
                  ],
                  "variable": [
                    {
                      "key": "subscription_id",
                      "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                      "description": "ID da assinatura."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"active\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 16990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-11T15:40:12.007Z\",\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null,\n    \"renewal_failures\": 0\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"previous_cancellations\": [],\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"5678\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Cancelar uma assinatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions",
                ":subscription_id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "subscription_id",
                  "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                  "description": "ID da assinatura."
                }
              ]
            },
            "description": "Cancelar uma assinatura",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"note\": \"Cliente pediu o cancelamento\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Assinatura cancelada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id/cancel",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions",
                    ":subscription_id",
                    "cancel"
                  ],
                  "variable": [
                    {
                      "key": "subscription_id",
                      "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                      "description": "ID da assinatura."
                    }
                  ]
                }
              },
              "status": "Assinatura cancelada",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"canceled\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-20T14:02:11.438Z\",\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": null,\n    \"canceled_at\": \"2026-11-20T14:02:11.438Z\",\n    \"renewal_failures\": 0\n  },\n  \"grace\": null,\n  \"cancellation\": {\n    \"reason\": \"merchant_request\",\n    \"note\": \"Cliente pediu o cancelamento\"\n  },\n  \"previous_cancellations\": [],\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Reativar uma assinatura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id/reactivate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions",
                ":subscription_id",
                "reactivate"
              ],
              "variable": [
                {
                  "key": "subscription_id",
                  "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                  "description": "ID da assinatura."
                }
              ]
            },
            "description": "Reativar uma assinatura"
          },
          "response": [
            {
              "name": "Assinatura reativada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions/:subscription_id/reactivate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions",
                    ":subscription_id",
                    "reactivate"
                  ],
                  "variable": [
                    {
                      "key": "subscription_id",
                      "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                      "description": "ID da assinatura."
                    }
                  ]
                }
              },
              "status": "Assinatura reativada",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"active\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-25T10:05:44.310Z\",\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null,\n    \"renewal_failures\": 0\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"previous_cancellations\": [\n    {\n      \"canceled_at\": \"2026-11-20T14:02:11.438Z\",\n      \"reason\": \"merchant_request\",\n      \"note\": \"Cliente pediu o cancelamento\",\n      \"reactivated_at\": \"2026-11-25T10:05:44.310Z\"\n    }\n  ],\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"internal_description\": \"Campanha de novembro\",\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Listar as assinaturas",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/subscriptions?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "subscriptions"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "active",
                  "description": "Filtra pelo status da assinatura.",
                  "disabled": true
                },
                {
                  "key": "plan_id",
                  "value": "",
                  "description": "Assinaturas deste plano; as avulsas ficam de fora.",
                  "disabled": true
                },
                {
                  "key": "customer_id",
                  "value": "",
                  "description": "Filtra pelo ID do cliente.",
                  "disabled": true
                },
                {
                  "key": "next_from",
                  "value": "",
                  "description": "Próximo ciclo a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "next_to",
                  "value": "",
                  "description": "Próximo ciclo até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Busca no código da assinatura e no nome, no e-mail ou no documento do cliente.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                }
              ]
            },
            "description": "Listar as assinaturas"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/subscriptions?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "subscriptions"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "active",
                      "description": "Filtra pelo status da assinatura.",
                      "disabled": true
                    },
                    {
                      "key": "plan_id",
                      "value": "",
                      "description": "Assinaturas deste plano; as avulsas ficam de fora.",
                      "disabled": true
                    },
                    {
                      "key": "customer_id",
                      "value": "",
                      "description": "Filtra pelo ID do cliente.",
                      "disabled": true
                    },
                    {
                      "key": "next_from",
                      "value": "",
                      "description": "Próximo ciclo a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "next_to",
                      "value": "",
                      "description": "Próximo ciclo até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "search",
                      "value": "",
                      "description": "Busca no código da assinatura e no nome, no e-mail ou no documento do cliente.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n      \"code\": \"EELBD9PE\",\n      \"status\": \"active\",\n      \"name\": \"Plano Mensal\",\n      \"amount\": 15990,\n      \"recurrence\": \"monthly\",\n      \"payment_method\": \"credit_card\",\n      \"created_at\": \"2026-11-11T15:20:59.359Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.366Z\",\n      \"credit_card\": {\n        \"card\": {\n          \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n          \"brand\": \"visa\",\n          \"last_digits\": \"1111\",\n          \"holder_name\": \"MARIA SOUZA\"\n        }\n      },\n      \"billing\": {\n        \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n        \"next_at\": \"2026-12-11T15:20:59.362Z\",\n        \"canceled_at\": null,\n        \"renewal_failures\": 0\n      },\n      \"grace\": null,\n      \"cancellation\": null,\n      \"previous_cancellations\": [],\n      \"customer\": {\n        \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n        \"name\": \"Maria Souza\",\n        \"email\": \"maria@exemplo.com.br\",\n        \"document\": \"52998224725\",\n        \"document_type\": \"cpf\"\n      },\n      \"plan\": {\n        \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n        \"name\": \"Plano Mensal\"\n      },\n      \"discount\": {\n        \"type\": \"percentage\",\n        \"value\": 10,\n        \"cycles\": 3,\n        \"internal_description\": \"Campanha de novembro\",\n        \"public_description\": \"10% nos 3 primeiros meses\"\n      },\n      \"metadata\": {\n        \"internal_id\": \"1234\"\n      }\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Clientes",
      "item": [
        {
          "name": "Listar os clientes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers"
              ],
              "query": [
                {
                  "key": "subscription_status",
                  "value": "active",
                  "description": "Clientes com assinatura neste status.",
                  "disabled": true
                },
                {
                  "key": "plan_id",
                  "value": "",
                  "description": "Clientes com assinatura deste plano.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Busca no nome, no e-mail, no documento ou no celular do cliente.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                }
              ]
            },
            "description": "Listar os clientes"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers"
                  ],
                  "query": [
                    {
                      "key": "subscription_status",
                      "value": "active",
                      "description": "Clientes com assinatura neste status.",
                      "disabled": true
                    },
                    {
                      "key": "plan_id",
                      "value": "",
                      "description": "Clientes com assinatura deste plano.",
                      "disabled": true
                    },
                    {
                      "key": "search",
                      "value": "",
                      "description": "Busca no nome, no e-mail, no documento ou no celular do cliente.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n      \"name\": \"Maria Souza\",\n      \"email\": \"maria@exemplo.com.br\",\n      \"phone\": \"11912345678\",\n      \"birthdate\": \"1990-05-20\",\n      \"document\": \"52998224725\",\n      \"document_type\": \"cpf\",\n      \"created_at\": \"2026-11-11T15:20:59.318Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.325Z\",\n      \"address\": {\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1000\",\n        \"complement\": \"Sala 14\",\n        \"district\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zip_code\": \"01310100\",\n        \"country\": \"BR\"\n      },\n      \"metadata\": {\n        \"internal_id\": \"1234\"\n      }\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Criar um cliente",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers"
              ]
            },
            "description": "Criar um cliente",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Maria Souza\",\n  \"email\": \"maria@exemplo.com.br\",\n  \"phone\": \"11987654321\",\n  \"birthdate\": \"1990-05-20\",\n  \"document\": \"52998224725\",\n  \"document_type\": \"cpf\",\n  \"address\": {\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"complement\": \"Sala 12\",\n    \"district\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"zip_code\": \"01310100\",\n    \"country\": \"BR\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Cliente criado",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers"
                  ]
                }
              },
              "status": "Cliente criado",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n  \"name\": \"Maria Souza\",\n  \"email\": \"maria@exemplo.com.br\",\n  \"phone\": \"11987654321\",\n  \"birthdate\": \"1990-05-20\",\n  \"document\": \"52998224725\",\n  \"document_type\": \"cpf\",\n  \"created_at\": \"2026-11-11T15:20:59.318Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.318Z\",\n  \"address\": {\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"complement\": \"Sala 12\",\n    \"district\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"zip_code\": \"01310100\",\n    \"country\": \"BR\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um cliente",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                }
              ]
            },
            "description": "Consultar um cliente"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id"
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n  \"name\": \"Maria Souza\",\n  \"email\": \"maria@exemplo.com.br\",\n  \"phone\": \"11987654321\",\n  \"birthdate\": \"1990-05-20\",\n  \"document\": \"52998224725\",\n  \"document_type\": \"cpf\",\n  \"created_at\": \"2026-11-11T15:20:59.318Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.318Z\",\n  \"address\": {\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"complement\": \"Sala 12\",\n    \"district\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"zip_code\": \"01310100\",\n    \"country\": \"BR\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar um cliente",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                }
              ]
            },
            "description": "Alterar um cliente",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"11912345678\",\n  \"address\": {\n    \"complement\": \"Sala 14\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id"
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n  \"name\": \"Maria Souza\",\n  \"email\": \"maria@exemplo.com.br\",\n  \"phone\": \"11912345678\",\n  \"birthdate\": \"1990-05-20\",\n  \"document\": \"52998224725\",\n  \"document_type\": \"cpf\",\n  \"created_at\": \"2026-11-11T15:20:59.318Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.325Z\",\n  \"address\": {\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"complement\": \"Sala 14\",\n    \"district\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"zip_code\": \"01310100\",\n    \"country\": \"BR\"\n  },\n  \"metadata\": {\n    \"internal_id\": \"1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Excluir um cliente",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                }
              ]
            },
            "description": "Excluir um cliente"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Cartões",
      "item": [
        {
          "name": "Listar os cartões salvos de um cliente",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id/cards?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id",
                "cards"
              ],
              "query": [
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                }
              ]
            },
            "description": "Listar os cartões salvos de um cliente"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id/cards?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id",
                    "cards"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    }
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"brand\": \"visa\",\n      \"last_digits\": \"1111\",\n      \"expiration\": \"12/2030\",\n      \"holder_name\": \"MARIA SOUZA\",\n      \"last_used_at\": \"2026-11-11T15:20:59.338Z\",\n      \"created_at\": \"2026-11-11T15:20:59.332Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.332Z\"\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Salvar um cartão",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id/cards",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id",
                "cards"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                }
              ]
            },
            "description": "Salvar um cartão",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"card_token\": \"{{cardToken}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Cartão salvo",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id/cards",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id",
                    "cards"
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    }
                  ]
                }
              },
              "status": "Cartão salvo",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"card_6WnQ2xLmVb8TzYc4KdRh3E\",\n  \"brand\": \"visa\",\n  \"last_digits\": \"1111\",\n  \"expiration\": \"12/2030\",\n  \"holder_name\": \"MARIA SOUZA\",\n  \"last_used_at\": null,\n  \"created_at\": \"2026-11-11T15:22:41.207Z\",\n  \"updated_at\": \"2026-11-11T15:22:41.207Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um cartão salvo",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id/cards/:card_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id",
                "cards",
                ":card_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                },
                {
                  "key": "card_id",
                  "value": "card_GL2pIWf5pznF4qwg2KKd5v",
                  "description": "ID do cartão salvo."
                }
              ]
            },
            "description": "Consultar um cartão salvo"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id/cards/:card_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id",
                    "cards",
                    ":card_id"
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    },
                    {
                      "key": "card_id",
                      "value": "card_GL2pIWf5pznF4qwg2KKd5v",
                      "description": "ID do cartão salvo."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n  \"brand\": \"visa\",\n  \"last_digits\": \"1111\",\n  \"expiration\": \"12/2030\",\n  \"holder_name\": \"MARIA SOUZA\",\n  \"last_used_at\": \"2026-11-11T15:20:59.338Z\",\n  \"created_at\": \"2026-11-11T15:20:59.332Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.332Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar um cartão salvo",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id/cards/:card_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id",
                "cards",
                ":card_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                },
                {
                  "key": "card_id",
                  "value": "card_GL2pIWf5pznF4qwg2KKd5v",
                  "description": "ID do cartão salvo."
                }
              ]
            },
            "description": "Alterar um cartão salvo",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expiration\": \"12/2032\",\n  \"holder_name\": \"MARIA S SOUZA\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/customers/:customer_id/cards/:card_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "customers",
                    ":customer_id",
                    "cards",
                    ":card_id"
                  ],
                  "variable": [
                    {
                      "key": "customer_id",
                      "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                      "description": "ID do cliente."
                    },
                    {
                      "key": "card_id",
                      "value": "card_GL2pIWf5pznF4qwg2KKd5v",
                      "description": "ID do cartão salvo."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n  \"brand\": \"visa\",\n  \"last_digits\": \"1111\",\n  \"expiration\": \"12/2032\",\n  \"holder_name\": \"MARIA S SOUZA\",\n  \"last_used_at\": \"2026-11-11T15:20:59.338Z\",\n  \"created_at\": \"2026-11-11T15:20:59.332Z\",\n  \"updated_at\": \"2026-11-11T15:44:18.660Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Excluir um cartão salvo",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:customer_id/cards/:card_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":customer_id",
                "cards",
                ":card_id"
              ],
              "variable": [
                {
                  "key": "customer_id",
                  "value": "cus_bdQT0ls1QMIXVuhngvhbwC",
                  "description": "ID do cliente."
                },
                {
                  "key": "card_id",
                  "value": "card_GL2pIWf5pznF4qwg2KKd5v",
                  "description": "ID do cartão salvo."
                }
              ]
            },
            "description": "Excluir um cartão salvo"
          },
          "response": []
        },
        {
          "name": "Gerar um token de cartão",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/card-tokens",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "card-tokens"
              ]
            },
            "description": "Gerar um token de cartão",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"card\": {\n    \"number\": \"4111111111111111\",\n    \"expiration\": \"12/2030\",\n    \"cvv\": \"123\",\n    \"holder_name\": \"MARIA SOUZA\",\n    \"holder_document\": \"52998224725\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "x-checkout-key",
                  "type": "string"
                },
                {
                  "key": "value",
                  "value": "{{checkoutKey}}",
                  "type": "string"
                },
                {
                  "key": "in",
                  "value": "header",
                  "type": "string"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Token gerado",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/card-tokens",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "card-tokens"
                  ]
                }
              },
              "status": "Token gerado",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"UTYi5E0smwqD8P5U8pupcDtT1aIAbpgkc5HLQFGkb3I\",\n  \"expires_at\": \"2026-11-11T15:37:41.000Z\",\n  \"card\": {\n    \"id\": null,\n    \"brand\": \"visa\",\n    \"last_digits\": \"1111\",\n    \"holder_name\": \"MARIA SOUZA\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Contestações",
      "item": [
        {
          "name": "Listar as contestações",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chargebacks?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chargebacks"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "received",
                  "description": "Filtra pelo status da contestação.",
                  "disabled": true
                },
                {
                  "key": "invoice_id",
                  "value": "",
                  "description": "Filtra pelo ID da fatura.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                }
              ]
            },
            "description": "Listar as contestações"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/chargebacks?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "chargebacks"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "received",
                      "description": "Filtra pelo status da contestação.",
                      "disabled": true
                    },
                    {
                      "key": "invoice_id",
                      "value": "",
                      "description": "Filtra pelo ID da fatura.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"chb_4TnW8xQcLb2MzYv7KdRh3E\",\n      \"status\": \"received\",\n      \"amount\": 15990,\n      \"issued_at\": \"2026-11-20T12:02:11.000Z\",\n      \"defense_deadline\": \"2026-11-30T02:59:59.000Z\",\n      \"created_at\": \"2026-11-20T12:05:48.220Z\",\n      \"updated_at\": \"2026-11-20T12:05:48.220Z\",\n      \"dispute\": {\n        \"code\": \"10.4\",\n        \"description\": \"Fraude em compra sem o cartão presente\"\n      },\n      \"response\": null,\n      \"invoice\": {\n        \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n        \"status\": \"chargedback\",\n        \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n        \"external_reference\": \"pedido-1234\"\n      }\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar uma contestação",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chargebacks",
                ":chargeback_id"
              ],
              "variable": [
                {
                  "key": "chargeback_id",
                  "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                  "description": "ID da contestação."
                }
              ]
            },
            "description": "Consultar uma contestação"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "chargebacks",
                    ":chargeback_id"
                  ],
                  "variable": [
                    {
                      "key": "chargeback_id",
                      "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                      "description": "ID da contestação."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"chb_4TnW8xQcLb2MzYv7KdRh3E\",\n  \"status\": \"received\",\n  \"amount\": 15990,\n  \"issued_at\": \"2026-11-20T12:02:11.000Z\",\n  \"defense_deadline\": \"2026-11-30T02:59:59.000Z\",\n  \"created_at\": \"2026-11-20T12:05:48.220Z\",\n  \"updated_at\": \"2026-11-20T12:05:48.220Z\",\n  \"dispute\": {\n    \"code\": \"10.4\",\n    \"description\": \"Fraude em compra sem o cartão presente\"\n  },\n  \"response\": null,\n  \"invoice\": {\n    \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"status\": \"chargedback\",\n    \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"external_reference\": \"pedido-1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Aceitar uma contestação",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id/accept",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chargebacks",
                ":chargeback_id",
                "accept"
              ],
              "variable": [
                {
                  "key": "chargeback_id",
                  "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                  "description": "ID da contestação."
                }
              ]
            },
            "description": "Aceitar uma contestação"
          },
          "response": [
            {
              "name": "Contestação aceita",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id/accept",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "chargebacks",
                    ":chargeback_id",
                    "accept"
                  ],
                  "variable": [
                    {
                      "key": "chargeback_id",
                      "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                      "description": "ID da contestação."
                    }
                  ]
                }
              },
              "status": "Contestação aceita",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"chb_4TnW8xQcLb2MzYv7KdRh3E\",\n  \"status\": \"accepted\",\n  \"amount\": 15990,\n  \"issued_at\": \"2026-11-20T12:02:11.000Z\",\n  \"defense_deadline\": \"2026-11-30T02:59:59.000Z\",\n  \"created_at\": \"2026-11-20T12:05:48.220Z\",\n  \"updated_at\": \"2026-11-21T09:40:27.530Z\",\n  \"dispute\": {\n    \"code\": \"10.4\",\n    \"description\": \"Fraude em compra sem o cartão presente\"\n  },\n  \"response\": {\n    \"action\": \"accept\",\n    \"note\": null,\n    \"file_name\": null,\n    \"sent_at\": \"2026-11-21T09:40:27.530Z\"\n  },\n  \"invoice\": {\n    \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"status\": \"chargedback\",\n    \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"external_reference\": \"pedido-1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Defender uma contestação",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id/defend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "chargebacks",
                ":chargeback_id",
                "defend"
              ],
              "variable": [
                {
                  "key": "chargeback_id",
                  "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                  "description": "ID da contestação."
                }
              ]
            },
            "description": "Defender uma contestação",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "note",
                  "value": "Produto entregue em 05/11, com assinatura do comprador.",
                  "type": "text",
                  "description": "Justificativa da defesa."
                },
                {
                  "key": "file",
                  "type": "file",
                  "src": [],
                  "description": "Arquivo da defesa: PDF, JPEG ou PNG."
                }
              ]
            }
          },
          "response": [
            {
              "name": "Defesa enviada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/chargebacks/:chargeback_id/defend",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "chargebacks",
                    ":chargeback_id",
                    "defend"
                  ],
                  "variable": [
                    {
                      "key": "chargeback_id",
                      "value": "chb_4TnW8xQcLb2MzYv7KdRh3E",
                      "description": "ID da contestação."
                    }
                  ]
                }
              },
              "status": "Defesa enviada",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"chb_4TnW8xQcLb2MzYv7KdRh3E\",\n  \"status\": \"defended\",\n  \"amount\": 15990,\n  \"issued_at\": \"2026-11-20T12:02:11.000Z\",\n  \"defense_deadline\": \"2026-11-30T02:59:59.000Z\",\n  \"created_at\": \"2026-11-20T12:05:48.220Z\",\n  \"updated_at\": \"2026-11-21T09:40:27.530Z\",\n  \"dispute\": {\n    \"code\": \"10.4\",\n    \"description\": \"Fraude em compra sem o cartão presente\"\n  },\n  \"response\": {\n    \"action\": \"defend\",\n    \"note\": \"Produto entregue em 05/11, com assinatura do comprador.\",\n    \"file_name\": \"comprovante-entrega.pdf\",\n    \"sent_at\": \"2026-11-21T09:40:27.530Z\"\n  },\n  \"invoice\": {\n    \"id\": \"in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"status\": \"chargedback\",\n    \"url\": \"https://invoice.payzu.com.br/pay/in_7Kd2QmXvB9LtYc4WnRz8Hs\",\n    \"external_reference\": \"pedido-1234\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Checkout",
      "item": [
        {
          "name": "Consultar uma fatura pela página",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/invoices/:invoice_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "invoices",
                ":invoice_id"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Consultar uma fatura pela página",
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/invoices/:invoice_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "invoices",
                    ":invoice_id"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"status\": \"pending\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"description\": \"Pedido 1236\",\n  \"created_at\": \"2026-11-11T15:24:10.512Z\",\n  \"updated_at\": \"2026-11-11T15:24:10.512Z\",\n  \"amounts\": {\n    \"subtotal\": 20980,\n    \"discount\": 0,\n    \"total\": 20980,\n    \"paid\": 0,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-18T03:00:00.000Z\",\n    \"expires_at\": \"2026-11-25T03:00:00.000Z\",\n    \"paid_at\": null,\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Curso de fotografia\",\n      \"sku\": \"CURSO-01\",\n      \"quantity\": 1,\n      \"unit_price\": 15990\n    },\n    {\n      \"name\": \"Apostila impressa\",\n      \"sku\": null,\n      \"quantity\": 2,\n      \"unit_price\": 2495\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 3\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\",\n    \"cancel_url\": \"https://loja.exemplo.com.br/carrinho\"\n  },\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"customer\": {\n    \"name\": \"Maria\",\n    \"email\": \"m***@exemplo.com.br\",\n    \"document\": \"***.982.247-**\",\n    \"document_type\": \"cpf\",\n    \"phone\": \"(11) *****-4321\",\n    \"address_on_file\": true\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [],\n  \"refunds\": []\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Pagar uma fatura pela página",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/invoices/:invoice_id/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "invoices",
                ":invoice_id",
                "payments"
              ],
              "variable": [
                {
                  "key": "invoice_id",
                  "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                  "description": "ID da fatura."
                }
              ]
            },
            "description": "Pagar uma fatura pela página",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"method\": \"credit_card\",\n  \"credit_card\": {\n    \"card\": {\n      \"number\": \"4111111111111111\",\n      \"expiration\": \"12/2030\",\n      \"cvv\": \"123\",\n      \"holder_name\": \"MARIA SOUZA\",\n      \"holder_document\": \"52998224725\"\n    },\n    \"installments\": 3\n  },\n  \"fraud_analysis\": {\n    \"finger_print_id\": \"3f2a9c1e-5b7d-4e80-a6c4-1d9e8f7b2a35\",\n    \"cookies_accepted\": true,\n    \"browser_type\": \"Chrome\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "Tentativa feita",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/invoices/:invoice_id/payments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "invoices",
                    ":invoice_id",
                    "payments"
                  ],
                  "variable": [
                    {
                      "key": "invoice_id",
                      "value": "in_3RtY8mKcVb5NwXz2QdLh7E",
                      "description": "ID da fatura."
                    }
                  ]
                }
              },
              "status": "Tentativa feita",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"status\": \"paid\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_3RtY8mKcVb5NwXz2QdLh7E\",\n  \"description\": \"Pedido 1236\",\n  \"created_at\": \"2026-11-11T15:24:10.512Z\",\n  \"updated_at\": \"2026-11-11T15:26:02.414Z\",\n  \"amounts\": {\n    \"subtotal\": 20980,\n    \"discount\": 0,\n    \"total\": 20980,\n    \"paid\": 20980,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-18T03:00:00.000Z\",\n    \"expires_at\": \"2026-11-25T03:00:00.000Z\",\n    \"paid_at\": \"2026-11-11T15:26:02.412Z\",\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Curso de fotografia\",\n      \"sku\": \"CURSO-01\",\n      \"quantity\": 1,\n      \"unit_price\": 15990\n    },\n    {\n      \"name\": \"Apostila impressa\",\n      \"sku\": null,\n      \"quantity\": 2,\n      \"unit_price\": 2495\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 3\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\",\n    \"cancel_url\": \"https://loja.exemplo.com.br/carrinho\"\n  },\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"customer\": {\n    \"name\": \"Maria\",\n    \"email\": \"m***@exemplo.com.br\",\n    \"document\": \"***.982.247-**\",\n    \"document_type\": \"cpf\",\n    \"phone\": \"(11) *****-4321\",\n    \"address_on_file\": true\n  },\n  \"subscription\": null,\n  \"payment_link\": null,\n  \"payments\": [\n    {\n      \"id\": \"pay_8LqZ3nWcVb5TyXm2KdRh7E\",\n      \"status\": \"paid\",\n      \"method\": \"credit_card\",\n      \"amount\": 20980,\n      \"created_at\": \"2026-11-11T15:26:02.108Z\",\n      \"paid_at\": \"2026-11-11T15:26:02.412Z\",\n      \"failed_at\": null,\n      \"failure\": null,\n      \"credit_card\": {\n        \"installments\": 3,\n        \"authorization_code\": \"123456\",\n        \"card\": {\n          \"brand\": \"visa\",\n          \"last_digits\": \"1111\"\n        }\n      }\n    },\n    {\n      \"id\": \"pay_5NwK7xQcLb3MzYv9TdRh2E\",\n      \"status\": \"failed\",\n      \"method\": \"credit_card\",\n      \"amount\": 20980,\n      \"created_at\": \"2026-11-11T15:25:31.040Z\",\n      \"paid_at\": null,\n      \"failed_at\": \"2026-11-11T15:25:31.764Z\",\n      \"failure\": {\n        \"stage\": \"issuer\",\n        \"code\": \"PZ250\",\n        \"message\": \"O cartão não tem saldo ou limite para este valor. O cliente pode usar outro cartão.\"\n      },\n      \"credit_card\": {\n        \"installments\": 3,\n        \"authorization_code\": null,\n        \"card\": {\n          \"brand\": \"mastercard\",\n          \"last_digits\": \"5454\"\n        }\n      }\n    }\n  ],\n  \"refunds\": []\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um link de pagamento pela página",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/payment-links/:payment_link_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "payment-links",
                ":payment_link_id"
              ],
              "variable": [
                {
                  "key": "payment_link_id",
                  "value": "pl_4NwK8xQcLb3MzYv7TdRh5E",
                  "description": "ID do link de pagamento."
                }
              ]
            },
            "description": "Consultar um link de pagamento pela página",
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/payment-links/:payment_link_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "payment-links",
                    ":payment_link_id"
                  ],
                  "variable": [
                    {
                      "key": "payment_link_id",
                      "value": "pl_4NwK8xQcLb3MzYv7TdRh5E",
                      "description": "ID do link de pagamento."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"pl_4NwK8xQcLb3MzYv7TdRh5E\",\n  \"status\": \"active\",\n  \"name\": \"Consultoria\",\n  \"description\": \"\",\n  \"amount\": 10200,\n  \"expires_at\": null,\n  \"available\": true,\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 3\n    }\n  },\n  \"checkout\": {\n    \"logo_url\": null,\n    \"redirect_url\": null\n  },\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"discount\": {\n    \"payment_method\": \"pix\",\n    \"type\": \"percentage\",\n    \"value\": 5,\n    \"public_description\": \"5% de desconto no Pix\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Comprar pelo link",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/payment-links/:payment_link_id/invoices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "payment-links",
                ":payment_link_id",
                "invoices"
              ],
              "variable": [
                {
                  "key": "payment_link_id",
                  "value": "pl_gVRWtMpkRuCnRuqzEy28zv",
                  "description": "ID do link de pagamento."
                }
              ]
            },
            "description": "Comprar pelo link",
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "Fatura criada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/payment-links/:payment_link_id/invoices",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "payment-links",
                    ":payment_link_id",
                    "invoices"
                  ],
                  "variable": [
                    {
                      "key": "payment_link_id",
                      "value": "pl_gVRWtMpkRuCnRuqzEy28zv",
                      "description": "ID do link de pagamento."
                    }
                  ]
                }
              },
              "status": "Fatura criada",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"in_6YtR3nMcXb9LwQz4KdVh8E\",\n  \"status\": \"pending\",\n  \"url\": \"https://invoice.payzu.com.br/pay/in_6YtR3nMcXb9LwQz4KdVh8E\",\n  \"description\": \"Ingresso do workshop\",\n  \"created_at\": \"2026-11-11T15:50:02.630Z\",\n  \"updated_at\": \"2026-11-11T15:50:02.630Z\",\n  \"amounts\": {\n    \"subtotal\": 12000,\n    \"discount\": 0,\n    \"total\": 12000,\n    \"paid\": 0,\n    \"refunded\": 0\n  },\n  \"billing\": {\n    \"cycle_number\": null,\n    \"due_at\": \"2026-11-11T15:50:02.630Z\",\n    \"expires_at\": \"2026-11-26T15:50:02.630Z\",\n    \"paid_at\": null,\n    \"canceled_at\": null,\n    \"refunded_at\": null,\n    \"chargedback_at\": null\n  },\n  \"items\": [\n    {\n      \"name\": \"Ingresso do workshop\",\n      \"sku\": null,\n      \"quantity\": 1,\n      \"unit_price\": 12000\n    }\n  ],\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ],\n    \"credit_card\": {\n      \"max_installments\": 12\n    }\n  },\n  \"checkout\": {\n    \"redirect_url\": null,\n    \"cancel_url\": null\n  },\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"customer\": null,\n  \"subscription\": null,\n  \"payment_link\": {\n    \"id\": \"pl_gVRWtMpkRuCnRuqzEy28zv\",\n    \"name\": \"Ingresso do workshop\",\n    \"discount\": null\n  },\n  \"payments\": [],\n  \"refunds\": []\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um plano pela página",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/plans/:plan_id?type=id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "plans",
                ":plan_id"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "id",
                  "description": "Indica se plan_id é o id ou o slug."
                }
              ],
              "variable": [
                {
                  "key": "plan_id",
                  "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                  "description": "ID ou slug do plano."
                }
              ]
            },
            "description": "Consultar um plano pela página",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "x-checkout-key",
                  "type": "string"
                },
                {
                  "key": "value",
                  "value": "{{checkoutKey}}",
                  "type": "string"
                },
                {
                  "key": "in",
                  "value": "header",
                  "type": "string"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/plans/:plan_id?type=id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "plans",
                    ":plan_id"
                  ],
                  "query": [
                    {
                      "key": "type",
                      "value": "id",
                      "description": "Indica se plan_id é o id ou o slug."
                    }
                  ],
                  "variable": [
                    {
                      "key": "plan_id",
                      "value": "plan_oOsn4Cs4eayZ3LoytwzErn",
                      "description": "ID ou slug do plano."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n  \"name\": \"Plano Mensal\",\n  \"description\": \"Acesso mensal à plataforma\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_settings\": {\n    \"accepted_methods\": [\n      \"credit_card\",\n      \"pix\"\n    ]\n  },\n  \"checkout\": {\n    \"slug\": \"plano-mensal\",\n    \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n    \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n  },\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Criar uma assinatura pela página",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "subscriptions"
              ]
            },
            "description": "Criar uma assinatura pela página",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"payment_method\": \"credit_card\",\n  \"customer\": {\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"phone\": \"11987654321\",\n    \"birthdate\": \"1990-05-20\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\",\n    \"address\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1000\",\n      \"complement\": \"Sala 12\",\n      \"district\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zip_code\": \"01310100\",\n      \"country\": \"BR\"\n    }\n  },\n  \"plan_id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "x-checkout-key",
                  "type": "string"
                },
                {
                  "key": "value",
                  "value": "{{checkoutKey}}",
                  "type": "string"
                },
                {
                  "key": "in",
                  "value": "header",
                  "type": "string"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Assinatura criada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/subscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "subscriptions"
                  ]
                }
              },
              "status": "Assinatura criada",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"incomplete\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"recurrence_mode\": \"native\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.359Z\",\n  \"recurrence_end_date\": null,\n  \"credit_card\": null,\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"maria@exemplo.com.br\",\n    \"phone\": \"11987654321\",\n    \"document\": \"52998224725\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\",\n    \"description\": \"Acesso mensal à plataforma\",\n    \"amount\": 15990,\n    \"recurrence\": \"monthly\",\n    \"payment_settings\": {\n      \"accepted_methods\": [\n        \"credit_card\",\n        \"pix\"\n      ]\n    },\n    \"checkout\": {\n      \"slug\": \"plano-mensal\",\n      \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n      \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n    }\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  },\n  \"invoice\": {\n    \"id\": \"in_PSSHbv1eu5ZneriC2C3my4\",\n    \"status\": \"pending\",\n    \"url\": \"https://invoice.payzu.com.br/pay/in_PSSHbv1eu5ZneriC2C3my4\",\n    \"description\": \"Plano Mensal\",\n    \"created_at\": \"2026-11-11T15:20:59.361Z\",\n    \"updated_at\": \"2026-11-11T15:20:59.361Z\",\n    \"amounts\": {\n      \"subtotal\": 15990,\n      \"discount\": 1599,\n      \"total\": 14391,\n      \"paid\": 0,\n      \"refunded\": 0\n    },\n    \"billing\": {\n      \"cycle_number\": 0,\n      \"due_at\": \"2026-11-11T15:20:59.361Z\",\n      \"expires_at\": \"2026-11-11T16:20:59.361Z\",\n      \"paid_at\": null,\n      \"canceled_at\": null,\n      \"refunded_at\": null,\n      \"chargedback_at\": null\n    },\n    \"items\": [\n      {\n        \"name\": \"Plano Mensal\",\n        \"sku\": null,\n        \"quantity\": 1,\n        \"unit_price\": 15990\n      }\n    ],\n    \"payment_settings\": {\n      \"accepted_methods\": [\n        \"credit_card\"\n      ],\n      \"credit_card\": {\n        \"max_installments\": 1\n      }\n    },\n    \"checkout\": {\n      \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\",\n      \"cancel_url\": null\n    },\n    \"merchant\": {\n      \"display_name\": \"Loja da Maria\"\n    },\n    \"customer\": {\n      \"name\": \"Maria\",\n      \"email\": \"m***@exemplo.com.br\",\n      \"document\": \"***.982.247-**\",\n      \"document_type\": \"cpf\",\n      \"phone\": \"(11) *****-4321\",\n      \"address_on_file\": true\n    },\n    \"subscription\": {\n      \"code\": \"EELBD9PE\",\n      \"name\": \"Plano Mensal\"\n    },\n    \"payment_link\": null,\n    \"payments\": [],\n    \"refunds\": []\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar uma assinatura pela página",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/checkout/subscriptions/:subscription_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "checkout",
                "subscriptions",
                ":subscription_id"
              ],
              "variable": [
                {
                  "key": "subscription_id",
                  "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                  "description": "ID da assinatura."
                }
              ]
            },
            "description": "Consultar uma assinatura pela página",
            "auth": {
              "type": "apikey",
              "apikey": [
                {
                  "key": "key",
                  "value": "x-checkout-key",
                  "type": "string"
                },
                {
                  "key": "value",
                  "value": "{{checkoutKey}}",
                  "type": "string"
                },
                {
                  "key": "in",
                  "value": "header",
                  "type": "string"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/checkout/subscriptions/:subscription_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "checkout",
                    "subscriptions",
                    ":subscription_id"
                  ],
                  "variable": [
                    {
                      "key": "subscription_id",
                      "value": "sub_EG9uphTcCTMvYBkHPKr4cc",
                      "description": "ID da assinatura."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n  \"code\": \"EELBD9PE\",\n  \"status\": \"active\",\n  \"name\": \"Plano Mensal\",\n  \"amount\": 15990,\n  \"recurrence\": \"monthly\",\n  \"payment_method\": \"credit_card\",\n  \"recurrence_mode\": \"native\",\n  \"created_at\": \"2026-11-11T15:20:59.359Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.366Z\",\n  \"recurrence_end_date\": null,\n  \"credit_card\": {\n    \"card\": {\n      \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n      \"last_digits\": \"1111\",\n      \"expiration\": \"12/2030\",\n      \"holder_name\": \"MARIA SOUZA\"\n    }\n  },\n  \"billing\": {\n    \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n    \"next_at\": \"2026-12-11T15:20:59.362Z\",\n    \"canceled_at\": null\n  },\n  \"grace\": null,\n  \"cancellation\": null,\n  \"merchant\": {\n    \"display_name\": \"Loja da Maria\"\n  },\n  \"customer\": {\n    \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n    \"name\": \"Maria Souza\",\n    \"email\": \"m***@exemplo.com.br\",\n    \"phone\": \"(11) *****-4321\",\n    \"document\": \"***.982.247-**\",\n    \"document_type\": \"cpf\"\n  },\n  \"plan\": {\n    \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n    \"name\": \"Plano Mensal\",\n    \"description\": \"Acesso mensal à plataforma\",\n    \"amount\": 15990,\n    \"recurrence\": \"monthly\",\n    \"payment_settings\": {\n      \"accepted_methods\": [\n        \"credit_card\",\n        \"pix\"\n      ]\n    },\n    \"checkout\": {\n      \"slug\": \"plano-mensal\",\n      \"logo_url\": \"https://loja.exemplo.com.br/logo.png\",\n      \"redirect_url\": \"https://loja.exemplo.com.br/obrigado\"\n    }\n  },\n  \"discount\": {\n    \"type\": \"percentage\",\n    \"value\": 10,\n    \"cycles\": 3,\n    \"public_description\": \"10% nos 3 primeiros meses\"\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "Listar os webhooks cadastrados",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "active",
                  "description": "Filtra pelo status do webhook.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                }
              ]
            },
            "description": "Listar os webhooks cadastrados"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhooks?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "active",
                      "description": "Filtra pelo status do webhook.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n      \"status\": \"active\",\n      \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n      \"description\": \"Sistema de pedidos\",\n      \"events\": [\n        \"invoice.paid\",\n        \"invoice.refunded\",\n        \"subscription.canceled\"\n      ],\n      \"masked_secret\": \"****0000\",\n      \"created_at\": \"2026-11-11T15:20:59.433Z\",\n      \"updated_at\": \"2026-11-11T15:20:59.434Z\"\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Cadastrar um webhook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks"
              ]
            },
            "description": "Cadastrar um webhook",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n  \"description\": \"Sistema de pedidos\",\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Webhook cadastrado",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhooks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks"
                  ]
                }
              },
              "status": "Webhook cadastrado",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n  \"status\": \"active\",\n  \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n  \"description\": \"Sistema de pedidos\",\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\"\n  ],\n  \"masked_secret\": \"****0000\",\n  \"secret\": \"-lobN1qfwI-_xHx6ob6wrpxnjw496IapHJDV2xW0000\",\n  \"created_at\": \"2026-11-11T15:20:59.433Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.433Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar um webhook",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                  "description": "ID do webhook."
                }
              ]
            },
            "description": "Consultar um webhook"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhooks/:webhook_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhook_id"
                  ],
                  "variable": [
                    {
                      "key": "webhook_id",
                      "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                      "description": "ID do webhook."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n  \"status\": \"active\",\n  \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n  \"description\": \"Sistema de pedidos\",\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\"\n  ],\n  \"masked_secret\": \"****0000\",\n  \"created_at\": \"2026-11-11T15:20:59.433Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.433Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar um webhook",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                  "description": "ID do webhook."
                }
              ]
            },
            "description": "Alterar um webhook",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\",\n    \"subscription.canceled\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhooks/:webhook_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhook_id"
                  ],
                  "variable": [
                    {
                      "key": "webhook_id",
                      "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                      "description": "ID do webhook."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n  \"status\": \"active\",\n  \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n  \"description\": \"Sistema de pedidos\",\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\",\n    \"subscription.canceled\"\n  ],\n  \"masked_secret\": \"****0000\",\n  \"created_at\": \"2026-11-11T15:20:59.433Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.434Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Excluir um webhook",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                  "description": "ID do webhook."
                }
              ]
            },
            "description": "Excluir um webhook"
          },
          "response": []
        },
        {
          "name": "Trocar o segredo de um webhook",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:webhook_id/rotate-secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":webhook_id",
                "rotate-secret"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                  "description": "ID do webhook."
                }
              ]
            },
            "description": "Trocar o segredo de um webhook"
          },
          "response": [
            {
              "name": "Segredo trocado",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhooks/:webhook_id/rotate-secret",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhook_id",
                    "rotate-secret"
                  ],
                  "variable": [
                    {
                      "key": "webhook_id",
                      "value": "whe_oeQa3G4R1B4IW9KNJAiP1l",
                      "description": "ID do webhook."
                    }
                  ]
                }
              },
              "status": "Segredo trocado",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n  \"status\": \"active\",\n  \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\",\n  \"description\": \"Sistema de pedidos\",\n  \"events\": [\n    \"invoice.paid\",\n    \"invoice.refunded\",\n    \"subscription.canceled\"\n  ],\n  \"masked_secret\": \"****1111\",\n  \"secret\": \"-lobN1qfwI-_xHx6ob6wrpxnjw496IapHJDV2xW1111\",\n  \"created_at\": \"2026-11-11T15:20:59.433Z\",\n  \"updated_at\": \"2026-11-11T15:20:59.436Z\"\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Listar as entregas dos webhooks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-deliveries?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-deliveries"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "pending",
                  "description": "Filtra pelo status da entrega.",
                  "disabled": true
                },
                {
                  "key": "webhook_id",
                  "value": "",
                  "description": "Filtra pelo ID do webhook.",
                  "disabled": true
                },
                {
                  "key": "event_type",
                  "value": "invoice.created",
                  "description": "Filtra pelo tipo do evento.",
                  "disabled": true
                },
                {
                  "key": "created_from",
                  "value": "",
                  "description": "Criados a partir deste dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "created_to",
                  "value": "",
                  "description": "Criados até este dia, no horário de Brasília.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "next_cursor da página anterior, como veio.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Itens por página; sem ele, 100."
                }
              ]
            },
            "description": "Listar as entregas dos webhooks"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhook-deliveries?limit=100",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhook-deliveries"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "pending",
                      "description": "Filtra pelo status da entrega.",
                      "disabled": true
                    },
                    {
                      "key": "webhook_id",
                      "value": "",
                      "description": "Filtra pelo ID do webhook.",
                      "disabled": true
                    },
                    {
                      "key": "event_type",
                      "value": "invoice.created",
                      "description": "Filtra pelo tipo do evento.",
                      "disabled": true
                    },
                    {
                      "key": "created_from",
                      "value": "",
                      "description": "Criados a partir deste dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "created_to",
                      "value": "",
                      "description": "Criados até este dia, no horário de Brasília.",
                      "disabled": true
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "next_cursor da página anterior, como veio.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "100",
                      "description": "Itens por página; sem ele, 100."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"id\": \"whd_Aduv7DfwwLFCdrFLtEmNrd\",\n      \"status\": \"delivered\",\n      \"delivered_at\": \"2026-11-20T14:02:11.618Z\",\n      \"created_at\": \"2026-11-20T14:02:11.438Z\",\n      \"webhook\": {\n        \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n        \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\"\n      },\n      \"event\": {\n        \"id\": \"evt_ahpw5CKSZgov4BJRYfnu3A\",\n        \"type\": \"subscription.canceled\"\n      },\n      \"attempts\": {\n        \"count\": 1,\n        \"last_at\": \"2026-11-20T14:02:11.618Z\",\n        \"next_at\": null,\n        \"last_status_code\": 200,\n        \"last_error\": null\n      },\n      \"payload\": {\n        \"id\": \"evt_ahpw5CKSZgov4BJRYfnu3A\",\n        \"type\": \"subscription.canceled\",\n        \"created_at\": \"2026-11-20T14:02:11.438Z\",\n        \"data\": {\n          \"subscription\": {\n            \"id\": \"sub_EG9uphTcCTMvYBkHPKr4cc\",\n            \"code\": \"EELBD9PE\",\n            \"status\": \"canceled\",\n            \"name\": \"Plano Mensal\",\n            \"amount\": 15990,\n            \"recurrence\": \"monthly\",\n            \"payment_method\": \"credit_card\",\n            \"created_at\": \"2026-11-11T15:20:59.359Z\",\n            \"updated_at\": \"2026-11-20T14:02:11.438Z\",\n            \"credit_card\": {\n              \"card\": {\n                \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n                \"brand\": \"visa\",\n                \"last_digits\": \"1111\",\n                \"holder_name\": \"MARIA SOUZA\"\n              }\n            },\n            \"billing\": {\n              \"anchor_at\": \"2026-11-11T03:00:00.000Z\",\n              \"next_at\": null,\n              \"canceled_at\": \"2026-11-20T14:02:11.438Z\",\n              \"renewal_failures\": 0\n            },\n            \"grace\": null,\n            \"cancellation\": {\n              \"reason\": \"merchant_request\",\n              \"note\": \"Cliente pediu o cancelamento\"\n            },\n            \"previous_cancellations\": [],\n            \"customer\": {\n              \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n              \"name\": \"Maria Souza\",\n              \"email\": \"maria@exemplo.com.br\",\n              \"document\": \"52998224725\",\n              \"document_type\": \"cpf\"\n            },\n            \"plan\": {\n              \"id\": \"plan_oOsn4Cs4eayZ3LoytwzErn\",\n              \"name\": \"Plano Mensal\"\n            },\n            \"discount\": {\n              \"type\": \"percentage\",\n              \"value\": 10,\n              \"cycles\": 3,\n              \"internal_description\": \"Campanha de novembro\",\n              \"public_description\": \"10% nos 3 primeiros meses\"\n            },\n            \"metadata\": {\n              \"internal_id\": \"1234\"\n            }\n          }\n        }\n      }\n    },\n    {\n      \"id\": \"whd_8Cfeaww8mskNif8v008Rlr\",\n      \"status\": \"failed\",\n      \"delivered_at\": null,\n      \"created_at\": \"2026-11-13T14:10:26.381Z\",\n      \"webhook\": {\n        \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n        \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\"\n      },\n      \"event\": {\n        \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n        \"type\": \"invoice.refunded\"\n      },\n      \"attempts\": {\n        \"count\": 6,\n        \"last_at\": \"2026-11-14T21:21:26.381Z\",\n        \"next_at\": null,\n        \"last_status_code\": 500,\n        \"last_error\": \"HTTP 500\"\n      },\n      \"payload\": {\n        \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n        \"type\": \"invoice.refunded\",\n        \"created_at\": \"2026-11-13T14:10:26.381Z\",\n        \"data\": {\n          \"invoice\": {\n            \"id\": \"in_2WcN6xQmLb9TzYv4KdRh8E\",\n            \"status\": \"refunded\",\n            \"url\": \"https://invoice.payzu.com.br/pay/in_2WcN6xQmLb9TzYv4KdRh8E\",\n            \"description\": \"Mentoria individual\",\n            \"external_reference\": null,\n            \"created_at\": \"2026-11-11T15:32:07.510Z\",\n            \"updated_at\": \"2026-11-13T14:10:26.381Z\",\n            \"amounts\": {\n              \"subtotal\": 49900,\n              \"discount\": 0,\n              \"total\": 49900,\n              \"paid\": 49900,\n              \"refunded\": 49900\n            },\n            \"billing\": {\n              \"cycle_number\": 0,\n              \"due_at\": \"2026-11-11T15:32:07.510Z\",\n              \"expires_at\": \"2026-11-11T16:32:07.510Z\",\n              \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n              \"canceled_at\": null,\n              \"refunded_at\": \"2026-11-13T14:10:26.380Z\",\n              \"chargedback_at\": null\n            },\n            \"items\": [\n              {\n                \"name\": \"Mentoria individual\",\n                \"sku\": null,\n                \"quantity\": 1,\n                \"unit_price\": 49900\n              }\n            ],\n            \"payment_settings\": {\n              \"accepted_methods\": [\n                \"credit_card\"\n              ],\n              \"credit_card\": {\n                \"max_installments\": 1\n              }\n            },\n            \"checkout\": {\n              \"redirect_url\": null,\n              \"cancel_url\": null\n            },\n            \"customer\": {\n              \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n              \"name\": \"Maria Souza\",\n              \"email\": \"maria@exemplo.com.br\",\n              \"document\": \"52998224725\",\n              \"document_type\": \"cpf\"\n            },\n            \"subscription\": {\n              \"id\": \"sub_7Qm2xVbTn4KcYd9LwRzH3a\",\n              \"code\": \"K7T2M9QA\",\n              \"name\": \"Mentoria individual\"\n            },\n            \"payment_link\": null,\n            \"payments\": [\n              {\n                \"id\": \"pay_4Hn8sWqZ2LmXc6VbTyR1dE\",\n                \"status\": \"refunded\",\n                \"method\": \"credit_card\",\n                \"amount\": 49900,\n                \"created_at\": \"2026-11-11T15:32:07.512Z\",\n                \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n                \"failed_at\": null,\n                \"failure\": null,\n                \"credit_card\": {\n                  \"installments\": 1,\n                  \"authorization_code\": \"123456\",\n                  \"card\": {\n                    \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n                    \"brand\": \"visa\",\n                    \"last_digits\": \"1111\",\n                    \"holder_name\": \"MARIA SOUZA\"\n                  }\n                }\n              }\n            ],\n            \"refunds\": [\n              {\n                \"id\": \"rfd_8WqL5nXcVb2TzYm7KdRh4E\",\n                \"status\": \"confirmed\",\n                \"amount\": 49900,\n                \"requested_at\": \"2026-11-13T14:10:25.978Z\",\n                \"confirmed_at\": \"2026-11-13T14:10:26.380Z\",\n                \"failed_at\": null,\n                \"failure\": null\n              }\n            ],\n            \"cancellation\": null,\n            \"chargeback\": null,\n            \"metadata\": null\n          }\n        }\n      }\n    }\n  ],\n  \"next_cursor\": null\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Consultar uma entrega",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-deliveries/:delivery_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-deliveries",
                ":delivery_id"
              ],
              "variable": [
                {
                  "key": "delivery_id",
                  "value": "whd_8Cfeaww8mskNif8v008Rlr",
                  "description": "ID da entrega."
                }
              ]
            },
            "description": "Consultar uma entrega"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhook-deliveries/:delivery_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhook-deliveries",
                    ":delivery_id"
                  ],
                  "variable": [
                    {
                      "key": "delivery_id",
                      "value": "whd_8Cfeaww8mskNif8v008Rlr",
                      "description": "ID da entrega."
                    }
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whd_8Cfeaww8mskNif8v008Rlr\",\n  \"status\": \"failed\",\n  \"delivered_at\": null,\n  \"created_at\": \"2026-11-13T14:10:26.381Z\",\n  \"webhook\": {\n    \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n    \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\"\n  },\n  \"event\": {\n    \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n    \"type\": \"invoice.refunded\"\n  },\n  \"attempts\": {\n    \"count\": 6,\n    \"last_at\": \"2026-11-14T21:21:26.381Z\",\n    \"next_at\": null,\n    \"last_status_code\": 500,\n    \"last_error\": \"HTTP 500\"\n  },\n  \"payload\": {\n    \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n    \"type\": \"invoice.refunded\",\n    \"created_at\": \"2026-11-13T14:10:26.381Z\",\n    \"data\": {\n      \"invoice\": {\n        \"id\": \"in_2WcN6xQmLb9TzYv4KdRh8E\",\n        \"status\": \"refunded\",\n        \"url\": \"https://invoice.payzu.com.br/pay/in_2WcN6xQmLb9TzYv4KdRh8E\",\n        \"description\": \"Mentoria individual\",\n        \"external_reference\": null,\n        \"created_at\": \"2026-11-11T15:32:07.510Z\",\n        \"updated_at\": \"2026-11-13T14:10:26.381Z\",\n        \"amounts\": {\n          \"subtotal\": 49900,\n          \"discount\": 0,\n          \"total\": 49900,\n          \"paid\": 49900,\n          \"refunded\": 49900\n        },\n        \"billing\": {\n          \"cycle_number\": 0,\n          \"due_at\": \"2026-11-11T15:32:07.510Z\",\n          \"expires_at\": \"2026-11-11T16:32:07.510Z\",\n          \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n          \"canceled_at\": null,\n          \"refunded_at\": \"2026-11-13T14:10:26.380Z\",\n          \"chargedback_at\": null\n        },\n        \"items\": [\n          {\n            \"name\": \"Mentoria individual\",\n            \"sku\": null,\n            \"quantity\": 1,\n            \"unit_price\": 49900\n          }\n        ],\n        \"payment_settings\": {\n          \"accepted_methods\": [\n            \"credit_card\"\n          ],\n          \"credit_card\": {\n            \"max_installments\": 1\n          }\n        },\n        \"checkout\": {\n          \"redirect_url\": null,\n          \"cancel_url\": null\n        },\n        \"customer\": {\n          \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n          \"name\": \"Maria Souza\",\n          \"email\": \"maria@exemplo.com.br\",\n          \"document\": \"52998224725\",\n          \"document_type\": \"cpf\"\n        },\n        \"subscription\": {\n          \"id\": \"sub_7Qm2xVbTn4KcYd9LwRzH3a\",\n          \"code\": \"K7T2M9QA\",\n          \"name\": \"Mentoria individual\"\n        },\n        \"payment_link\": null,\n        \"payments\": [\n          {\n            \"id\": \"pay_4Hn8sWqZ2LmXc6VbTyR1dE\",\n            \"status\": \"refunded\",\n            \"method\": \"credit_card\",\n            \"amount\": 49900,\n            \"created_at\": \"2026-11-11T15:32:07.512Z\",\n            \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n            \"failed_at\": null,\n            \"failure\": null,\n            \"credit_card\": {\n              \"installments\": 1,\n              \"authorization_code\": \"123456\",\n              \"card\": {\n                \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n                \"brand\": \"visa\",\n                \"last_digits\": \"1111\",\n                \"holder_name\": \"MARIA SOUZA\"\n              }\n            }\n          }\n        ],\n        \"refunds\": [\n          {\n            \"id\": \"rfd_8WqL5nXcVb2TzYm7KdRh4E\",\n            \"status\": \"confirmed\",\n            \"amount\": 49900,\n            \"requested_at\": \"2026-11-13T14:10:25.978Z\",\n            \"confirmed_at\": \"2026-11-13T14:10:26.380Z\",\n            \"failed_at\": null,\n            \"failure\": null\n          }\n        ],\n        \"cancellation\": null,\n        \"chargeback\": null,\n        \"metadata\": null\n      }\n    }\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Reenviar uma entrega",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-deliveries/:delivery_id/retry",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-deliveries",
                ":delivery_id",
                "retry"
              ],
              "variable": [
                {
                  "key": "delivery_id",
                  "value": "whd_8Cfeaww8mskNif8v008Rlr",
                  "description": "ID da entrega."
                }
              ]
            },
            "description": "Reenviar uma entrega"
          },
          "response": [
            {
              "name": "Entrega reenviada",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/webhook-deliveries/:delivery_id/retry",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "webhook-deliveries",
                    ":delivery_id",
                    "retry"
                  ],
                  "variable": [
                    {
                      "key": "delivery_id",
                      "value": "whd_8Cfeaww8mskNif8v008Rlr",
                      "description": "ID da entrega."
                    }
                  ]
                }
              },
              "status": "Entrega reenviada",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"whd_8Cfeaww8mskNif8v008Rlr\",\n  \"status\": \"delivered\",\n  \"delivered_at\": \"2026-11-15T09:00:00.000Z\",\n  \"created_at\": \"2026-11-13T14:10:26.381Z\",\n  \"webhook\": {\n    \"id\": \"whe_oeQa3G4R1B4IW9KNJAiP1l\",\n    \"url\": \"https://loja.exemplo.com.br/webhooks/payzu\"\n  },\n  \"event\": {\n    \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n    \"type\": \"invoice.refunded\"\n  },\n  \"attempts\": {\n    \"count\": 7,\n    \"last_at\": \"2026-11-15T09:00:00.000Z\",\n    \"next_at\": null,\n    \"last_status_code\": 200,\n    \"last_error\": null\n  },\n  \"payload\": {\n    \"id\": \"evt_y7EMUbiqx6DLTahpw5CKSZ\",\n    \"type\": \"invoice.refunded\",\n    \"created_at\": \"2026-11-13T14:10:26.381Z\",\n    \"data\": {\n      \"invoice\": {\n        \"id\": \"in_2WcN6xQmLb9TzYv4KdRh8E\",\n        \"status\": \"refunded\",\n        \"url\": \"https://invoice.payzu.com.br/pay/in_2WcN6xQmLb9TzYv4KdRh8E\",\n        \"description\": \"Mentoria individual\",\n        \"external_reference\": null,\n        \"created_at\": \"2026-11-11T15:32:07.510Z\",\n        \"updated_at\": \"2026-11-13T14:10:26.381Z\",\n        \"amounts\": {\n          \"subtotal\": 49900,\n          \"discount\": 0,\n          \"total\": 49900,\n          \"paid\": 49900,\n          \"refunded\": 49900\n        },\n        \"billing\": {\n          \"cycle_number\": 0,\n          \"due_at\": \"2026-11-11T15:32:07.510Z\",\n          \"expires_at\": \"2026-11-11T16:32:07.510Z\",\n          \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n          \"canceled_at\": null,\n          \"refunded_at\": \"2026-11-13T14:10:26.380Z\",\n          \"chargedback_at\": null\n        },\n        \"items\": [\n          {\n            \"name\": \"Mentoria individual\",\n            \"sku\": null,\n            \"quantity\": 1,\n            \"unit_price\": 49900\n          }\n        ],\n        \"payment_settings\": {\n          \"accepted_methods\": [\n            \"credit_card\"\n          ],\n          \"credit_card\": {\n            \"max_installments\": 1\n          }\n        },\n        \"checkout\": {\n          \"redirect_url\": null,\n          \"cancel_url\": null\n        },\n        \"customer\": {\n          \"id\": \"cus_bdQT0ls1QMIXVuhngvhbwC\",\n          \"name\": \"Maria Souza\",\n          \"email\": \"maria@exemplo.com.br\",\n          \"document\": \"52998224725\",\n          \"document_type\": \"cpf\"\n        },\n        \"subscription\": {\n          \"id\": \"sub_7Qm2xVbTn4KcYd9LwRzH3a\",\n          \"code\": \"K7T2M9QA\",\n          \"name\": \"Mentoria individual\"\n        },\n        \"payment_link\": null,\n        \"payments\": [\n          {\n            \"id\": \"pay_4Hn8sWqZ2LmXc6VbTyR1dE\",\n            \"status\": \"refunded\",\n            \"method\": \"credit_card\",\n            \"amount\": 49900,\n            \"created_at\": \"2026-11-11T15:32:07.512Z\",\n            \"paid_at\": \"2026-11-11T15:32:07.930Z\",\n            \"failed_at\": null,\n            \"failure\": null,\n            \"credit_card\": {\n              \"installments\": 1,\n              \"authorization_code\": \"123456\",\n              \"card\": {\n                \"id\": \"card_GL2pIWf5pznF4qwg2KKd5v\",\n                \"brand\": \"visa\",\n                \"last_digits\": \"1111\",\n                \"holder_name\": \"MARIA SOUZA\"\n              }\n            }\n          }\n        ],\n        \"refunds\": [\n          {\n            \"id\": \"rfd_8WqL5nXcVb2TzYm7KdRh4E\",\n            \"status\": \"confirmed\",\n            \"amount\": 49900,\n            \"requested_at\": \"2026-11-13T14:10:25.978Z\",\n            \"confirmed_at\": \"2026-11-13T14:10:26.380Z\",\n            \"failed_at\": null,\n            \"failure\": null\n          }\n        ],\n        \"cancellation\": null,\n        \"chargeback\": null,\n        \"metadata\": null\n      }\n    }\n  }\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    },
    {
      "name": "Configurações",
      "item": [
        {
          "name": "Consultar as configurações",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settings"
              ]
            },
            "description": "Consultar as configurações"
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/settings",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "settings"
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"grace_days\": 3,\n  \"refund_cancels_subscription\": true\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        },
        {
          "name": "Alterar as configurações",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settings"
              ]
            },
            "description": "Alterar as configurações",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"grace_days\": 3\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Sucesso",
              "originalRequest": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/settings",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "settings"
                  ]
                }
              },
              "status": "Sucesso",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"grace_days\": 3,\n  \"refund_cancels_subscription\": true\n}",
              "_postman_previewlanguage": "json"
            }
          ]
        }
      ]
    }
  ]
}
