Sign inConnect your AI
api / errors

Payment required

HTTP 402, code payment_required.

Updated · API v1

What it means

The organization's contract does not cover this request, or a spending limit an organization admin set in Adspy stops it.

What to do

An organization owner or admin can check the limits in Adspy (Settings, then Usage), or write to info@adspy.sh. Nothing was charged.

Not retryable as it is: sending the same request again gives the same answer.

The answer

application/problem+json
{
  "type": "https://www.adspy.sh/docs/api/errors/payment-required",
  "title": "Payment required",
  "status": 402,
  "detail": "…",
  "code": "payment_required",
  "request_id": "3f5b9c2e-8d41-4a7e-9b0c-6e2d1f4a8c37",
  "instance": "/api/v1/…"
}

Every error type and how to handle them.