Skip to main content
The PIK Open API gives you programmatic access to your PIK account. Use it to create payment links, query transaction history, manage webhook endpoints, and automate reconciliation workflows. All endpoints follow a consistent request/response format.

Base URL

https://api.pik.global/v1
All requests must be made over HTTPS. HTTP requests are rejected.

Authentication

Every request requires an API key passed as a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
See Authentication for details on generating and managing API keys.

Request format

Send request bodies as JSON with the Content-Type: application/json header:
curl -X POST https://api.pik.global/v1/payment-links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": "100.00", "currency": "USDT" }'

Response format

All responses are JSON. Successful responses return a 2xx status code. Error responses return a 4xx or 5xx status code with an error object:
{
  "error": {
    "code": "invalid_request",
    "message": "The 'amount' field is required."
  }
}

Pagination

List endpoints support pagination via limit and offset query parameters:
ParameterDefaultMaxDescription
limit20100Number of results per page
offset0Number of results to skip
Paginated responses include top-level total, limit, and offset fields.

Error codes

HTTP StatusError CodeMeaning
400invalid_requestMissing or invalid request parameter
401unauthorizedMissing or invalid API key
403forbiddenAPI key lacks permission for this action
404not_foundThe requested resource does not exist
422unprocessable_entityValid request but business rule violation
429rate_limitedToo many requests — slow down
500internal_errorPIK server error — try again later

Rate limits

The PIK API enforces rate limits to ensure stability. If you exceed the limit, you receive a 429 response. Implement exponential backoff when retrying after a rate limit error.

Endpoints

Authentication

API key management reference

Payment Links

Create and retrieve payment links

Transactions

Query payment transactions

Webhooks

Register and manage webhook endpoints