# Sandbox & Testing

Learn how Sandbox supports integration testing.

Sandbox (XUAT) mirrors the Payment Network production environment and provides a safe place to build, test, and troubleshoot integrations using non-production credentials and test data.

New to Payment Network? Start with [onboarding](/products/deluxe-payment-network/build-with-deluxe/get-started) to obtain Sandbox (XUAT) access, credentials, and implementation resources.

### Sandbox Environment

Use the following endpoints during development and testing.

| Service | Sandbox Endpoint |
|  --- | --- |
| OAuth Token Service | `https://developer.services.deluxe.com/oauth2/v2/token` |
| Payment Network APIs | `https://stage.dcip.deluxe.com/payables/dpxn/v1` |
| Directory Network APIs | `https://stage.dcip.deluxe.com/payables/ddn/v1` |


Use the Sandbox environment for all development, integration testing, and validation activities.

### What You Can Test

Use the Sandbox environment to validate:

- Authentication and token generation
- Payment file uploads
- Payment file status retrieval
- Payment status retrieval
- Directory Network directory access
- Error handling and exception workflows


Testing these scenarios helps identify issues before moving to production.

### Common Testing Scenarios

#### Successful Payment Processing

Verify that:

- A valid payment file is accepted
- A tracking number is returned
- Payment status information is available


#### Validation Failures

Verify that your application can handle:

- Missing required fields
- Invalid payment data
- Incorrect file formats


#### Authentication Failures

Verify that your application can handle:

- Missing access tokens
- Expired access tokens
- Invalid credentials


#### Status Monitoring

Verify that your application can:

- Retrieve file status information
- Retrieve payment status information
- Detect terminal payment outcomes


### Sandbox vs. Production

| Sandbox (XUAT) | Production |
|  --- | --- |
| Development and testing | Live payment processing |
| Test credentials | Production credentials |
| Validation and integration testing | Business transactions |
| Non-production data | Production data |


Do not use Sandbox credentials or endpoints in production environments.

### Before Moving to Production

Before requesting production access, confirm that you can:

Authenticate successfully

Submit payment files

Retrieve file status information

Retrieve payment status information

Handle validation failures

Investigate processing exceptions

See [**Test Your Environment**](/products/deluxe-payment-network/build-with-deluxe/testing) for a complete validation workflow.