Chargeback Sandbox
Summary
The Chargeback Sandbox allows you to develop and validate a Chargeback API integration using synthetic disputes without producing any real financial impact.
What it is
The Sandbox simulates the merchant journey in the Chargeback API: consulting disputes, identifying pending actions, accepting or contesting a chargeback, and tracking the outcome.
It uses the same routes and contracts as the real API, except for the simulated behaviors and limitations described on this page. The official technical documentation remains the reference for parameters, request bodies, and response structures.
Who it is recommended for
We recommend the Sandbox if your company needs to:
- Develop a Chargeback API integration.
- Validate dispute acceptance, contestation, and tracking.
- Test webhook notifications before operating in production.
When to use
| Need | How the Sandbox helps |
|---|---|
| Develop the integration | Uses the real API contract with synthetic disputes |
| Validate merchant responses | Simulates acceptance, contestation, and outcomes |
| Test notifications | Sends events for disputes that require a response |
| Test evidence | Validates uploads and metadata usage without storing file content |
When not to use
Do not use the Sandbox to process real financial operations, store files, validate production retention, run load tests, or handle real customer, card, or transaction data.
| Scenario | Recommended alternative |
|---|---|
| Process real disputes | Production Chargeback API |
| Store evidence | Secure merchant-managed repository |
| Validate load or performance | Approved performance-testing environment and process |
| Validate data retention | Production policies and operational documentation |
Benefits
| Benefit | Description |
|---|---|
| No financial impact | Tests create no real debits or credits |
| Reproducible scenarios | Actionable and completed synthetic disputes are generated on demand |
| Lower data exposure | Tests use synthetic identifiers and do not retain document content |
| Asynchronous validation | Webhook delivery, idempotency, and retries can be tested |
Main features
| Feature | What it allows | Note |
|---|---|---|
| Synthetic disputes | Consult representative chargeback lifecycle scenarios | Generated on demand |
| Acceptance and contestation | Validate merchant responses | Only actionable disputes accept a response |
| Webhooks | Receive CHARGEBACK_NEEDS_RESPONSE | The callback must acknowledge delivery with 204 |
| Documents | Validate evidence and its references | Binary content is not stored |
| Data renewal | Repeat journeys after resolving pending actions | Completed data remains until periodic renewal |
| Isolation | Separate journeys by merchant context | Use the same context throughout one journey |
How the Sandbox works
Parity and differences from the real API
| Aspect | Real API | Sandbox |
|---|---|---|
| Routes and contracts | Official Chargeback API contract | Same contract, except for the limitations described on this page |
| Dispute source | Chargebacks originated by issuers and card networks | Representative synthetic data |
| Data generation | Depends on real events | First eligible consultation for a new merchant context |
| Resolution | Depends on real reviews and timelines | Simulated outcome after a short, deterministic interval |
| Documents | Content stored according to production rules | File validated; only metadata retained |
| Download | Available according to the real contract | Unavailable; a known reference returns 410 Gone |
| Retention | Production-environment policy | Data subject to periodic Sandbox renewal |
| Financial effect | May produce debits or credits | No real financial movement |
Merchant identification and isolation
Each journey belongs to a context formed by country, tenant, and commerce identifier. The identifier may represent a seller, merchant, or access group, according to the integration's technical contract.
Disputes, documents, and webhook subscriptions are isolated by this context. Reuse the same context for related operations and use a new synthetic identifier when you need a completely independent journey.
How test disputes are created
Merchants do not create disputes manually. For a context with no data, the first eligible consultation generates synthetic data containing actionable, intermediate, and terminal scenarios.
needs_response. The exact number and combination of scenarios are implementation details, not part of the API contract.How to consult and respond to a dispute
- Consult the disputes assigned to the merchant or the pending actions.
- Check
dispute_status,merchant_status,cycle,merchant_expiration_date,payment_id,created_at, andaffiliation_code. - For
needs_response, accept the chargeback or submit a contestation before the deadline. - To contest, upload synthetic evidence and reference the returned
document_id. - Track the status, cycle history, and final outcome.
| Status | Meaning |
|---|---|
needs_response | The merchant must accept or contest the dispute |
in_review | The response is under simulated review |
dispute_won | Outcome in favor of the merchant |
dispute_lost | Outcome in favor of the cardholder |
dispute_partially_won | Partial outcome |
merchant_expiration_date is the authoritative deadline. Acceptance and contestation are allowed only while the dispute permits action. After one response wins, repeated or concurrent attempts are rejected. A contestation moves to in_review and then reaches a terminal outcome or another cycle, depending on the synthetic scenario.Webhook notifications
CHARGEBACK_NEEDS_RESPONSE event indicates that a new dispute requires action. The Sandbox sends an HTTP POST containing a list of notifications to the registered callback. Each item includes data such as idempotency_key, dispute_id, payment_id, event_type, cycle, dispute_status, and merchant_expiration_date.POST, respond with exactly 204 No Content, and deduplicate deliveries using idempotency_key.204, a timeout, or a connection failure may cause a retry with the same idempotency keys.The callback may use API key, Bearer token, Basic, or OAuth authentication. Removing the subscription prevents new attempts for the event.
Documents in the Sandbox
document_id remain available for listing, contestation, cycle history, and deletion rules.410 Gone when content is requested; an unknown or inaccessible reference returns 404 Not Found. An eligible document that has not been submitted can be deleted, but submitted evidence cannot be deleted as a draft.Keep required synthetic files locally. Never upload real documents, personal data, card numbers, or information subject to PCI-DSS.
Generating new test data
needs_response, no new data set is generated for the same context. After all actionable disputes have been accepted or contested, the next eligible consultation generates another representative set.Completed disputes remain available until periodic renewal. To start an isolated journey immediately, use a new synthetic merchant identifier.
Integration model
| Component | Purpose | Use |
|---|---|---|
| REST API | Consult and respond to disputes | Required |
| Webhook | Receive asynchronous notifications for disputes requiring action | Optional and recommended |
The webhook complements the REST API; it does not replace retrieving dispute details or performing dispute actions.
Prerequisites
Before starting, you need to:
- Create an account on the Getnet developer portal.
- Generate a
client_idandclient_secretfor the Sandbox. - Understand the basics of REST, HTTP, JSON, and OAuth 2.0.
- Provide a public HTTPS callback to validate webhooks.
- Prepare only synthetic identifiers and documents.
Authentication uses OAuth 2.0 Client Credentials. Use the credentials to obtain an access token and follow the official technical documentation for the complete flow.
Recommended first journey
- Generate your credentials and define a synthetic merchant context.
- Configure a public HTTPS callback that responds with
204 No Content. - Register a subscription for
CHARGEBACK_NEEDS_RESPONSE. - Consult disputes to generate the first synthetic data set.
- Receive the notification and deduplicate it using
idempotency_key. - Retrieve the details and confirm the response deadline.
- Validate an acceptance flow.
- Validate a contestation using a synthetic document.
- Track the simulated review, cycles, and outcome.
- Resolve the remaining pending actions and confirm that new data is generated.
- Remove the webhook subscription when testing is complete.
Next steps
- Access the Getnet developer portal to create your account, generate credentials, and consult the API reference.
- Configure OAuth 2.0 Client Credentials authentication according to the official technical documentation.
- Complete the recommended first journey on this page.
- Use the API reference for complete route, parameter, and payload details.
On this page