{"items":[{"type":"link","label":"Infini Acquiring API","link":"/zh/apis/acquiring","routeSlug":"/zh/apis/acquiring","content":{"contentType":"overview","meta":{"name":"Infini Acquiring API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"acquiring.json","url":"/_bundle/@l10n/zh/apis/acquiring.json?download"},{"kind":"download","label":"acquiring.yaml","url":"/_bundle/@l10n/zh/apis/acquiring.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Infini Acquiring API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hosted checkout APIs for orders, payments, and subscriptions. All endpoints use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/v1/acquiring"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" prefix."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Requests require "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". To use "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Try it"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", save Sandbox credentials on "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/credentials"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"API Credentials"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or enter Key and Secret under "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Security → HMAC"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}],"sectionId":"/zh/apis/acquiring"}],"sectionId":"/zh/apis/acquiring"}]}]}},{"type":"group","label":"Currency","link":"/zh/apis/acquiring/currency","routeSlug":"/zh/apis/acquiring/currency","items":[{"label":"List supported payment currencies","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/currency/getsupportedcurrencies","routeSlug":"/zh/apis/acquiring/currency/getsupportedcurrencies","metadata":{"seo":{"title":"List supported payment currencies","description":"Returns the supported blockchain and token combinations available for acquiring payments."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getSupportedCurrencies","name":"List supported payment currencies","isWebhook":false,"pointer":"/paths/~1currency/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List supported payment currencies","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns the supported blockchain and token combinations available for acquiring payments."},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]}],"pointer":"/paths/~1currency/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/currency","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/currency","href":"currency/getsupportedcurrencies","openApiOperationId":"getSupportedCurrencies","summary":"List supported payment currencies"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"curl -i -X GET \\\n  '{{INFINI_BASE_URL}}/currency' \\\n  -H 'Date: <GMT date>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/currency\"\nmethod := \"GET\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Supported chain and token combinations","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes"}],"pointer":"/paths/~1currency/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/currency/getsupportedcurrencies"}],"panels":[]}]},"httpPath":"/currency"}],"content":{"contentType":"group","meta":{"name":"Currency"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Currency","showPageActions":true},{"nodeType":"markdoc","content":"Supported payment chains and tokens"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/currency","summary":"List supported payment currencies","prefix":{"name":"get","color":"get"},"badges":[],"link":"/currency/getsupportedcurrencies","deprecated":false}]}]}]}]}},{"type":"group","label":"Order","link":"/zh/apis/acquiring/order","routeSlug":"/zh/apis/acquiring/order","items":[{"label":"Get a new order","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/order/paths/~1order/get","routeSlug":"/zh/apis/acquiring/order/paths/~1order/get","metadata":{"seo":{"title":"Get a new order","description":"Get a new order"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Get a new order","isWebhook":false,"pointer":"/paths/~1order/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a new order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"order_id","in":"query","schemaId":"schema_81","description":"Order id"}],"pointer":"/paths/~1order/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]}],"pointer":"/paths/~1order/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/order","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[{"name":"order_id","in":"query","schemaId":"schema_81"}],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/order","href":"order/paths/~1order/get","summary":"Get a new order"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — signing path must include query string when present\ncurl -i -X GET \\\n  '{{INFINI_BASE_URL}}/order' \\\n  -H 'Date: <GMT date>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/order\"\nmethod := \"GET\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes"}],"pointer":"/paths/~1order/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/order/paths/~1order/get"}],"panels":[]}]},"httpPath":"/order"},{"label":"Create a new order","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/order/paths/~1order/post","routeSlug":"/zh/apis/acquiring/order/paths/~1order/post","metadata":{"seo":{"title":"Create a new order","description":"Create a new order"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create a new order","isWebhook":false,"pointer":"/paths/~1order/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a new order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1order/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq","pointer":"/paths/~1order/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/order","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/order","href":"order/paths/~1order/post","summary":"Create a new order"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — save credentials on /credentials for Try it, or sign manually\ncurl -i -X POST \\\n  '{{INFINI_BASE_URL}}/order' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"order_id\": \"ord-123\",\n  \"chain\": \"ETHEREUM\",\n  \"token_id\": \"USDT\",\n  \"payment_method\": 1,\n  \"force_create\": false\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/order\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes"}],"pointer":"/paths/~1order/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/order/paths/~1order/post"}],"panels":[]}]},"httpPath":"/order"},{"label":"Reissue order token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/order/paths/~1order~1token~1reissue/post","routeSlug":"/zh/apis/acquiring/order/paths/~1order~1token~1reissue/post","metadata":{"seo":{"title":"Reissue order token","description":"Reissue order token"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Reissue order token","isWebhook":false,"pointer":"/paths/~1order~1token~1reissue/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Reissue order token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1order~1token~1reissue/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq","pointer":"/paths/~1order~1token~1reissue/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/order/token/reissue","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/order/token/reissue","href":"order/paths/~1order~1token~1reissue/post","summary":"Reissue order token"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — save credentials on /credentials for Try it, or sign manually\ncurl -i -X POST \\\n  '{{INFINI_BASE_URL}}/order/token/reissue' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"request_id\": \"<uuid>\",\n  \"amount\": \"10.00\",\n  \"currency\": \"USD\",\n  \"order_desc\": \"Test order\"\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/order/token/reissue\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes"}],"pointer":"/paths/~1order~1token~1reissue/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/order/paths/~1order~1token~1reissue/post"}],"panels":[]}]},"httpPath":"/order/token/reissue"}],"content":{"contentType":"group","meta":{"name":"Order"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Order","showPageActions":true},{"nodeType":"markdoc","content":"Create and query orders, reissue checkout tokens"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/order","summary":"Get a new order","prefix":{"name":"get","color":"get"},"badges":[],"link":"/order/paths/~1order/get","deprecated":false},{"title":"/order","summary":"Create a new order","prefix":{"name":"post","color":"post"},"badges":[],"link":"/order/paths/~1order/post","deprecated":false},{"title":"/order/token/reissue","summary":"Reissue order token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/order/paths/~1order~1token~1reissue/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Payment","link":"/zh/apis/acquiring/payment","routeSlug":"/zh/apis/acquiring/payment","items":[{"label":"Query payment","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/payment/paths/~1payment/get","routeSlug":"/zh/apis/acquiring/payment/paths/~1payment/get","metadata":{"seo":{"title":"Query payment","description":"Query payment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Query payment","isWebhook":false,"pointer":"/paths/~1payment/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query payment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"payment_id","in":"query","schemaId":"schema_82","description":"Payment ID"}],"pointer":"/paths/~1payment/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]}],"pointer":"/paths/~1payment/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/payment","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[{"name":"payment_id","in":"query","schemaId":"schema_82"}],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/payment","href":"payment/paths/~1payment/get","summary":"Query payment"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — signing path must include query string when present\ncurl -i -X GET \\\n  '{{INFINI_BASE_URL}}/payment' \\\n  -H 'Date: <GMT date>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/payment\"\nmethod := \"GET\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes"}],"pointer":"/paths/~1payment/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payment/paths/~1payment/get"}],"panels":[]}]},"httpPath":"/payment"},{"label":"Create a new payment","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/payment/paths/~1payment/post","routeSlug":"/zh/apis/acquiring/payment/paths/~1payment/post","metadata":{"seo":{"title":"Create a new payment","description":"Create a new payment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create a new payment","isWebhook":false,"pointer":"/paths/~1payment/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a new payment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1payment/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq","pointer":"/paths/~1payment/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payment","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/payment","href":"payment/paths/~1payment/post","summary":"Create a new payment"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — save credentials on /credentials for Try it, or sign manually\ncurl -i -X POST \\\n  '{{INFINI_BASE_URL}}/payment' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"request_id\": \"<uuid>\",\n  \"amount\": \"10.00\",\n  \"currency\": \"USD\",\n  \"order_desc\": \"Test order\"\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/payment\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes"}],"pointer":"/paths/~1payment/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payment/paths/~1payment/post"}],"panels":[]}]},"httpPath":"/payment"},{"label":"Quote a payment without creating it","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/payment/paths/~1payment~1quote/post","routeSlug":"/zh/apis/acquiring/payment/paths/~1payment~1quote/post","metadata":{"seo":{"title":"Quote a payment without creating it","description":"Quote a payment without creating it"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Quote a payment without creating it","isWebhook":false,"pointer":"/paths/~1payment~1quote/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Quote a payment without creating it","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1payment~1quote/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq","pointer":"/paths/~1payment~1quote/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payment/quote","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/payment/quote","href":"payment/paths/~1payment~1quote/post","summary":"Quote a payment without creating it"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"curl -i -X POST \\\n  '{{INFINI_BASE_URL}}/payment/quote' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"order_id\": \"ord-123\",\n  \"chain\": \"ETHEREUM\",\n  \"token_id\": \"USDT\",\n  \"payment_method\": 1\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"keyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/payment/quote\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes"}],"pointer":"/paths/~1payment~1quote/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payment/paths/~1payment~1quote/post"}],"panels":[]}]},"httpPath":"/payment/quote"},{"label":"Query Order's payments","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/payment/paths/~1payment~1list/get","routeSlug":"/zh/apis/acquiring/payment/paths/~1payment~1list/get","metadata":{"seo":{"title":"Query Order's payments","description":"Query Order's payments"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Query Order's payments","isWebhook":false,"pointer":"/paths/~1payment~1list/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query Order's payments","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"order_id","in":"query","schemaId":"schema_83","description":"Order ID"}],"pointer":"/paths/~1payment~1list/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]}],"pointer":"/paths/~1payment~1list/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/payment/list","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[{"name":"order_id","in":"query","schemaId":"schema_83"}],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/payment/list","href":"payment/paths/~1payment~1list/get","summary":"Query Order's payments"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — signing path must include query string when present\ncurl -i -X GET \\\n  '{{INFINI_BASE_URL}}/payment/list' \\\n  -H 'Date: <GMT date>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/payment/list\"\nmethod := \"GET\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes"}],"pointer":"/paths/~1payment~1list/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payment/paths/~1payment~1list/get"}],"panels":[]}]},"httpPath":"/payment/list"}],"content":{"contentType":"group","meta":{"name":"Payment"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Payment","showPageActions":true},{"nodeType":"markdoc","content":"Advanced payment APIs (optional for hosted checkout)"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/payment","summary":"Query payment","prefix":{"name":"get","color":"get"},"badges":[],"link":"/payment/paths/~1payment/get","deprecated":false},{"title":"/payment","summary":"Create a new payment","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payment/paths/~1payment/post","deprecated":false},{"title":"/payment/quote","summary":"Quote a payment without creating it","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payment/paths/~1payment~1quote/post","deprecated":false},{"title":"/payment/list","summary":"Query Order's payments","prefix":{"name":"get","color":"get"},"badges":[],"link":"/payment/paths/~1payment~1list/get","deprecated":false}]}]}]}]}},{"type":"group","label":"Subscription","link":"/zh/apis/acquiring/subscription","routeSlug":"/zh/apis/acquiring/subscription","items":[{"label":"Query subscription","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/subscription/paths/~1subscription/get","routeSlug":"/zh/apis/acquiring/subscription/paths/~1subscription/get","metadata":{"seo":{"title":"Query subscription","description":"Query subscription"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Query subscription","isWebhook":false,"pointer":"/paths/~1subscription/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query subscription","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"merchant_sub_id","in":"query","schemaId":"schema_84","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1subscription/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]}],"pointer":"/paths/~1subscription/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/subscription","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[{"name":"merchant_sub_id","in":"query","required":true,"schemaId":"schema_84"}],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/subscription","href":"subscription/paths/~1subscription/get","summary":"Query subscription"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — signing path must include query string when present\ncurl -i -X GET \\\n  '{{INFINI_BASE_URL}}/subscription' \\\n  -H 'Date: <GMT date>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/subscription\"\nmethod := \"GET\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes"}],"pointer":"/paths/~1subscription/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/subscription/paths/~1subscription/get"}],"panels":[]}]},"httpPath":"/subscription"},{"label":"Create subscription","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/subscription/paths/~1subscription/post","routeSlug":"/zh/apis/acquiring/subscription/paths/~1subscription/post","metadata":{"seo":{"title":"Create subscription","description":"Create subscription"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create subscription","isWebhook":false,"pointer":"/paths/~1subscription/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create subscription","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1subscription/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq","pointer":"/paths/~1subscription/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/subscription","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/subscription","href":"subscription/paths/~1subscription/post","summary":"Create subscription"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — save credentials on /credentials for Try it, or sign manually\ncurl -i -X POST \\\n  '{{INFINI_BASE_URL}}/subscription' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"request_id\": \"<uuid>\",\n  \"amount\": \"10.00\",\n  \"currency\": \"USD\",\n  \"order_desc\": \"Test order\"\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/subscription\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes"}],"pointer":"/paths/~1subscription/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/subscription/paths/~1subscription/post"}],"panels":[]}]},"httpPath":"/subscription"},{"label":"Cancel subscription","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/zh/apis/acquiring/subscription/paths/~1subscription~1cancel/post","routeSlug":"/zh/apis/acquiring/subscription/paths/~1subscription~1cancel/post","metadata":{"seo":{"title":"Cancel subscription","description":"Cancel subscription"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Cancel subscription","isWebhook":false,"pointer":"/paths/~1subscription~1cancel/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Cancel subscription","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"InfiniHmac","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Date","in":"header","schemaId":"schema_80","description":"GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request."},{"name":"Authorization","in":"header","schemaId":"schema_80","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HMAC-SHA256 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/en/4-authorization"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" guide."},"children":[]}]}]}]},{"name":"Digest","in":"header","schemaId":"schema_80","description":"SHA-256 digest of the request body (when a body is present)."}],"pointer":"/paths/~1subscription~1cancel/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq","pointer":"/paths/~1subscription~1cancel/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/subscription/cancel","servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Date","in":"header","required":false,"schemaId":"schema_80"},{"name":"Authorization","in":"header","required":false,"schemaId":"schema_80"},{"name":"Digest","in":"header","required":false,"schemaId":"schema_80"}],"cookie":[]},"security":[{"schemes":[{"id":"InfiniHmac","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq"}},"responseCodes":["200"],"requestValues":{"envVariables":{"INFINI_KEY_ID":"YOUR_KEY_ID","INFINI_SECRET":"YOUR_SECRET","INFINI_BASE_URL":"https://openapi-sandbox.infini.money/v1/acquiring"}},"pointer":"/subscription/cancel","href":"subscription/paths/~1subscription~1cancel/post","summary":"Cancel subscription"},"definitionSamples":[{"lang":"curl","label":"cURL (HMAC)","source":"# HMAC-SHA256 — save credentials on /credentials for Try it, or sign manually\ncurl -i -X POST \\\n  '{{INFINI_BASE_URL}}/subscription/cancel' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Date: <GMT date, e.g. Tue, 21 Jan 2025 12:00:00 GMT>' \\\n  -H 'Digest: SHA-256=<base64(sha256(request body))>' \\\n  -H 'Authorization: Signature keyId=\"{{INFINI_KEY_ID}}\",algorithm=\"hmac-sha256\",headers=\"@request-target date\",signature=\"<signature>\"' \\\n  -d '{\n  \"request_id\": \"<uuid>\",\n  \"amount\": \"10.00\",\n  \"currency\": \"USD\",\n  \"order_desc\": \"Test order\"\n}'"},{"lang":"Go","label":"Go (HMAC)","source":"// Signing string: {keyId}\\n{METHOD} {path}\\ndate: {GMT}\\n\n// Digest (POST): SHA-256=<base64(sha256(body))>\nkeyID := \"{{INFINI_KEY_ID}}\"\nsecretKey := \"{{INFINI_SECRET}}\"\npath := \"/v1/acquiring/subscription/cancel\"\nmethod := \"POST\""}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/zh/apis/acquiring","description":"Mock server","isMockServer":true},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}],"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes"}},"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes"}],"pointer":"/paths/~1subscription~1cancel/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/subscription/paths/~1subscription~1cancel/post"}],"panels":[]}]},"httpPath":"/subscription/cancel"}],"content":{"contentType":"group","meta":{"name":"Subscription"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Subscription","showPageActions":true},{"nodeType":"markdoc","content":"Subscription billing"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/subscription","summary":"Query subscription","prefix":{"name":"get","color":"get"},"badges":[],"link":"/subscription/paths/~1subscription/get","deprecated":false},{"title":"/subscription","summary":"Create subscription","prefix":{"name":"post","color":"post"},"badges":[],"link":"/subscription/paths/~1subscription/post","deprecated":false},{"title":"/subscription/cancel","summary":"Cancel subscription","prefix":{"name":"post","color":"post"},"badges":[],"link":"/subscription/paths/~1subscription~1cancel/post","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.GetSupportCurrencyRes","data":{"properties":{"list":{"description":"List of supported cryptocurrencies","items":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.SupportCurrency"},"type":"array"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.SupportCurrency":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.SupportCurrency","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.currency.v1.SupportCurrency","data":{"properties":{"chain":{"description":"Blockchain network name","example":"TRON","format":"string","type":"string"},"token_id":{"description":"Token identifier","example":"USDT","format":"string","type":"string"},"contract":{"description":"Token contract address","example":"TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj","format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.QueryOrderRes","data":{"properties":{"merchant_id":{"format":"string","type":"string"},"request_id":{"format":"string","type":"string"},"order_id":{"format":"string","type":"string"},"client_reference":{"format":"string","type":"string"},"order_desc":{"format":"string","type":"string"},"order_currency":{"format":"string","type":"string"},"order_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"order_amount_usd":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirmed":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming_usd":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirmed_usd":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"discount_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"status":{"format":"string","type":"string"},"created_at":{"format":"int64","type":"integer"},"updated_at":{"format":"int64","type":"integer"},"expires_at":{"format":"int64","type":"integer"},"merchant_info":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.MerchantInfo"},"exception_tag":{"format":"[]string","items":{"format":"string","type":"string"},"type":"array"},"success_url":{"format":"string","type":"string"},"failure_url":{"format":"string","type":"string"},"available_pay_method":{"format":"[]int","items":{"format":"int","type":"integer"},"type":"array"},"last_paid_payment":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentItem"},"mode":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订单模式: 0=普通订单, 1=订阅订单"},"children":[]}]}]}],"format":"int","type":"integer"},"subscription":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.OrderSubscriptionInfo"},"email":{"description":"Payer email","format":"string","type":"string"},"kyc_required":{"description":"Whether login and approved Infini KYC are required before a buyer can create a payment for this order","example":false,"type":"boolean"}},"type":"object"}},"components/schemas/github.com.shopspring.decimal.Decimal":{"id":"components/schemas/github.com.shopspring.decimal.Decimal","kind":"json-schema","title":"github.com.shopspring.decimal.Decimal","data":{"properties":{},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.MerchantInfo":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.MerchantInfo","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.MerchantInfo","data":{"properties":{"uid":{"format":"string","type":"string"},"display_name":{"format":"string","type":"string"},"logo":{"format":"string","type":"string"},"default_order_ttl":{"format":"int64","type":"integer"},"name_type":{"format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentItem":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentItem","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentItem","data":{"properties":{"payment_id":{"format":"string","type":"string"},"merchant_id":{"format":"string","type":"string"},"payment_method":{"format":"int","type":"integer"},"payment_address":{"format":"string","type":"string"},"network":{"format":"string","type":"string"},"due_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"pay_currency":{"format":"string","type":"string"},"amount_confirmed":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"quoted_token_price_usdc":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"status":{"format":"string","type":"string"},"expires_at":{"format":"int64","type":"integer"},"metadata":{"format":"string","type":"string"},"created_at":{"format":"int64","type":"integer"},"updated_at":{"format":"int64","type":"integer"},"transactions":{"description":"Related transactions","format":"[]*v1.PaymentTransaction","items":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentTransaction"},"type":"array"},"amount_status":{"format":"string","type":"string"},"exception_tag":{"format":"[]string","items":{"format":"string","type":"string"},"type":"array"},"crypto_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"channel_fee":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"order_currency":{"description":"Order currency","format":"string","type":"string"},"due_amount_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirmed_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentTransaction":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentTransaction","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentTransaction","data":{"properties":{"amount":{"description":"Transaction amount","format":"string","type":"string"},"hash":{"description":"Transaction hash","format":"string","type":"string"},"status":{"description":"Transaction status","format":"string","type":"string"},"transaction_time":{"description":"Transaction time (Unix timestamp in seconds)","format":"int64","type":"integer"},"from_address":{"description":"From address","format":"string","type":"string"},"transaction_id":{"description":"Transaction ID","format":"string","type":"string"},"created_at":{"description":"Created time (Unix timestamp in seconds)","format":"int64","type":"integer"},"estimate_confirm_time":{"format":"int64","type":"integer"},"exception_tag":{"format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.OrderSubscriptionInfo":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.OrderSubscriptionInfo","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.OrderSubscriptionInfo","data":{"properties":{"subscription_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"系统订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"plan_name":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"计划名称"},"children":[]}]}]}],"format":"string","type":"string"},"status":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅状态"},"children":[]}]}]}],"format":"string","type":"string"},"currency":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"币种"},"children":[]}]}]}],"format":"string","type":"string"},"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"每期金额"},"children":[]}]}]}],"format":"string","type":"string"},"interval_unit":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期单位"},"children":[]}]}]}],"format":"string","type":"string"},"interval_count":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期数量"},"children":[]}]}]}],"format":"int","type":"integer"},"payer_email":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"付款人邮箱"},"children":[]}]}]}],"format":"string","type":"string"},"current_period_start":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"当前周期开始"},"children":[]}]}]}],"format":"int64","type":"integer"},"current_period_end":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"当前周期结束"},"children":[]}]}]}],"format":"int64","type":"integer"},"canceled_url":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消跳转URL"},"children":[]}]}]}],"format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderReq","data":{"properties":{"client_reference":{"description":"Client Reference","format":"string","type":"string"},"request_id":{"description":"request id (unique)","format":"string","type":"string"},"order_desc":{"description":"Order description","format":"string","type":"string"},"currency":{"default":"USD","description":"Order currency (USD, EUR, GBP, CAD, SGD, AUD)","format":"string","type":"string"},"amount":{"description":"Order amount. The minimum is greater than 0.1 for crypto acquiring; fiat payment methods require at least 16.","format":"string","type":"string"},"merchant_alias":{"description":"customized merchant alias (optional)","format":"string","type":"string"},"expires_in":{"description":"Time to live in seconds (e.g., 3600 for 1 hour, 0 for default order expires time)","format":"int64","type":"integer"},"success_url":{"description":"Success redirect Url","format":"string","type":"string"},"failure_url":{"description":"Failure redirect Url","format":"string","type":"string"},"pay_methods":{"description":"Enabled payment modes for this order (optional, inherits from merchant config if not specified)","format":"[]int","items":{"format":"int","type":"integer"},"type":"array"},"email":{"description":"Payer email (optional)","format":"string","type":"string"}},"required":["request_id","amount"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.CreateOrderRes","data":{"properties":{"client_reference":{"format":"string","type":"string"},"request_id":{"format":"string","type":"string"},"order_id":{"description":"Order id","format":"string","type":"string"},"checkout_url":{"description":"Checkout url","format":"string","type":"string"},"token":{"description":"Token","format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenReq","data":{"properties":{"order_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"order_id"},"children":[]}]}]}],"format":"string","type":"string"}},"required":["order_id"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.order.v1.ReissueOrderTokenRes","data":{"properties":{"order_id":{"description":"Order id","format":"string","type":"string"},"checkout_url":{"description":"Checkout url","format":"string","type":"string"},"token":{"description":"Token","format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QueryPaymentRes","data":{"properties":{"payment_id":{"format":"string","type":"string"},"merchant_id":{"format":"string","type":"string"},"payment_method":{"format":"int","type":"integer"},"payment_address":{"format":"string","type":"string"},"network":{"format":"string","type":"string"},"due_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"pay_currency":{"format":"string","type":"string"},"amount_confirmed":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"quoted_token_price_usdc":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"status":{"format":"string","type":"string"},"expires_at":{"format":"int64","type":"integer"},"metadata":{"format":"string","type":"string"},"created_at":{"format":"int64","type":"integer"},"updated_at":{"format":"int64","type":"integer"},"transactions":{"description":"Related transactions","format":"[]*v1.PaymentTransaction","items":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentTransaction"},"type":"array"},"amount_status":{"format":"string","type":"string"},"exception_tag":{"format":"[]string","items":{"format":"string","type":"string"},"type":"array"},"crypto_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"channel_fee":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"order_currency":{"description":"Order currency","format":"string","type":"string"},"due_amount_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirmed_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"amount_confirming_fiat":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"},"order_amount":{"$ref":"#/components/schemas/github.com.shopspring.decimal.Decimal"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentReq","data":{"properties":{"order_id":{"description":"Order ID","format":"string","type":"string"},"payment_method":{"default":1,"description":"Payment method","example":1,"format":"int","type":"integer"},"chain":{"description":"Chain","example":"ETHEREUM","format":"string","type":"string"},"token_id":{"description":"Token identifier","example":"USDT","format":"string","type":"string"},"force_create":{"default":false,"description":"Always create a new payment instead of reusing an existing reusable payment","example":false,"type":"boolean"}},"required":["order_id","chain","token_id"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentReq","data":{"properties":{"order_id":{"description":"Order ID","example":"ord-123","format":"string","type":"string"},"payment_method":{"default":1,"description":"Payment method","example":1,"format":"int","type":"integer"},"chain":{"description":"Chain","example":"ETHEREUM","format":"string","type":"string"},"token_id":{"description":"Token identifier","example":"USDT","format":"string","type":"string"}},"required":["order_id","chain","token_id"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.CreatePaymentRes","data":{"properties":{"payment_id":{"description":"Payment ID","format":"string","type":"string"},"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"USD-denominated amount the payer still owes (== due_amount)"},"children":[]}]}]}],"format":"string","type":"string"},"due_amount_fiat":{"description":"Payment snapshot amount in order currency (immutable once payment is created)","format":"string","type":"string"},"amount_confirmed":{"description":"USD-denominated amount already confirmed","format":"string","type":"string"},"amount_confirming":{"description":"USD-denominated amount currently confirming","format":"string","type":"string"},"address":{"description":"Payment address","format":"string","type":"string"},"expires_at":{"description":"Expires time (Unix timestamp)","format":"int64","type":"integer"},"quoted_token_amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Amount shown to payer, in pay_currency units"},"children":[]}]}]}],"format":"string","type":"string"},"quoted_token_currency":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Currency of quoted_token_amount (matches pay_currency)"},"children":[]}]}]}],"format":"string","type":"string"},"quoted_token_price_usdc":{"description":"USDC-per-token snapshot at create time; 0 for stablecoins","format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.QuotePaymentRes","data":{"properties":{"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"USD-denominated amount the payer still owes (== due_amount)"},"children":[]}]}]}],"example":"100.00","format":"string","type":"string"},"due_amount_fiat":{"description":"Current payable amount in order currency","example":"100.00","format":"string","type":"string"},"amount_confirmed":{"description":"USD-denominated amount already confirmed","example":"0","format":"string","type":"string"},"amount_confirming":{"description":"USD-denominated amount currently confirming","example":"0","format":"string","type":"string"},"quoted_token_amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Amount shown to payer, in pay_currency units"},"children":[]}]}]}],"example":"100.00","format":"string","type":"string"},"quoted_token_currency":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Currency of quoted_token_amount (matches pay_currency)"},"children":[]}]}]}],"example":"USDT","format":"string","type":"string"},"quoted_token_price_usdc":{"description":"USDC-per-token snapshot at quote time; 0 for stablecoins","example":"0","format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.ListPaymentRes","data":{"properties":{"list":{"description":"List","format":"[]*v1.PaymentItem","items":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.payment.v1.PaymentItem"},"type":"array"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.QuerySubscriptionRes","data":{"properties":{"subscription_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"系统订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"plan_name":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"计划名称"},"children":[]}]}]}],"format":"string","type":"string"},"trigger_method":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"触发方式"},"children":[]}]}]}],"format":"string","type":"string"},"status":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅状态"},"children":[]}]}]}],"format":"string","type":"string"},"cancel_reason":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消原因"},"children":[]}]}]}],"format":"string","type":"string"},"canceled_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"currency":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"币种"},"children":[]}]}]}],"format":"string","type":"string"},"first_amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"首期金额"},"children":[]}]}]}],"format":"string","type":"string"},"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"后续每期金额"},"children":[]}]}]}],"format":"string","type":"string"},"interval_unit":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期单位"},"children":[]}]}]}],"format":"string","type":"string"},"interval_count":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期数量"},"children":[]}]}]}],"format":"int","type":"integer"},"current_period_start":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"当前周期开始 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"current_period_end":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"当前周期结束 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"subscription_end_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅终止时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"next_invoice_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"下次发送 Invoice 时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"payer_email":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"付款人邮箱"},"children":[]}]}]}],"format":"string","type":"string"},"created_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"创建时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"updated_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"更新时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionReq","data":{"properties":{"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"首次支付金额"},"children":[]}]}]}],"format":"string","type":"string"},"currency":{"default":"USD","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"币种（USD, EUR, GBP, CAD, SGD, AUD）"},"children":[]}]}]}],"format":"string","type":"string"},"request_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"请求唯一ID"},"children":[]}]}]}],"format":"string","type":"string"},"client_reference":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"客户端引用"},"children":[]}]}]}],"format":"string","type":"string"},"expires_in":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订单过期相对时间(Unix秒);不传则使用后台默认值"},"children":[]}]}]}],"format":"int64","type":"integer"},"merchant_alias":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户别名"},"children":[]}]}]}],"format":"string","type":"string"},"success_url":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"首次支付成功跳转"},"children":[]}]}]}],"format":"string","type":"string"},"failure_url":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"首次支付失败跳转"},"children":[]}]}]}],"format":"string","type":"string"},"pay_methods":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"支付方式"},"children":[]}]}]}],"format":"[]int","items":{"format":"int","type":"integer"},"type":"array"},"subscription":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionParams"}},"required":["amount","request_id"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionParams":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionParams","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionParams","data":{"properties":{"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"plan_name":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅计划名称"},"children":[]}]}]}],"format":"string","type":"string"},"amount":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"后续每期金额"},"children":[]}]}]}],"format":"string","type":"string"},"interval_unit":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期单位"},"children":[]}]}]}],"enum":["DAY","MONTH"],"format":"string","type":"string"},"interval_count":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"周期数量"},"children":[]}]}]}],"format":"int","type":"integer"},"payer_email":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"付款人邮箱"},"children":[]}]}]}],"format":"string","type":"string"},"invoice_lead_days":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"提前发送天数"},"children":[]}]}]}],"format":"int","type":"integer"},"invoice_due_days":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"到期天数"},"children":[]}]}]}],"format":"int","type":"integer"},"subscription_end_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅终止时间 (unix timestamp, 0=永不终止)"},"children":[]}]}]}],"format":"int64","type":"integer"},"canceled_url":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消跳转URL"},"children":[]}]}]}],"format":"string","type":"string"}},"required":["merchant_sub_id","plan_name","amount","interval_unit","interval_count","payer_email","invoice_lead_days","invoice_due_days"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CreateSubscriptionRes","data":{"properties":{"order_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"首次订单ID"},"children":[]}]}]}],"format":"string","type":"string"},"request_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"请求ID"},"children":[]}]}]}],"format":"string","type":"string"},"client_reference":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"客户端引用"},"children":[]}]}]}],"format":"string","type":"string"},"checkout_url":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅确认页面 URL"},"children":[]}]}]}],"format":"string","type":"string"},"token":{"description":"JWT Token","format":"string","type":"string"},"subscription":{"$ref":"#/components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionResponse"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionResponse":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionResponse","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.SubscriptionResponse","data":{"properties":{"subscription_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"系统订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"status":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅状态 (pending)"},"children":[]}]}]}],"format":"string","type":"string"}},"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionReq","data":{"properties":{"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"cancel_reason":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cancel reason: user_request / by_merchant_api / by_operation"},"children":[]}]}]}],"enum":["user_request","by_merchant_api","by_operation"],"format":"string","type":"string"},"note":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"备注"},"children":[]}]}]}],"format":"string","type":"string"}},"required":["merchant_sub_id","cancel_reason"],"type":"object"}},"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes":{"id":"components/schemas/github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes","kind":"json-schema","title":"github.com.infini-money.infini-services-go.app.infini-payment-service.api.subscription.v1.CancelSubscriptionRes","data":{"properties":{"subscription_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"系统订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"merchant_sub_id":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"status":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"订阅状态"},"children":[]}]}]}],"format":"string","type":"string"},"canceled_at":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消时间 (unix timestamp)"},"children":[]}]}]}],"format":"int64","type":"integer"},"cancel_reason":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"取消原因"},"children":[]}]}]}],"format":"string","type":"string"}},"type":"object"}},"schema_80":{"kind":"json-schema","data":{"type":"string"},"id":"schema_80"},"schema_81":{"kind":"json-schema","data":{"description":"Order id","format":"string","type":"string"},"id":"schema_81"},"schema_82":{"kind":"json-schema","data":{"description":"Payment ID","format":"string","type":"string"},"id":"schema_82"},"schema_83":{"kind":"json-schema","data":{"description":"Order ID","format":"string","type":"string"},"id":"schema_83"},"schema_84":{"kind":"json-schema","data":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"商户订阅ID"},"children":[]}]}]}],"format":"string","type":"string"},"id":"schema_84"}},"exampleStore":{},"securitySchemeStore":{"InfiniHmac":{"id":"InfiniHmac","type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sandbox API "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (keyId) and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Secret"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the Infini dashboard."},"children":[]}]}]}]}},"servers":[{"url":"/_mock/zh/apis/acquiring","isMockServer":true,"description":"Mock server"},{"url":"https://openapi.infini.money/v1/acquiring","description":"Production"},{"url":"https://openapi-sandbox.infini.money/v1/acquiring","description":"Sandbox"}]},"options":{"hideReplay":false,"corsProxyUrl":"https://infini-hmac-cors-proxy.infini-labs.workers.dev/_api/cors/","hideSidebar":true,"mockServer":{"url":"/_mock/zh/apis/acquiring","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/@l10n/zh/apis/acquiring.json?download"},{"url":"/_bundle/@l10n/zh/apis/acquiring.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Infini Acquiring API","description":"Hosted checkout APIs for orders, payments, and subscriptions. All endpoints use the `/v1/acquiring` prefix.\n\nRequests require [HMAC-SHA256 authentication](/docs/en/4-authorization). To use **Try it**, save Sandbox credentials on [API Credentials](/credentials), or enter Key and Secret under **Security → HMAC**."}},"baseSlug":"/zh/apis/acquiring","routesMapping":{}}