billing

Create a checkout link

A merchant-of-record checkout URL for a subscription plan or a credit pack, bound to the calling key's account. Open it in a browser; payment applies to the account through the webhook within a minute. The account page offers the same links without an API call.

post/v1/billing/checkout

Request

  • Base URL: https://api.niubai.vip (the document declares no server; this is the origin it was published from)
  • URL: https://api.niubai.vip/v1/billing/checkout
  • Auth: HTTP bearer

Request body

planstring nullable

starter | growth | scale

packstring nullable

pack_500 | pack_5k

Response

Successful Response

urlstring required

Open in a browser to pay.

itemstring required
kindstring required

plan or pack.

Changes

No recorded changes to this operation across all 1 revision of this API.