Skip to main content
Pasteaza uses different base URLs for sandbox and production environments.
Use the sandbox environment while you build and test. Use production only when you are ready to send live traffic.

Environments

Sandbox

Test your integration safely with sandbox credentials and endpoints.

Production

Send live requests only after you have completed end-to-end testing.

Sandbox environment

Use the sandbox environment when you are testing your integration.
https://api-sandbox.oyapasteaza.com/v1
Pair sandbox requests with your sk_test_ API keys.

Production environment

Use the production environment when you are processing real transactions.
https://api.oyapasteaza.com/v1
Pair production requests with your sk_live_ API keys.

Versioning

Pasteaza includes the API version in the URL path.
https://api.oyapasteaza.com/v1
Future breaking changes will use new versions, such as /v2, while keeping existing integrations working.

Request headers

All API requests should include these headers:
Content-Type: application/json
Accept: application/json

HTTPS

Always send requests over HTTPS. Requests sent over unsecured HTTP are rejected.

Standard response format

Successful responses usually look like this:
{
  "status": true,
  "message": "Request completed successfully.",
  "data": {}
}
Failed responses usually look like this:
{
  "status": false,
  "message": "Invalid API key.",
  "code": "authentication_failed"
}

Next step

After you set your base URL, continue to the authentication guide to learn how to authorize requests.