Sandbox Environment

The Justt Sandbox environment allows you to test the complete chargeback lifecycle without affecting production data or incurring real costs. This testing environment enables you to simulate chargebacks, move them through different statuses, and validate your webhook integrations.

Overview

The Justt Sandbox is a dedicated test account in the Justt Hub where you can generate test chargebacks on demand and run your full integration against them. Nothing in it touches production data, and nothing is ever sent to a payment provider.

Use it to:

  • Generate test chargebacks in seconds, directly from the Hub, with no API call and no payload to build.
  • Control the test data: choose the PSP status, the batch size and the external identifier of each chargeback, so they match records in your own test systems.
  • Exercise the Justt API end to end: retrieve chargebacks, send enrichment data, upload files and submit evidence.
  • Validate your webhook handling against real events before going live.

A typical test run looks like this:

  1. Log in to your sandbox account in the Hub and create an API key.
  2. Generate test chargebacks from the Chargebacks page.
  3. Retrieve them through the API, or receive them through webhooks.
  4. Send enrichment data and files for each chargeback, as you would in production.
  5. Check the results in the Hub and in your own system.

Getting started

1. Get access to your sandbox account

Your sandbox is a separate account in the Justt Hub, created for you by the Justt team. You receive an email invitation to it, and once you are in you can invite other members of your team. If you don't have a sandbox account yet, ask your Justt contact to set one up.

2. Create a sandbox API key

In your sandbox account, open Setup → Developer → API Integration and create a new API key. See Authentication for the access levels available.

Sandbox and production use separate API keys. A key created in your sandbox account only ever reads and writes sandbox data. Treat it as a secret all the same.

3. Call the API

The sandbox uses the same base URL, endpoints and Bearer authentication as production. The API key is what routes your requests to the sandbox account.

https://api.justt.ai/v1
curl https://api.justt.ai/v1/chargebacks \
  -H "Authorization: Bearer YOUR_SANDBOX_API_KEY" \
  -H "accept: application/json"

There is no /sandbox prefix on these endpoints. Call /v1/chargebacks, /v1/transactions and the rest exactly as you will in production.

Creating test chargebacks

Test chargebacks are generated from the Hub, on the Chargebacks page of your sandbox account.

  1. Log in to the Hub and open your sandbox account. If the account has more than one merchant, select the merchant you want to add chargebacks to.
  2. Go to the Chargebacks page.
  3. Click + Chargebacks, next to the DEV MODE badge at the top of the list. The button is shown only in sandbox accounts.
  4. Choose the PSP status the chargebacks are created with: Needs response (default), Under review, Won or Lost. The status applies to the whole batch.
  5. Set the Number of chargebacks, from 1 to 25 per batch.
  6. Under External identifiers, enter one identifier per chargeback, or leave the fields empty. Empty fields get an auto-generated identifier such as ext-4k2x9a. Auto-generate all fills them in for you to review first.
  7. Click Add N chargebacks. A confirmation banner appears and the new chargebacks are in the list straight away.

Screenshot: Chargebacks page with the + Chargebacks button

Screenshot: Add Chargebacks form

Using your own external identifiers

The external identifier is how you tie a test chargeback to a record in your own system. It is shown as Custom ID in the Hub and returned as externalTransactionIdentifier by the API.

Enter your own order or transaction IDs here if you want to test the lookup your integration will do in production: fetch the chargeback, read externalTransactionIdentifier, find the matching order on your side, send its data back to Justt.

Identifiers must be unique. A batch is rejected, and nothing is created, if an identifier is repeated in the batch or already exists on a chargeback in the same merchant. Each identifier can be up to 128 characters.

What a test chargeback contains

Every test chargeback is generated with realistic, randomized data, so a batch gives you a varied set to work with.

FieldValue
AmountRandom, between 15.00 and 2,500.00
CurrencyUSD, EUR or GBP
Reason and reason codeOne of: fraudulent (10.4), product not received (13.1), subscription canceled (13.2), product unacceptable (13.3), credit not processed (13.6), unrecognized (10.4)
Card schemeVisa
Posting date5 to 30 days before creation
Due date20 to 40 days after creation, so the chargeback is open
Customer name and emailSample values
PSP statusThe status you selected
External identifierThe value you entered, or an auto-generated one

PSP status is set at creation

The PSP status of a test chargeback cannot be changed after it is created. To test how your integration handles another status, generate a new batch with that status.

The chargebacks list in the Hub does not display the PSP status. Read it from the API instead, in the pspStatus field, or filter on it:

curl "https://api.justt.ai/v1/chargebacks?pspStatus=won" \
  -H "Authorization: Bearer YOUR_SANDBOX_API_KEY"

Working with test chargebacks through the API

Once the chargebacks are in the list, your integration works with them exactly as it will with live ones. The endpoints, request bodies and responses are the same as production.

StepRequestReference
List chargebacksGET /v1/chargebacksGet chargebacks by search criteria
Get one chargebackGET /v1/chargebacks/{id}Get chargeback
Send enrichment dataPATCH /v1/chargebacks/{id}Update chargeback
Send transaction or order dataPOST /v1/transactionsUpsert transaction
Upload a fileFiles endpointUpload a file
Submit evidenceEvidence endpointRequest to submit evidence for a chargeback

Example: find the chargebacks that need your data

curl "https://api.justt.ai/v1/chargebacks?status=waiting_for_data&limit=25" \
  -H "Authorization: Bearer YOUR_SANDBOX_API_KEY"

Each chargeback in the response carries the identifier you set when you created it:

{
  "id": "3213c6e9-b23e-48f4-8f12-22f181242c2e",
  "externalTransactionIdentifier": "order-10045",
  "amount": 249.90,
  "currency": "USD",
  "reason": "fraudulent",
  "reasonCode": "10.4",
  "cardScheme": "visa",
  "postingDate": "2026-11-10T09:12:44.000Z",
  "dueDate": "2026-12-20T09:12:44.000Z",
  "pspStatus": "needs_response",
  "status": "waiting_for_data",
  "isEnriched": false,
  "wasRepresented": false
}

The response is trimmed here. See the API reference for the full schema.

Example: send enrichment data

Use the id from the response to send the data you hold for that order. The full field list and flow are in Enriching Chargebacks data through Justt API.

curl -X PATCH "https://api.justt.ai/v1/chargebacks/3213c6e9-b23e-48f4-8f12-22f181242c2e" \
  -H "Authorization: Bearer YOUR_SANDBOX_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "customerName": "Alex Moreau",
    "customerIp": "203.0.113.24"
  }'

After the update, open the chargeback in the Hub to confirm the data points arrived as you expect.

Nothing reaches a payment provider

Sandbox chargebacks are not connected to a PSP. Requests that would normally result in a call to your payment provider, such as an evidence submission, are accepted and processed by Justt, but nothing is sent out.

Testing webhooks

Webhooks work in the sandbox the same way they do in production, so you can validate your endpoint, signature verification and event handling before go-live.

  1. Add an endpoint in your sandbox account. Follow Add a Webhook Endpoint, and point it at your test or staging environment. Add it while you are in the sandbox account, not your production account.
  2. Generate test chargebacks. Each new chargeback triggers a chargeback.created event to your endpoint.
  3. Act on them through the API. Sending enrichment data triggers chargeback.updated, and an evidence submission triggers chargeback.evidence.submitted.
  4. Check the delivery logs. Open your endpoint in the webhook dashboard to see each message, its payload, every delivery attempt and the response your server returned.

Because the PSP status of a test chargeback is fixed at creation, chargeback.status.updated is not triggered by sandbox activity. To test your handler for it, or for any other event type, open your endpoint in the webhook dashboard, go to the Testing tab, pick the event type and click Send Example. See Test Webhook Endpoints.

For the full list of events and payloads, see Webhook Events & Event Types. To validate that messages come from Justt, see Signature Verification.

Good to know

  • Sandbox accounts only. The + Chargebacks button and the DEV MODE badge never appear on a production account.
  • 25 chargebacks per batch. There is no limit on the number of batches, so run several to build a larger set.
  • PSP status is fixed at creation. Generate a new batch to test another status.
  • Test chargebacks age like real ones. Due dates are 20 to 40 days out. Once a due date passes, the chargeback is no longer open, so generate a fresh batch for a new test cycle.
  • No connection to your PSP's test environment. The sandbox does not pull disputes from your payment provider's sandbox. Chargebacks created there will not appear in Justt.
  • Sandbox data is isolated. Production chargebacks and history are not available in the sandbox. To test against your real historical data, see Use past data.
  • Rate limits apply. See Rate Limit.

Troubleshooting

What you seeLikely causeWhat to do
No + Chargebacks button on the Chargebacks pageYou are in a production account, or no single merchant is selectedSwitch to your sandbox account and select a merchant. The button is not shown in the account-level view.
"This merchant has no Justt Sandbox integration"The Justt Sandbox integration is not connected to the merchantConnect Justt Sandbox from the Integrations page, then generate the chargebacks again.
"These external identifiers are already used on this merchant"An identifier you entered already exists on a chargebackUse different identifiers. Nothing was created from this batch.
"External identifiers must be unique within a batch"The same identifier appears twice in the formRemove the duplicate and submit again.
"N of M could not be created"Part of the batch failed while the rest was createdThe message lists the identifiers that failed. Generate those again.
The API returns 404The path includes a /sandbox prefixCall the standard paths, for example /v1/chargebacks.
The API returns no chargebacks, or production dataThe request uses a production API keyUse an API key created in your sandbox account.
A test chargeback is no longer in the open listIts due date has passedGenerate a new batch.
Webhooks are not receivedThe endpoint is configured on another account, or delivery is failingConfirm the endpoint exists in the sandbox account and check its delivery logs. See Troubleshooting & Failure Recovery.

Still stuck? Contact us.


Did this page help you?