EnterPay API Docs V1
  1. Webhook
EnterPay API Docs V1
  • Referência de API
  • Autenticação
  • Erros
  • Clientes
    • Buscar um cliente
      GET
    • Listar meus clientes
      GET
    • Cadastrar novo cliente
      POST
    • Atualizar dados do cliente
      PUT
    • Remover cliente
      DELETE
  • Cobrança
    • Listar minhas cobranças
      GET
    • Criar uma nova cobrança
      POST
  • Configurações da conta
    • Empresa
      • Atualizar dados da empresa
      • Obter informações da empresa
    • Customização
      • Atualizar dados de customização
      • Obter dados de customização
  • Webhook
    • UpdateStatus
      POST
  1. Webhook

UpdateStatus

POST
/api/webhooks/asaas/update-status

Requisição

Parâmetros Header

Parâmetros Bodyapplication/json

Exemplo
{
    "id": "string",
    "event": "string",
    "payment": {
        "object": "string",
        "id": "string",
        "dateCreated": "string",
        "customer": "string",
        "installment": "string",
        "paymentLink": null,
        "value": 0,
        "netValue": 0,
        "originalValue": null,
        "interestValue": null,
        "description": "string",
        "billingType": "string",
        "canBePaidAfterDueDate": true,
        "confirmedDate": "string",
        "pixTransaction": null,
        "status": "string",
        "dueDate": "string",
        "originalDueDate": "string",
        "paymentDate": "string",
        "clientPaymentDate": "string",
        "installmentNumber": 0,
        "invoiceUrl": "string",
        "invoiceNumber": "string",
        "externalReference": null,
        "deleted": true,
        "anticipated": true,
        "anticipable": true,
        "creditDate": "string",
        "estimatedCreditDate": "string",
        "transactionReceiptUrl": "string",
        "nossoNumero": "string",
        "bankSlipUrl": "string",
        "lastInvoiceViewedDate": null,
        "lastBankSlipViewedDate": null,
        "discount": {
            "value": 0,
            "limitDate": null,
            "dueDateLimitDays": 0,
            "type": "string"
        },
        "fine": {
            "value": 0,
            "type": "string"
        },
        "interest": {
            "value": 0,
            "type": "string"
        },
        "postalService": true,
        "custody": null,
        "refunds": null
    }
}

Códigos de solicitação

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.enterpay.com.br/api/webhooks/asaas/update-status' \
--header 'User-Agent: insomnia/9.2.0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "string",
    "event": "string",
    "payment": {
        "object": "string",
        "id": "string",
        "dateCreated": "string",
        "customer": "string",
        "installment": "string",
        "paymentLink": null,
        "value": 0,
        "netValue": 0,
        "originalValue": null,
        "interestValue": null,
        "description": "string",
        "billingType": "string",
        "canBePaidAfterDueDate": true,
        "confirmedDate": "string",
        "pixTransaction": null,
        "status": "string",
        "dueDate": "string",
        "originalDueDate": "string",
        "paymentDate": "string",
        "clientPaymentDate": "string",
        "installmentNumber": 0,
        "invoiceUrl": "string",
        "invoiceNumber": "string",
        "externalReference": null,
        "deleted": true,
        "anticipated": true,
        "anticipable": true,
        "creditDate": "string",
        "estimatedCreditDate": "string",
        "transactionReceiptUrl": "string",
        "nossoNumero": "string",
        "bankSlipUrl": "string",
        "lastInvoiceViewedDate": null,
        "lastBankSlipViewedDate": null,
        "discount": {
            "value": 0,
            "limitDate": null,
            "dueDateLimitDays": 0,
            "type": "string"
        },
        "fine": {
            "value": 0,
            "type": "string"
        },
        "interest": {
            "value": 0,
            "type": "string"
        },
        "postalService": true,
        "custody": null,
        "refunds": null
    }
}'

Respostas

🟢200Success
application/json
Body

Exemplo
{}
Modificado em 2024-08-19 21:30:14
Página anterior
Obter dados de customização
Built with