{
  "_type": "export",
  "__export_format": 4,
  "__export_date": "2025-06-01T00:00:00.000Z",
  "__export_source": "insomnia.importers",
  "resources": [
    {
      "_id": "wrk_azpague",
      "_type": "workspace",
      "name": "Az.pague API",
      "description": "API REST da Az.pague — Vendas, Assinaturas e Cobranças (Links de Pagamento)."
    },
    {
      "_id": "env_base",
      "_type": "environment",
      "parentId": "wrk_azpague",
      "name": "Base Environment",
      "data": {
        "base_url": "https://sandbox.azpag.dev",
        "api_token": ""
      }
    },
    {
      "_id": "env_sandbox",
      "_type": "environment",
      "parentId": "env_base",
      "name": "Sandbox",
      "data": {
        "base_url": "https://sandbox.azpag.dev"
      }
    },
    {
      "_id": "env_production",
      "_type": "environment",
      "parentId": "env_base",
      "name": "Produção",
      "data": {
        "base_url": "https://azpague.com.br"
      }
    },
    {
      "_id": "fld_vendas",
      "_type": "request_group",
      "parentId": "wrk_azpague",
      "name": "Vendas"
    },
    {
      "_id": "req_criar_venda_pix",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Criar venda (Pix)",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/order",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"checkout_id\": \"nVfgcG\",\n  \"src\": \"\",\n  \"ref\": \"\",\n  \"customer\": {\n    \"fullname\": \"Elias Heitor Martins\",\n    \"taxvat\": \"73845499222\",\n    \"email\": \"elias@exemplo.com\",\n    \"telephone\": \"6137210648\"\n  },\n  \"address\": {\n    \"postcode\": \"73751-100\",\n    \"street\": \"Rua Quadra 10\",\n    \"number\": \"681\",\n    \"complement\": \"\",\n    \"city\": \"Planaltina\",\n    \"region\": \"GO\",\n    \"district\": \"Setor Norte\"\n  },\n  \"payment\": {\n    \"method\": \"pix\",\n    \"expiration\": 10\n  }\n}"
      }
    },
    {
      "_id": "req_criar_venda_credit",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Criar venda (Cartão de Crédito)",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/order",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"checkout_id\": \"nVfgcG\",\n  \"src\": \"\",\n  \"ref\": \"\",\n  \"customer\": {\n    \"fullname\": \"Elias Heitor Martins\",\n    \"taxvat\": \"73845499222\",\n    \"email\": \"elias@exemplo.com\",\n    \"telephone\": \"6137210648\"\n  },\n  \"address\": {\n    \"postcode\": \"73751-100\",\n    \"street\": \"Rua Quadra 10\",\n    \"number\": \"681\",\n    \"complement\": \"\",\n    \"city\": \"Planaltina\",\n    \"region\": \"GO\",\n    \"district\": \"Setor Norte\"\n  },\n  \"payment\": {\n    \"method\": \"credit\",\n    \"installments\": 1,\n    \"apply_interest\": false,\n    \"card\": {\n      \"number\": \"4444333322221111\",\n      \"holder\": \"Elias Heitor Martins\",\n      \"expiration\": \"01/2029\",\n      \"security\": \"120\"\n    }\n  }\n}"
      }
    },
    {
      "_id": "req_criar_venda_boleto",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Criar venda (Boleto)",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/order",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"checkout_id\": \"nVfgcG\",\n  \"src\": \"\",\n  \"ref\": \"\",\n  \"customer\": {\n    \"fullname\": \"Elias Heitor Martins\",\n    \"taxvat\": \"73845499222\",\n    \"email\": \"elias@exemplo.com\",\n    \"telephone\": \"6137210648\"\n  },\n  \"address\": {\n    \"postcode\": \"73751-100\",\n    \"street\": \"Rua Quadra 10\",\n    \"number\": \"681\",\n    \"complement\": \"\",\n    \"city\": \"Planaltina\",\n    \"region\": \"GO\",\n    \"district\": \"Setor Norte\"\n  },\n  \"payment\": {\n    \"method\": \"bank_slip\"\n  }\n}"
      }
    },
    {
      "_id": "req_listar_vendas",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Listar vendas",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/order?page=1",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_consultar_venda",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Consultar venda",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/order/{order_number}",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_listar_status",
      "_type": "request",
      "parentId": "fld_vendas",
      "name": "Listar status disponíveis",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/order/status",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "fld_assinaturas",
      "_type": "request_group",
      "parentId": "wrk_azpague",
      "name": "Assinaturas"
    },
    {
      "_id": "req_listar_assinaturas",
      "_type": "request",
      "parentId": "fld_assinaturas",
      "name": "Listar assinaturas",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/subscriber?page=1",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_consultar_assinatura",
      "_type": "request",
      "parentId": "fld_assinaturas",
      "name": "Consultar assinatura",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/subscriber/{token}",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_cancelar_assinatura",
      "_type": "request",
      "parentId": "fld_assinaturas",
      "name": "Cancelar assinatura",
      "method": "DELETE",
      "url": "{{ _.base_url }}/api/v1/subscriber/{token}/cancel",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "fld_cobrancas",
      "_type": "request_group",
      "parentId": "wrk_azpague",
      "name": "Cobranças"
    },
    {
      "_id": "fld_cobrancas_avulsa",
      "_type": "request_group",
      "parentId": "fld_cobrancas",
      "name": "Avulsa"
    },
    {
      "_id": "req_criar_cobranca",
      "_type": "request",
      "parentId": "fld_cobrancas_avulsa",
      "name": "Criar cobrança",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/payment-link",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"title\": \"Cobrança Maio/2025\",\n  \"description\": \"Mensalidade do plano Premium\",\n  \"amount\": 99.90,\n  \"installments\": 3,\n  \"enable_pix\": true,\n  \"enable_credit\": true,\n  \"enable_bank_slip\": false,\n  \"fee_mode\": \"customer_pay_fee\",\n  \"expired_at\": \"2025-06-30\",\n  \"expire_after_payment\": true,\n  \"reference\": \"INV-2025-05-001\",\n  \"customer_name\": \"Maria Souza\",\n  \"customer_email\": \"maria@exemplo.com\",\n  \"customer_phone\": \"51999990000\",\n  \"customer_document\": \"12345678901\"\n}"
      }
    },
    {
      "_id": "req_listar_cobrancas",
      "_type": "request",
      "parentId": "fld_cobrancas_avulsa",
      "name": "Listar cobranças",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/payment-link?page=1",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_consultar_cobranca",
      "_type": "request",
      "parentId": "fld_cobrancas_avulsa",
      "name": "Consultar cobrança",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/payment-link/{slug}",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_atualizar_cobranca",
      "_type": "request",
      "parentId": "fld_cobrancas_avulsa",
      "name": "Atualizar cobrança",
      "method": "PUT",
      "url": "{{ _.base_url }}/api/v1/payment-link/{slug}",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"title\": \"Cobrança Atualizada\",\n  \"amount\": 149.90\n}"
      }
    },
    {
      "_id": "req_remover_cobranca",
      "_type": "request",
      "parentId": "fld_cobrancas_avulsa",
      "name": "Remover cobrança",
      "method": "DELETE",
      "url": "{{ _.base_url }}/api/v1/payment-link/{slug}",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "fld_cobrancas_lote",
      "_type": "request_group",
      "parentId": "fld_cobrancas",
      "name": "Em Lote"
    },
    {
      "_id": "req_criar_lote",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Criar cobranças em lote",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"name\": \"Cobranças Maio/2025\",\n  \"title\": \"Mensalidade\",\n  \"description\": \"Mensalidade do plano Premium\",\n  \"enable_pix\": true,\n  \"enable_credit\": true,\n  \"installments\": 3,\n  \"fee_mode\": \"customer_pay_fee\",\n  \"expired_at\": \"2025-06-30\",\n  \"expire_after_payment\": true,\n  \"customers\": [\n    {\n      \"name\": \"Maria Souza\",\n      \"email\": \"maria@exemplo.com\",\n      \"phone\": \"51999990000\",\n      \"document\": \"12345678901\",\n      \"amount\": 99.90,\n      \"reference\": \"INV-2025-05-001\"\n    },\n    {\n      \"name\": \"João Lima\",\n      \"email\": \"joao@exemplo.com\",\n      \"phone\": \"51988887777\",\n      \"document\": \"09876543210\",\n      \"amount\": 149.90,\n      \"reference\": \"INV-2025-05-002\"\n    }\n  ]\n}"
      }
    },
    {
      "_id": "req_listar_lotes",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Listar lotes",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk?page=1",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_consultar_lote",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Consultar lote",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk/{token}",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_status_lote",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Status do lote",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk/{token}/status",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    },
    {
      "_id": "req_add_clientes_lote",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Adicionar clientes ao lote",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk/{token}/customers",
      "headers": [
        { "name": "Accept", "value": "application/json" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      },
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"customers\": [\n    {\n      \"name\": \"Ana Costa\",\n      \"email\": \"ana@exemplo.com\",\n      \"phone\": \"51977776666\",\n      \"document\": \"11122233344\",\n      \"amount\": 79.90,\n      \"reference\": \"INV-2025-05-003\"\n    }\n  ]\n}"
      }
    },
    {
      "_id": "req_cancelar_lote",
      "_type": "request",
      "parentId": "fld_cobrancas_lote",
      "name": "Cancelar lote",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/payment-link-bulk/{token}/cancel",
      "headers": [
        { "name": "Accept", "value": "application/json" }
      ],
      "authentication": {
        "type": "bearer",
        "token": "{{ _.api_token }}"
      }
    }
  ]
}
