Skip to main content

REST API Guide

This guide covers the request/response format and common rules for the OOZOO PAY REST API.

Endpoint

All API requests use the following Base URL.

https://api.oozoopay.com

The full request URL is constructed by combining the Base URL with the API path.

https://api.oozoopay.com/api/invoices
Test Environment

No separate sandbox environment is provided. For testing, create a Test Mode Project on the Merchant Dashboard to verify integration on blockchain testnets.

Request Format

ItemValue
ProtocolHTTPS (TLS 1.2+)
Content-Typeapplication/json; charset=utf-8
EncodingUTF-8

All requests must include Authentication headers (X-Client-Key, X-Timestamp, X-Signature).

Response Format

All responses are wrapped in a standard envelope format.

Success Response

{
"success": true,
"data": {
"invoiceId": "550e8400-e29b-41d4-a716-446655440000"
}
}

List Response

{
"success": true,
"data": {
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "CONFIRMED",
"type": "DEPOSIT",
"amount": "0.05",
"price": "100.00",
"unit": "usd"
}
],
"meta": {
"total": 100,
"page": 1,
"limit": 20,
"totalPages": 5,
"hasNext": true,
"hasPrev": false
}
}
}

Error Response

{
"success": false,
"code": "PROJECT_INVOICE_NOT_FOUND",
"message": "Invoice not found"
}

Error responses include a code field that can be used to identify the error type. See the Error Codes documentation for a complete list.

HTTP Status Codes

CodeDescription
200 OKRequest successful
201 CreatedResource created successfully
400 Bad RequestInvalid request (parameter error)
401 UnauthorizedAuthentication failed (invalid signature, expired key)
404 Not FoundResource not found
409 ConflictResource state conflict
500 Internal Server ErrorInternal server error

Pagination

List APIs support page-based pagination. Use the following query parameters to specify the page.

ParameterTypeDefaultDescription
pagenumber1Page number (starts from 1)
limitnumber20Items per page (max 100)

The response meta object contains pagination information.

FieldTypeDescription
totalnumberTotal number of items
pagenumberCurrent page number
limitnumberItems per page
totalPagesnumberTotal number of pages
hasNextbooleanWhether next page exists
hasPrevbooleanWhether previous page exists