---
updatedAt: 2026-06-04T13:19:00.000Z
agentTools:
  projectIndex: https://docs.zerohash.com/llms.txt
---

# Get payin authorization limits


Retrieves the current authorization level, per-window limits, and volume totals for an
end-user participant on the authenticated platform. Optionally scoped to a specific
merchant when `merchant_participant_code` is supplied (the authenticated platform must
operate for that merchant).
  

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "zerohash API",
    "description": "\n### Authentication\n\nzerohash Uses HMAC SHA-256 verification to ensure the authenticity of API requests, follow instructions by link [https://docs.zerohash.com/reference/api-authentication](https://docs.zerohash.com/reference/api-authentication)\n\n<a href=\"/zh-swagger.json\">Download zerohash OpenAPI Schema as JSON</a>\n",
    "version": "1.7.0"
  },
  "servers": [
    {
      "url": "https://api.cert.zerohash.com",
      "description": "Certification API server"
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Payins",
      "description": "Power your checkout with crypto and stablecoins"
    }
  ],
  "paths": {
    "/pay/limits": {
      "get": {
        "tags": [
          "Payins"
        ],
        "summary": "Get payin authorization limits",
        "description": "\nRetrieves the current authorization level, per-window limits, and volume totals for an\nend-user participant on the authenticated platform. Optionally scoped to a specific\nmerchant when `merchant_participant_code` is supplied (the authenticated platform must\noperate for that merchant).\n  ",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          },
          {
            "$ref": "#/components/parameters/Timestamp"
          },
          {
            "name": "participant_code",
            "in": "query",
            "description": "End-user participant code (6-character alphanumeric).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "merchant_participant_code",
            "in": "query",
            "description": "Optional merchant participant code. When supplied, the response also includes `merchant_totals` (volume totals aggregated against that merchant). The authenticated platform must operate for the merchant or the request is rejected.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform and (optionally) merchant payin limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPayLimitsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code400"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code403"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code404"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code500"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code503"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": [],
      "apiPassphrase": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "description": "Your API public key. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for how to obtain keys.",
        "in": "header",
        "name": "X-SCX-API-KEY"
      },
      "apiPassphrase": {
        "type": "apiKey",
        "description": "The passphrase associated with your API key, set when the key was created.",
        "in": "header",
        "name": "X-SCX-PASSPHRASE"
      }
    },
    "parameters": {
      "Signature": {
        "name": "X-SCX-SIGNED",
        "in": "header",
        "description": "HMAC-SHA256 signature of the request, base64-encoded. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for the exact signing formula.",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Timestamp": {
        "name": "X-SCX-TIMESTAMP",
        "in": "header",
        "description": "Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.",
        "required": true,
        "schema": {
          "type": "string",
          "example": "1678901234"
        }
      }
    },
    "schemas": {
      "Code400": {
        "type": "object",
        "description": "Request was rejected by validation or a downstream service. `errors` is an array of human-readable messages; each entry describes a single validation failure or business-rule violation.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "body/amount must be >= 0",
              "body/asset is required"
            ]
          }
        }
      },
      "Code403": {
        "type": "object",
        "description": "Authentication or authorization failed. `error` is always `true`; `message` explains which check failed (missing API key, bad signature, insufficient permission, etc.).",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "This api key does not have write permission to this endpoint"
          }
        }
      },
      "Code404": {
        "type": "object",
        "description": "The requested resource does not exist or is not visible to the caller.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Not Found"
          }
        }
      },
      "Code500": {
        "type": "object",
        "description": "An unexpected error occurred on the server. The request can be retried after a short delay, but the same inputs may reproduce the error.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "Code503": {
        "type": "object",
        "description": "A downstream dependency was unavailable, timed out, or returned a retryable error. Safe to retry; the response carries an `x-zh-allowretry: true` header. Every error response also carries an `x-zh-errorcode` header with a machine-readable error code (`unknown` when the failing service does not supply one).",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Service Unavailable"
          }
        }
      },
      "PayCurrentLimit": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "string",
            "description": "The authorized limit for this window, expressed as a decimal string.",
            "example": "1000.00"
          },
          "spent": {
            "type": "string",
            "description": "Amount spent within this window, expressed as a decimal string.",
            "example": "250.00"
          },
          "remaining": {
            "type": "string",
            "description": "Remaining capacity within this window, expressed as a decimal string.",
            "example": "750.00"
          },
          "window": {
            "type": "string",
            "description": "The time window this limit applies to.",
            "enum": [
              "daily",
              "annual",
              "lifetime"
            ],
            "example": "daily"
          }
        }
      },
      "PayVolumeTotal": {
        "type": "object",
        "properties": {
          "window": {
            "type": "string",
            "description": "The time window for this total.",
            "enum": [
              "daily",
              "annual",
              "lifetime"
            ],
            "example": "daily"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the total amount.",
            "example": "USD"
          },
          "total_amount": {
            "type": "string",
            "description": "Total transacted amount in this window, expressed as a decimal string.",
            "example": "5000.00"
          },
          "transaction_count": {
            "type": "integer",
            "description": "Number of transactions in this window.",
            "example": 12
          }
        }
      },
      "GetPayLimitsResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "object",
            "properties": {
              "request_id": {
                "type": "string",
                "description": "The unique identifier echoed from the request.",
                "example": "test-request-id"
              },
              "participant_code": {
                "type": "string",
                "description": "The shopper participant code.",
                "example": "SHOPP1"
              },
              "merchant_participant_code": {
                "type": "string",
                "description": "The merchant participant code.",
                "example": "MERCH1"
              },
              "merchant_classification": {
                "type": "string",
                "description": "Classification of the merchant (e.g. NON-TRANSFERABLE-3).",
                "example": "NON-TRANSFERABLE-3"
              },
              "current_level": {
                "type": "integer",
                "description": "Current authorization level for this participant (1–4).",
                "example": 2
              },
              "current_limits": {
                "type": "array",
                "description": "Authorization limits for each time window at the current level.",
                "items": {
                  "$ref": "#/components/schemas/PayCurrentLimit"
                }
              },
              "platform_totals": {
                "type": "array",
                "description": "Aggregated transaction volume totals across the platform.",
                "items": {
                  "$ref": "#/components/schemas/PayVolumeTotal"
                }
              },
              "merchant_totals": {
                "type": "array",
                "description": "Aggregated transaction volume totals for the merchant.",
                "items": {
                  "$ref": "#/components/schemas/PayVolumeTotal"
                }
              }
            }
          }
        }
      }
    }
  }
}
```