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.

Use this documentation to: understand Sandbox behavior and validate dispute consultation, acceptance, contestation, documents, and webhook notifications.
Target audience: backend developers, integrators, and technical teams responsible for chargeback integrations.
Expected technical level: basic knowledge of REST APIs, HTTP, JSON, OAuth 2.0, and webhooks.
Estimated time to understand the solution: 10 minutes.

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.


We recommend the Sandbox if your company needs to:

  1. Develop a Chargeback API integration.
  2. Validate dispute acceptance, contestation, and tracking.
  3. Test webhook notifications before operating in production.

When to use

NeedHow the Sandbox helps
Develop the integrationUses the real API contract with synthetic disputes
Validate merchant responsesSimulates acceptance, contestation, and outcomes
Test notificationsSends events for disputes that require a response
Test evidenceValidates 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.

ScenarioRecommended alternative
Process real disputesProduction Chargeback API
Store evidenceSecure merchant-managed repository
Validate load or performanceApproved performance-testing environment and process
Validate data retentionProduction policies and operational documentation

Benefits

BenefitDescription
No financial impactTests create no real debits or credits
Reproducible scenariosActionable and completed synthetic disputes are generated on demand
Lower data exposureTests use synthetic identifiers and do not retain document content
Asynchronous validationWebhook delivery, idempotency, and retries can be tested

Main features

FeatureWhat it allowsNote
Synthetic disputesConsult representative chargeback lifecycle scenariosGenerated on demand
Acceptance and contestationValidate merchant responsesOnly actionable disputes accept a response
WebhooksReceive CHARGEBACK_NEEDS_RESPONSEThe callback must acknowledge delivery with 204
DocumentsValidate evidence and its referencesBinary content is not stored
Data renewalRepeat journeys after resolving pending actionsCompleted data remains until periodic renewal
IsolationSeparate journeys by merchant contextUse the same context throughout one journey

How the Sandbox works

Parity and differences from the real API

AspectReal APISandbox
Routes and contractsOfficial Chargeback API contractSame contract, except for the limitations described on this page
Dispute sourceChargebacks originated by issuers and card networksRepresentative synthetic data
Data generationDepends on real eventsFirst eligible consultation for a new merchant context
ResolutionDepends on real reviews and timelinesSimulated outcome after a short, deterministic interval
DocumentsContent stored according to production rulesFile validated; only metadata retained
DownloadAvailable according to the real contractUnavailable; a known reference returns 410 Gone
RetentionProduction-environment policyData subject to periodic Sandbox renewal
Financial effectMay produce debits or creditsNo 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.

Data is generated on demand. Repeated consultations do not create another set while at least one actionable dispute remains in 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

  1. Consult the disputes assigned to the merchant or the pending actions.
  2. Check dispute_status, merchant_status, cycle, merchant_expiration_date, payment_id, created_at, and affiliation_code.
  3. For needs_response, accept the chargeback or submit a contestation before the deadline.
  4. To contest, upload synthetic evidence and reference the returned document_id.
  5. Track the status, cycle history, and final outcome.
StatusMeaning
needs_responseThe merchant must accept or contest the dispute
in_reviewThe response is under simulated review
dispute_wonOutcome in favor of the merchant
dispute_lostOutcome in favor of the cardholder
dispute_partially_wonPartial 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

The 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.
After receiving the notification, retrieve the full details through the API. The callback must be a public HTTPS URL with valid TLS, accept POST, respond with exactly 204 No Content, and deduplicate deliveries using idempotency_key.
Registration validates URL syntax and HTTPS but does not test whether the receiver works. During delivery, internal destinations and private or reserved addresses are blocked. A response other than 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

File name, type, and size follow the official contract. Binary content is processed only for validation and is not stored. Only metadata and document_id remain available for listing, contestation, cycle history, and deletion rules.
A known reference returns 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

While an actionable dispute remains in 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

ComponentPurposeUse
REST APIConsult and respond to disputesRequired
WebhookReceive asynchronous notifications for disputes requiring actionOptional 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:

  1. Create an account on the Getnet developer portal.
  2. Generate a client_id and client_secret for the Sandbox.
  3. Understand the basics of REST, HTTP, JSON, and OAuth 2.0.
  4. Provide a public HTTPS callback to validate webhooks.
  5. 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.


  1. Generate your credentials and define a synthetic merchant context.
  2. Configure a public HTTPS callback that responds with 204 No Content.
  3. Register a subscription for CHARGEBACK_NEEDS_RESPONSE.
  4. Consult disputes to generate the first synthetic data set.
  5. Receive the notification and deduplicate it using idempotency_key.
  6. Retrieve the details and confirm the response deadline.
  7. Validate an acceptance flow.
  8. Validate a contestation using a synthetic document.
  9. Track the simulated review, cycles, and outcome.
  10. Resolve the remaining pending actions and confirm that new data is generated.
  11. Remove the webhook subscription when testing is complete.

Next steps

  1. Access the Getnet developer portal to create your account, generate credentials, and consult the API reference.
  2. Configure OAuth 2.0 Client Credentials authentication according to the official technical documentation.
  3. Complete the recommended first journey on this page.
  4. Use the API reference for complete route, parameter, and payload details.