PT EN
← Back
MOCK API · Asaas

Asaas API mock

Test charge creation (Pix, boleto, card) and Asaas's payment confirmation webhooks without generating a real charge.

Example endpoints

POST /v3/payments

Creates a charge.

curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v3/payments \
  -H "Content-Type: application/json" \
  -d '{"customer":"cus_000005219613","billingType":"PIX","value":100,"dueDate":"2026-08-25"}'
Response
{
  "id": "pay_080225568141",
  "status": "PENDING",
  "value": 100,
  "billingType": "PIX",
  "dueDate": "2026-08-25"
}
GET /v3/payments/:id

Checks a charge's status.

curl
curl https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v3/payments/pay_080225568141
Response
{
  "id": "pay_080225568141",
  "status": "RECEIVED",
  "value": 100
}

Webhook example

EVENT PAYMENT_CONFIRMED

Configure this as a Mock Rule response body and use Response Sequences or the SSE mode to push it — see the webhook architecture guide.

{
  "event": "PAYMENT_CONFIRMED",
  "payment": { "id": "pay_080225568141", "status": "CONFIRMED", "value": 100 }
}
Transparency note: The examples above are illustrative, based on Asaas's public documentation — not the official source and don't cover every field. Always check the official Asaas docs for your integration's exact details. If anything changed, let us know.

Start mocking Asaas now

Create a free endpoint, no credit card required, and paste the rules above.

Create free mock All providers →