Skip to main content

Base URL

All API requests should be made to:
The Digitzs API follows REST principles and returns JSON-formatted responses.

API Sections

The Digitzs API is organized into three main sections:

Authorization

Generate API keys and access tokens

Payments

Process and manage payment transactions

Merchants

Create and manage merchant accounts

Authentication

All API requests (except authorization endpoints) require authentication using three headers:
App tokens expire after one hour. Implement token refresh logic in your application. See the Authentication Guide for details.

Request Format

JSON API Specification

The Digitzs API follows the JSON API specification for request and response formatting:

Key Concepts

All requests and responses wrap data in a data object that contains the resource type, ID, and attributes.
The type field identifies the resource type (e.g., “auth”, “payments”, “merchants”).
The attributes object contains all the resource-specific data and parameters.

Response Format

Successful Response

Error Response

Common Data Types

Amounts

All monetary amounts are specified in cents (smallest currency unit).

Currency Codes

Use three-character ISO 4217 currency codes:

Dates and Times

All timestamps are returned in ISO 8601 format:

Rate Limiting

The Digitzs API implements rate limiting to ensure fair usage and system stability.
If you exceed rate limits, you’ll receive a 429 Too Many Requests error. Implement exponential backoff in your retry logic:

Idempotency

To prevent duplicate transactions, you can include a requestId in your payment requests:
Use UUID v4 format for request IDs. The same request ID will return the original response if submitted multiple times.

Testing

Test Mode

Use test credentials provided during onboarding to test your integration without processing real transactions.

Test Cards

For testing card payments, use these test card numbers:

Test ACH

For testing ACH payments, use any valid routing number (must be real) with test account numbers:

Webhooks

Webhook support is coming soon. Check back for updates on event notifications.

SDK and Libraries

Node.js Example

Complete examples available in the authentication guide

Python Example

Complete examples available in the authentication guide

PHP Example

Complete examples available in the authentication guide

Ruby Example

Complete examples available in the authentication guide

Next Steps

1

Set Up Authentication

Follow the authentication guide to generate your access tokens
2

Create a Merchant

Use the merchant endpoints to set up accounts
3

Process Payments

Start accepting payments with the payment endpoints

Additional Resources

Error Codes

Complete error code reference

API User Manual

Download the complete manual