TTocler Docs
Dashboard
API reference›Tocler Pay API

Tocler Pay API — introduction

Base address, keys, scopes, errors, idempotency and limits.

Updated 2 November 2026Live from Tocler
WhatValue
Base addresshttps://api.tocler.com/api/pay — every path starts with /v1/
FormatJSON in and out, UTF-8, request bodies up to 32 KB
AuthenticationAuthorization: Bearer tp_live_<id>.<secret> on every request
WhereServer to server only — never in a browser or an app

Keys and their features

Each key has scopes (payments:create, payments:read, payments:cancel, addresses:read, addresses:write), address modes (tocler = Tocler Pay’s addresses, only for merchants Tocler allows; own = your addresses), allowed coins, a most per payment and a daily limit in USD, allowed IPs, requests per minute (120 by default) and an optional expiry date. Keys are stored only as a keyed hash — a lost key can’t be shown again: revoke it and make a new one.

Errors

Every error has an HTTP status and a stable code:

Error
{ "error": { "code": "amount_too_small", "message": "The smallest payment is $0.50.", "field": "amount_usd" } }
StatusCodesWhen
400invalid_request · amount_too_small · amount_over_key_limit · daily_limit_reached · invalid_addressA field or an amount rule
401unauthorized · key_revoked · key_expiredThe key
403missing_scope · address_mode_not_allowed · coin_not_allowed · ip_not_allowed · merchant_suspendedThe key’s features
404not_foundNo such object (or not yours)
409reference_paid · payment_in_progress · coin_unavailable · not_cancellable · idempotency_mismatch · request_in_progressThe state
429rate_limitedSlow down
500 / 503server_error · unavailableTry again later with the same Idempotency-Key

Idempotency

Send Idempotency-Key: <1–64 letters, digits, _ - : .> with every POST. The same key and body return the first answer for 24 hours (header Idempotent-Replayed: true); the same key with another body answers 409 idempotency_mismatch.

Was this page helpful?