Skip to main content

Verify a the billing provider checkout

POST 

/api/v1/credits/checkout/verify

Verify a the billing provider checkout and credit the organization if payment succeeded.

Intended to be called after the browser is redirected back from the billing provider hosted checkout. Cross-checks the checkout's metadata against the caller's organization to prevent credit cross-posting.

  • Idempotent: a second call on a credited checkout returns status="already_credited" instead of double-crediting.
  • 403 if the checkout metadata belongs to a different organization.
  • 404 if the checkout id is unknown to the billing provider.
  • 501 if the billing provider is not configured in this environment.
  • Scope required: billing:manage.
  • Rate-limit tier: billing (10/hour per user).

Request

Responses

Successful Response