MOCK API · PagSeguro
PagSeguro API mock
Test order and charge creation, and PagSeguro's (PagBank's) status notifications, without generating a real charge.
Example endpoints
POST
/orders
Creates an order with an associated charge.
curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/orders \
-H "Content-Type: application/json" \
-d '{"reference_id":"ext-ref-123","customer":{"name":"Test Customer"}}'
Response
{
"id": "ORDE_AAAAAAAA-0000-1111-2222-333333333333",
"reference_id": "ext-ref-123",
"status": "WAITING",
"charges": []
}
GET
/orders/:id
Checks an order's status.
curl
curl https://httpdrop.com/mock/YOUR_ENDPOINT_ID/orders/ORDE_AAAAAAAA-0000-1111-2222-333333333333
Response
{
"id": "ORDE_AAAAAAAA-0000-1111-2222-333333333333",
"status": "PAID"
}
Webhook example
EVENT
CHARGE.PAID (notification)
Configure this as a Mock Rule response body and use Response Sequences or the SSE mode to push it — see the webhook architecture guide.
{
"id": "CHAR_BBBBBBBB-0000-1111-2222-444444444444",
"reference_id": "ext-ref-123",
"status": "PAID",
"paid_at": "2026-08-20T10:00:00-03:00"
}
Transparency note: The examples above are illustrative, based on PagSeguro/PagBank's public documentation — not the official source and don't cover every field. Always check the official PagBank docs for your integration's exact details. If anything changed, let us know.
Start mocking PagSeguro now
Create a free endpoint, no credit card required, and paste the rules above.
Create free mock All providers →