跳转到内容

Get subscription invoice checkout

请求

Requires order.query. Returns invoice status and checkout_url when pending; may return canceled_url. This merchant v2 endpoint uses Ed25519, separate from the hosted-checkout JWT entry.

安全
Ed25519
查询
subscription_idstring必需
invoice_nostring必需
标头
X-API-Key-IDstring必需

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

X-API-Timestampstring必需

Unix timestamp in seconds; tolerance is ±300 seconds.

X-API-Noncestring必需

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

Digeststring必需

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必需

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

curl -i -X GET \
  'https://developer.infini.money/_mock/zh/apis/acquiring/subscription/invoice/checkout?subscription_id=string&invoice_no=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Digest: string' \
  -H 'X-API-Key-ID: string' \
  -H 'X-API-Nonce: string' \
  -H 'X-API-Timestamp: string'

响应

Standard code/message/data envelope; code=0 indicates success.