Subscription

Create subscription

Changed on
post/subscription

Request

Headers

X-API-Key-IDstring required

32-character Base58 credential ID returned after public-key registration.

X-API-Timestampstring required

Unix timestamp in seconds; tolerance is ±300 seconds.

X-API-Noncestring required

16 cryptographically random bytes encoded as unpadded Base64URL; fresh on every attempt.

Digeststring required

SHA-256= followed by standard padded Base64 of SHA-256 of exact request body bytes. Required even for an empty body; included in the signing string.

Authorizationstring required

Use Ed25519 signature="BASE64_SIGNATURE", where BASE64_SIGNATURE is the standard padded Base64 signature. See /docs/en/4-authorization for the exact signing string.

Request body

amountstring string required

首次支付金额

currencystring string

币种(USD, EUR, GBP, CAD, SGD, AUD)

request_idstring string required

请求唯一ID

client_referencestring string

客户端引用

expires_ininteger

订单过期相对时间(Unix秒);不传则使用后台默认值

merchant_aliasstring string

商户别名

success_urlstring string

首次支付成功跳转

failure_urlstring string

首次支付失败跳转

pay_methodsinteger[]

支付方式

Response

order_idstring string

首次订单ID

request_idstring string

请求ID

client_referencestring string

客户端引用

checkout_urlstring string

订阅确认页面 URL

tokenstring string

JWT Token

Changes

    • breaking

      added the new required header request parameter X-API-Key-ID

    • breaking

      added the new required header request parameter X-API-Nonce

    • breaking

      added the new required header request parameter X-API-Timestamp

    • breaking

      the header request parameter Authorization became required

    • breaking

      the header request parameter Digest became required

    • warning

      deleted the header request parameter Date

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status