{ "result": true, "message": "Ok", "error_code": 0, "data": { "add_ons_config": { "email": { "comment": { "en": "Enter your e-mail", "ru": "Введите Ваш e-mail" }, "example": "someone@example.com", "label": { "en": "E-mail", "ru": "Электронная почта" }, "regex": "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$" } }, "payer_price": 146.1, "paymethod_id": 2, "paymethod_name": "method_example", "ps_currency": 840, "info": {}, "manual": { "en": "Please enter your email we will use it to send you a billing statement", "ru": "Пожалуйста укажите свой email, мы вышлем на него квитанцию об оплате" }, "warning": {} }}
Invoice issue (payment creation)
Invoice preliminary calculation
Retrieves additional information for invoice creation.
This method is not mandatory for all payment ways.
For more information, please contact the technical support service.
It can be used in the following cases:
You want to find out the total amount subject to all fees paid by the user,
before invoice.
Payment way requires dynamic set of fields depending on the payment parameters.
In this case, you need to use the add_ons_config, info, manual and warning to
generate customer form.
All further request examples do not include the "sign" parameter, nevertheless your real requests must include it in the request body where required.
Signature line is generated according to the following algorithm: all request parameters involved in signature generation are ordered in the alphabetical order of keys, the values are concatenated with a colon (":") and the account secret key is added at the end (without the: sign), a sha256 hash is generated from the resulting line and its hex representation is passed in the sign request parameter.
Example of signature generation for a method invoice/create:
Determining the list of parameters. It looks as follows for the method in consideration:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Documentation","colors":{"primary":"#0D9373"},"favicon":"https://mintcdn.com/avanor-tech/L7OBFBxXlL3y_VD5/images/favicon.png?fit=max\u0026auto=format\u0026n=L7OBFBxXlL3y_VD5\u0026q=85\u0026s=8ffca6aefd774f65174011774689c0ed","interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"avanor-tech","hasAudioNarration":false,"actualSubdomain":"avanor-tech","customDomains":["docs.avanor.tech"],"gitSource":{"type":"github","owner":"avanor-tech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aba6150bb3b2f06f45f50f2","collectionId":"1335115b-cee5-4c69-811d-3708ff158903","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aba6150bb3b2f06f45f50f2"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aba6150bb3b2f06f45f50f2","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Payments","count":10},{"language":"default","tag":"Withdraws","count":7},{"language":"default","tag":"Invoice issue (payment creation)","count":7},{"language":"default","tag":"Payout creation","count":6},{"language":"default","tag":"Directories and other methods","count":2},{"language":"default","tag":"Callbacks","count":2},{"language":"default","tag":"Interaction format","count":2},{"language":"default","tag":"Refunds","count":2},{"language":"default","tag":"List of possible errors","count":1},{"language":"default","tag":"Invoice statuses","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/invoice-create/invoice-preliminary-calculation","slug":"/api-reference/invoice-create/invoice-preliminary-calculation","pageMetadata":{"title":"Invoice preliminary calculation","description":"Retrieves additional information for invoice creation.\n\n\u003cdiv class=\"attention\">\nThis method \u003cstrong> is not mandatory \u003c/strong> for all payment ways.\nFor more information, please contact the technical support service.\n\u003c/div>\n\nIt can be used in the following cases:\n\n* You want to find out the total amount subject to all fees paid by the user,\n before invoice.\n* Payment way requires dynamic set of fields depending on the payment parameters.\n In this case, you need to use the `add_ons_config`, `info`, `manual` and `warning` to\n generate customer form.\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `amount`\n* `currency`\n* `payway`\n* `shop_id`\n* `shop_order_id`\n\u003c/div>\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/try","href":"/api-reference/invoice-create/invoice-preliminary-calculation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Retrieves additional information for invoice creation.\"\n }), \"\\n\", _jsx(\"div\", {\n class: \"attention\",\n children: _jsxs(_components.p, {\n children: [\"This method \", _jsx(\"strong\", {\n children: \" is not mandatory \"\n }), \" for all payment ways.\\nFor more information, please contact the technical support service.\"]\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"It can be used in the following cases:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"You want to find out the total amount subject to all fees paid by the user,\\nbefore invoice.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Payment way requires dynamic set of fields depending on the payment parameters.\\nIn this case, you need to use the \", _jsx(_components.code, {\n children: \"add_ons_config\"\n }), \", \", _jsx(_components.code, {\n children: \"info\"\n }), \", \", _jsx(_components.code, {\n children: \"manual\"\n }), \" and \", _jsx(_components.code, {\n children: \"warning\"\n }), \" to\\ngenerate customer form.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(\"div\", {\n class: \"success\",\n children: [_jsx(\"p\", {\n children: \"Fields involved in request signature generation:\"\n }), _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"amount\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"currency\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"payway\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"shop_id\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"shop_order_id\"\n })\n }), \"\\n\"]\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Invoice preliminary calculation","description":"Retrieves additional information for invoice creation.\n\n\u003cdiv class=\"attention\">\nThis method \u003cstrong> is not mandatory \u003c/strong> for all payment ways.\nFor more information, please contact the technical support service.\n\u003c/div>\n\nIt can be used in the following cases:\n\n* You want to find out the total amount subject to all fees paid by the user,\n before invoice.\n* Payment way requires dynamic set of fields depending on the payment parameters.\n In this case, you need to use the `add_ons_config`, `info`, `manual` and `warning` to\n generate customer form.\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `amount`\n* `currency`\n* `payway`\n* `shop_id`\n* `shop_order_id`\n\u003c/div>\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/try","href":"/api-reference/invoice-create/invoice-preliminary-calculation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Invoice preliminary calculation","operationId":"post-invoice-try","responses":{"200":"87374e92-43be-49df-aaa2-077ec8a5ee4b"},"requestBody":"ec9f6531-224a-4239-b4af-de31e9f44bea","security":["beddd690-c311-4067-b0c8-31ffcce4507e"],"tags":["invoice-create"],"description":"Retrieves additional information for invoice creation.\n\n\u003cdiv class=\"attention\">\nThis method \u003cstrong> is not mandatory \u003c/strong> for all payment ways.\nFor more information, please contact the technical support service.\n\u003c/div>\n\nIt can be used in the following cases:\n\n* You want to find out the total amount subject to all fees paid by the user,\n before invoice.\n* Payment way requires dynamic set of fields depending on the payment parameters.\n In this case, you need to use the `add_ons_config`, `info`, `manual` and `warning` to\n generate customer form.\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `amount`\n* `currency`\n* `payway`\n* `shop_id`\n* `shop_order_id`\n\u003c/div>\n","method":"post","type":"path","servers":["be4b38d3-8104-4d09-bdb9-2486472e433f","dc28d4e7-45f1-4d25-896f-c8c416ae9060"],"path":"/invoice/try","baseUrlOptions":["https://api.avanor.tech/gateway/v1","https://api.test.avanor.tech/gateway/v1"],"title":"Invoice preliminary calculation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Invoice issue parameters","required":["shop_id","amount","currency","payway","shop_order_id","sign"],"properties":{"shop_id":{"type":"integer","example":202203,"description":"Unique shop identifier in the Avanor system.","isRequired":true,"uniqueKey":"shop_id","typeLabel":"integer"},"shop_order_id":{"type":"string","example":"389d4f2c-46b9-4164-bcc4-fbd51e00d445","description":"Order ID in your system. *Must be unique for each new invoice.*","maxLength":255,"isRequired":true,"uniqueKey":"shop_order_id","typeLabel":"string"},"amount":{"type":"string","title":"Amount received or withdrawn.","description":"Amount received or withdrawn.\nExample: `\"105.45\"`\n","minimum":0,"example":"105.45","exclusiveMinimum":true,"isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"currency":{"type":"number","description":"Numeric currency identifier in accordance with [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\nExample: `840`\n","title":"Currency identifier","example":840,"isRequired":true,"uniqueKey":"currency","typeLabel":"number"},"payway":{"type":"string","title":"Payment way","description":"Payment way for payment.\nInvoice currency depends on the specified payment way.\n\nThere are two ways to get a list of all payment directions available to the shop:\n* Execute API request \"Receiving payment methods for input\" [shop_input_config/shop](/api-reference/invoice-create/getting-payment-methods-for-input).\n* Request register from the support service.\n","maxLength":150,"pattern":"^[A-Za-z_,\\[\\]]+$","example":"payway_usd","isRequired":true,"uniqueKey":"payway","typeLabel":"string"},"description":{"type":"string","description":"Optional payment description.","example":"Description of example invoice","maxLength":255,"uniqueKey":"description","typeLabel":"string"}},"uniqueKey":"","typeLabel":"Invoice issue parameters · object"},"examples":{"Example":{"title":"Example","value":{"shop_id":202203,"shop_order_id":"389d4f2c-46b9-4164-bcc4-fbd51e00d445","amount":"105.45","currency":840,"payway":"payway_usd","description":"Description of example invoice"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"87374e92-43be-49df-aaa2-077ec8a5ee4b":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Successful response","description":"","required":["data","error_code","message","result"],"properties":{"result":{"type":"boolean","description":"Boolean value, in case of successful response it will be `true`, in case of error – `false`","example":true,"isRequired":true,"uniqueKey":"oneOf.0.result","typeLabel":"boolean"},"message":{"type":"string","description":"A textual description of the error, in case of success - simply `Ok`","example":"Ok","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"error_code":{"type":"number","description":"If this value is greater than `0`, then the request ended with an error. [Description of error codes](/errors-list)","example":0,"isRequired":true,"uniqueKey":"oneOf.0.error_code","typeLabel":"number"},"data":{"title":"Preliminary calculation of the invoice","type":"object","properties":{"add_ons_config":{"type":"object","description":"Additional parameters that must be sent in the invoice issue request.\nFor example:\n```json\n {\n \"email\": \n {\n \"comment\": {\n \"en\": \"Enter your e-mail\",\n \"ru\": \"Введите Ваш e-mail\"\n },\n \"example\": \"someone@example.com\",\n \"label\": {\"en\": \"E-mail\", \"ru\": \"Электронная почта\"},\n \"regex\": \"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$\"\n }\n }\n```\nIn this case, this is the `email` parameter. \nIt must be present in the account creation request.\n\n* `comment` – more detailed description of the purpose of the parameter;\n* `example` – example of the parameter value;\n* `label` – name of the mandatory parameter;\n* `regex` – regular expression that the mandatory parameter must match.","example":{"email":{"comment":{"en":"Enter your e-mail","ru":"Введите Ваш e-mail"},"example":"someone@example.com","label":{"en":"E-mail","ru":"Электронная почта"},"regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"}},"isRequired":true,"uniqueKey":"oneOf.0.data.add_ons_config","typeLabel":"object"},"payer_price":{"type":"number","description":"Amount due, in the currency of the payway.","example":146.1,"isRequired":true,"uniqueKey":"oneOf.0.data.payer_price","typeLabel":"number"},"paymethod_id":{"type":"integer","description":"Payment method identifier","example":2,"isRequired":true,"uniqueKey":"oneOf.0.data.paymethod_id","typeLabel":"integer"},"paymethod_name":{"type":"string","description":"Payment method name","example":"method_example","isRequired":true,"uniqueKey":"oneOf.0.data.paymethod_name","typeLabel":"string"},"ps_currency":{"type":"number","description":"Numeric currency identifier in accordance with [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\nExample: `840`\n","title":"Currency identifier","example":840,"isRequired":true,"uniqueKey":"oneOf.0.data.ps_currency","typeLabel":"number"},"info":{"type":"object","description":"Information for the user.","isRequired":true,"uniqueKey":"oneOf.0.data.info","typeLabel":"object"},"manual":{"type":"object","description":"User manual.","example":{"en":"Please enter your email we will use it to send you a billing statement","ru":"Пожалуйста укажите свой email, мы вышлем на него квитанцию об оплате"},"isRequired":true,"uniqueKey":"oneOf.0.data.manual","typeLabel":"object"},"warning":{"type":"object","description":"User warning.","isRequired":true,"uniqueKey":"oneOf.0.data.warning","typeLabel":"object"}},"required":["add_ons_config","payer_price","paymethod_id","paymethod_name","ps_currency","info","manual","warning"],"isRequired":true,"uniqueKey":"oneOf.0.data","typeLabel":"Preliminary calculation of the invoice · object"}},"uniqueKey":"oneOf.0","typeLabel":"Successful response · object"},{"type":"object","title":"Error response","description":"# Error response\n","required":["data","error_code","message","result"],"properties":{"result":{"type":"boolean","description":"Boolean value, in case of successful response it will be `true`, in case of error – `false`","example":false,"isRequired":true,"uniqueKey":"oneOf.1.result","typeLabel":"boolean"},"message":{"type":"string","description":"A textual description of the error, in case of success - simply `Ok`","example":"Shop (id = 202203) is not active","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error_code":{"type":"number","description":"If this value is greater than `0`, then the request ended with an error. [Description of error codes](/errors-list)","example":12,"isRequired":true,"uniqueKey":"oneOf.1.error_code","typeLabel":"number"},"data":{"oneOf":[{"type":"object","example":null,"isRequired":true,"uniqueKey":"oneOf.1.data.oneOf.0","typeLabel":"object"},{"type":"null","example":null,"isRequired":true,"uniqueKey":"oneOf.1.data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.data","typeLabel":"object | null"}},"uniqueKey":"oneOf.1","typeLabel":"Error response · object"}],"uniqueKey":"","typeLabel":"Successful response · object | Error response · object"},"examples":{"Example":{"title":"Example","value":{"result":true,"message":"Ok","error_code":0,"data":{"add_ons_config":{"email":{"comment":{"en":"Enter your e-mail","ru":"Введите Ваш e-mail"},"example":"someone@example.com","label":{"en":"E-mail","ru":"Электронная почта"},"regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"}},"payer_price":146.1,"paymethod_id":2,"paymethod_name":"method_example","ps_currency":840,"info":{},"manual":{"en":"Please enter your email we will use it to send you a billing statement","ru":"Пожалуйста укажите свой email, мы вышлем на него квитанцию об оплате"},"warning":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"beddd690-c311-4067-b0c8-31ffcce4507e":{"RequestSignature":{"type":"apiKey","in":"header","name":"sign","description":"Every API request must be signed so that we can identify your account.\n\nThe signature is transferred in the request body through the `sign` parameter, for example:\n\n```json\n{\n \"shop_id\": 202203,\n \"shop_order_id\": \"1994\",\n \"amount\": \"104.04\",\n \"currency\": 840,\n \"payway\": \"payway_usd\",\n \"description\": \"Invoice sign\",\n \"sign\": \"05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2\"\n}\n```\n\u003cdiv class=\"warning\">\nAll further request examples do not include the \u003ccode>\"sign\"\u003c/code> parameter, nevertheless your real requests \u003cstrong>must\u003c/strong> include it in the request body where required.\n\u003c/div>\n\nSignature line is generated according to the following algorithm: all request parameters involved in signature generation are ordered in the alphabetical order of keys, the values are concatenated with a colon (\":\") and the account secret key is added at the end (without the: `sign`), a sha256 hash is generated from the resulting line and its hex representation is passed in the sign request parameter.\n\n### Example of signature generation for a method [invoice/create](/api-reference/invoice-create/invoice-issue):\n\n1. Determining the list of parameters. It looks as follows for the method in consideration:\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `shop_id`\n* `shop_order_id`\n* `amount`\n* `currency`\n* `payway`\n\u003c/div>\n\n2. Let's sort keys in alphabetical sequence:\n\n`\"amount\", \"currency\", \"payway\", \"shop_id\", \"shop_order_id\"`\n\n3. The line for generating the SHA256 hash will be as follows:\n\n`\"104.04:840:payway_usd:202203:1994account-secret-key\"`\n\nWhere `account-secret-key` is the secret identification key for your account. You can request a key from the support service.\n\n4. Let's get a hash expression of the generated line using Python code:\n\n```python\n>>> string_to_sign = '104.04:840:payway_usd:202203:1994account-secret-key'\n>>> import hashlib\n>>> sign = hashlib.sha256(string_to_sign.encode()).hexdigest()\n>>> print(sign)\n'05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2'\n```\n\n\u003cdiv class=\"success\">\nYou can check whether you have generated the signature correctly using the service \u003ca href=\"https://www.xorbin.com/tools/sha256-hash-calculator\">https://www.xorbin.com/tools/sha256-hash-calculator\u003c/a>.\n\u003c/div>\n\n","scopes":[]}}},"servers":{"be4b38d3-8104-4d09-bdb9-2486472e433f":{"url":"https://api.avanor.tech/gateway/v1","description":"The production API server"},"dc28d4e7-45f1-4d25-896f-c8c416ae9060":{"url":"https://api.test.avanor.tech/gateway/v1","description":"The test API server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"sign","description":"Every API request must be signed so that we can identify your account.\n\nThe signature is transferred in the request body through the `sign` parameter, for example:\n\n```json\n{\n \"shop_id\": 202203,\n \"shop_order_id\": \"1994\",\n \"amount\": \"104.04\",\n \"currency\": 840,\n \"payway\": \"payway_usd\",\n \"description\": \"Invoice sign\",\n \"sign\": \"05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2\"\n}\n```\n\u003cdiv class=\"warning\">\nAll further request examples do not include the \u003ccode>\"sign\"\u003c/code> parameter, nevertheless your real requests \u003cstrong>must\u003c/strong> include it in the request body where required.\n\u003c/div>\n\nSignature line is generated according to the following algorithm: all request parameters involved in signature generation are ordered in the alphabetical order of keys, the values are concatenated with a colon (\":\") and the account secret key is added at the end (without the: `sign`), a sha256 hash is generated from the resulting line and its hex representation is passed in the sign request parameter.\n\n### Example of signature generation for a method [invoice/create](/api-reference/invoice-create/invoice-issue):\n\n1. Determining the list of parameters. It looks as follows for the method in consideration:\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `shop_id`\n* `shop_order_id`\n* `amount`\n* `currency`\n* `payway`\n\u003c/div>\n\n2. Let's sort keys in alphabetical sequence:\n\n`\"amount\", \"currency\", \"payway\", \"shop_id\", \"shop_order_id\"`\n\n3. The line for generating the SHA256 hash will be as follows:\n\n`\"104.04:840:payway_usd:202203:1994account-secret-key\"`\n\nWhere `account-secret-key` is the secret identification key for your account. You can request a key from the support service.\n\n4. Let's get a hash expression of the generated line using Python code:\n\n```python\n>>> string_to_sign = '104.04:840:payway_usd:202203:1994account-secret-key'\n>>> import hashlib\n>>> sign = hashlib.sha256(string_to_sign.encode()).hexdigest()\n>>> print(sign)\n'05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2'\n```\n\n\u003cdiv class=\"success\">\nYou can check whether you have generated the signature correctly using the service \u003ca href=\"https://www.xorbin.com/tools/sha256-hash-calculator\">https://www.xorbin.com/tools/sha256-hash-calculator\u003c/a>.\n\u003c/div>\n\n","scopes":[]},"schema":{"title":"sign","type":"string","description":"Every API request must be signed so that we can identify your account.\n\nThe signature is transferred in the request body through the `sign` parameter, for example:\n\n```json\n{\n \"shop_id\": 202203,\n \"shop_order_id\": \"1994\",\n \"amount\": \"104.04\",\n \"currency\": 840,\n \"payway\": \"payway_usd\",\n \"description\": \"Invoice sign\",\n \"sign\": \"05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2\"\n}\n```\n\u003cdiv class=\"warning\">\nAll further request examples do not include the \u003ccode>\"sign\"\u003c/code> parameter, nevertheless your real requests \u003cstrong>must\u003c/strong> include it in the request body where required.\n\u003c/div>\n\nSignature line is generated according to the following algorithm: all request parameters involved in signature generation are ordered in the alphabetical order of keys, the values are concatenated with a colon (\":\") and the account secret key is added at the end (without the: `sign`), a sha256 hash is generated from the resulting line and its hex representation is passed in the sign request parameter.\n\n### Example of signature generation for a method [invoice/create](/api-reference/invoice-create/invoice-issue):\n\n1. Determining the list of parameters. It looks as follows for the method in consideration:\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `shop_id`\n* `shop_order_id`\n* `amount`\n* `currency`\n* `payway`\n\u003c/div>\n\n2. Let's sort keys in alphabetical sequence:\n\n`\"amount\", \"currency\", \"payway\", \"shop_id\", \"shop_order_id\"`\n\n3. The line for generating the SHA256 hash will be as follows:\n\n`\"104.04:840:payway_usd:202203:1994account-secret-key\"`\n\nWhere `account-secret-key` is the secret identification key for your account. You can request a key from the support service.\n\n4. Let's get a hash expression of the generated line using Python code:\n\n```python\n>>> string_to_sign = '104.04:840:payway_usd:202203:1994account-secret-key'\n>>> import hashlib\n>>> sign = hashlib.sha256(string_to_sign.encode()).hexdigest()\n>>> print(sign)\n'05f6d3712417f62af6cbf66ca81c2f0b249f7dc1b4cbe3a50e3f8d67a1fb35a2'\n```\n\n\u003cdiv class=\"success\">\nYou can check whether you have generated the signature correctly using the service \u003ca href=\"https://www.xorbin.com/tools/sha256-hash-calculator\">https://www.xorbin.com/tools/sha256-hash-calculator\u003c/a>.\n\u003c/div>\n\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"RequestSignature","name":"sign"}],"title":"RequestSignature"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"avanor-tech","siteName":"Documentation","title":"Invoice preliminary calculation - Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T12:45:08.424Z","originalFileLocation":"api-reference/invoice-create/invoice-preliminary-calculation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieves additional information for invoice creation. This method is not mandatory for all payment ways. For more information, please contact the technical support service. It can be used in the following cases: You want to find out the total amount subject to all fees paid by the user, before invoice. Payment way requires dynamic set of fields depending on the payment parameters. In this case, you need to use the add_ons_config, info, manual and warning to generate customer form. Fields involved in request signature generation: amount currency payway shop_id * shop_order_id\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Invoice preliminary calculation - Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieves additional information for invoice creation. This method is not mandatory for all payment ways. For more information, please contact the technical support service. It can be used in the following cases: You want to find out the total amount subject to all fees paid by the user, before invoice. Payment way requires dynamic set of fields depending on the payment parameters. In this case, you need to use the add_ons_config, info, manual and warning to generate customer form. Fields involved in request signature generation: amount currency payway shop_id * shop_order_id\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://avanor-tech.mintlify.app/_mintlify/api/og/v2?division=Invoice+issue+%28payment+creation%29\u0026amp;title=Invoice+preliminary+calculation\u0026amp;description=Retrieves+additional+information+for+invoice+creation.%0A%0A%3Cdiv+class%3D%22attention%22%3E%0AThis+method+%3Cstrong%3E+is+not+mandatory+%3C%2Fstrong%3E+for+all+payment+ways.%0AFor+more+i\u0026amp;theme=57be3255082b8f94f24487af\u0026amp;signature=4db2b75bd5a545b16fabb55dddfdf8f4ae0ce0c933aa92479eb929fe83c31353\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Invoice preliminary calculation - Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieves additional information for invoice creation. This method is not mandatory for all payment ways. For more information, please contact the technical support service. It can be used in the following cases: You want to find out the total amount subject to all fees paid by the user, before invoice. Payment way requires dynamic set of fields depending on the payment parameters. In this case, you need to use the add_ons_config, info, manual and warning to generate customer form. Fields involved in request signature generation: amount currency payway shop_id * shop_order_id\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://avanor-tech.mintlify.app/_mintlify/api/og/v2?division=Invoice+issue+%28payment+creation%29\u0026amp;title=Invoice+preliminary+calculation\u0026amp;description=Retrieves+additional+information+for+invoice+creation.%0A%0A%3Cdiv+class%3D%22attention%22%3E%0AThis+method+%3Cstrong%3E+is+not+mandatory+%3C%2Fstrong%3E+for+all+payment+ways.%0AFor+more+i\u0026amp;theme=57be3255082b8f94f24487af\u0026amp;signature=4db2b75bd5a545b16fabb55dddfdf8f4ae0ce0c933aa92479eb929fe83c31353\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/avanor-tech/VhF2OLMug6-uCTm-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/invoice-create/invoice-preliminary-calculation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.avanor.tech/#organization\",\"name\":\"Documentation\",\"url\":\"https://docs.avanor.tech\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.avanor.tech#website\",\"name\":\"Documentation\",\"url\":\"https://docs.avanor.tech\",\"publisher\":{\"@id\":\"https://docs.avanor.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation#webpage\",\"url\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation\",\"name\":\"Invoice preliminary calculation\",\"description\":\"Retrieves additional information for invoice creation. This method is not mandatory for all payment ways. For more information, please contact the technical support service. It can be used in the following cases: You want to find out the total amount subject to all fees paid by the user, before invoice. Payment way requires dynamic set of fields depending on the payment parameters. In this case, you need to use the add_ons_config, info, manual and warning to generate customer form. Fields involved in request signature generation: amount currency payway shop_id * shop_order_id\",\"dateModified\":\"2026-09-28T12:45:08.424Z\",\"isPartOf\":{\"@id\":\"https://docs.avanor.tech#website\"},\"breadcrumb\":{\"@id\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Invoice issue (payment creation)\",\"item\":\"https://docs.avanor.tech/invoice-create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoice preliminary calculation\",\"item\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation#apireference\",\"headline\":\"Invoice preliminary calculation\",\"name\":\"Invoice preliminary calculation\",\"description\":\"Retrieves additional information for invoice creation. This method is not mandatory for all payment ways. For more information, please contact the technical support service. It can be used in the following cases: You want to find out the total amount subject to all fees paid by the user, before invoice. Payment way requires dynamic set of fields depending on the payment parameters. In this case, you need to use the add_ons_config, info, manual and warning to generate customer form. Fields involved in request signature generation: amount currency payway shop_id * shop_order_id\",\"url\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.avanor.tech/api-reference/invoice-create/invoice-preliminary-calculation#webpage\"},\"dateModified\":\"2026-09-28T12:45:08.424Z\",\"publisher\":{\"@id\":\"https://docs.avanor.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.avanor.tech#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Documentation","nav":{"global":null,"groups":[{"group":"Overview","pages":[{"title":"Avanor Payment Gateway API (1.0.0)","href":"/overview"}]},{"group":"Payments","pages":[{"group":"Invoice issue (payment creation)","root":{"title":"Invoice issue (payment creation)","description":null,"href":"/invoice-create"},"expanded":false,"pages":[{"title":"Invoice preliminary calculation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/try","href":"/api-reference/invoice-create/invoice-preliminary-calculation"},{"title":"Invoice issue","description":"Additional parameters can be transferred in the request, for example:\n\n* `description` – invoice description,\n* `phone` – phone number linked to the wallet;\n* `account` – card number;\n\nThe list of these parameters depends on the payway (`payway`). The required additional parameters for the payway can be found in the request \"Getting payment methods for input\" [shop_input_config/shop](/api-reference/invoice-create/getting-payment-methods-for-input) in the `add_ons_config` response field.\n\n### Redirecting to invoice payment forms\n\nIf the request is successful, API will return the parameters necessary to redirect the user to the payment system for payment. These parameters will be in the `data` field of the response. The `data.data` field contains the parameters to be transferred during redirection (in the form of `GET` or `POST` request parameters).\n\nThe redirection method depends on the `method` parameter. The generated request must be sent to the URL specified in the `url` field of the `data` field.\n\nFor example, if you receive a `POST` in the `method` parameter to redirect a client to pay an invoice, you need to generate an HTML form from the parameters received in the response body (these parameters will differ for different payment systems).\n\nAn example of forming an HTML form using the `jinja2` template language:\n\n```jinja2\n\u003cform method=\"POST\" action=\"{{ data['url'] }}\">\n {% for param, value in data['data'].items() %}\n \u003cinput name=\"{{ param }}\" value=\"{{ value }}\" />\n {% endfor %}\n\u003c/form>\n```\n\nFor the data specified in the example response below, the following HTML form will be obtained:\n\n```html\n\u003cform method=\"POST\" action=\"https://checkout.domain.com/form/\">\n \u003cinput name=\"transaction_id\" value=\"1047\" />\n \u003cinput name=\"payment_type\" value=\"card\" />\n \u003cinput name=\"fail_url\" value=\"https://example.com/payment/?status=fail\" />\n \u003cinput name=\"success_url\" value=\"https://example.com/payment/?status=success\" />\n \u003cinput type=\"submit\" />\n\u003c/form>\n```\n\nIn case of `\"method\": \"GET\"` it is required to perform HTTP redirect to the URL with the parameters (using [percent‐encoding](https://en.wikipedia.org/wiki/Percent-encoding)), received in the `data.data` response field.\n\nThe URL is generated according to the following algorithm:\n\n```python\nimport urllib.parse\nredirect_url = '{url}?{parameters}'.format(url=data['url'], parameters=urllib.parse.urlencode(data['data']))\n```\n\nAn example of the formed URL: `https://checkout.domain.com/form/?transaction_id=abcd\u0026payment_type=card\u0026fail_url=https%3A%2F%2Fgoogle.com%2Fpayment%2F%3Fstatus%3Dfail\u0026success_url=https%3A%2F%2Fgogle.com%2Fpayment%2F%3Fstatus%3Dsuccess`\n\n\u003cdiv class=\"attention\">\nPlease note that the parameters \u003ccode>failed_url\u003c/code>, \u003ccode>success_url\u003c/code>, \u003ccode>callback_url\u003c/code>, \u003ccode>callback_rejected_url\u003c/code> specified in the shop settings have priority over those specified in request. If you want to use unique url for each request, you need to inform the manager about it.\n\u003c/div>\n\n### Payer Browser Authentication for 3D Secure\n\nFor 3ds 2.0 payments with card data to be successful, the payer's browser information must be collected.\n\nYou can collect the data yourself or let our service perform this for you. If you collect the data on your end, please ensure that all the necessary values are included to the payment initiation request [/invoice/create](/api-reference/invoice-create/invoice-issue).\n\nAs an example, the provided JavaScript code could be employed to obtain the Payer Browser information. Please be aware that the `client_info` fields provided below do not include `browser_accept_header`.\n\n```js\nlet client_info = {\n \"browser_java_enabled\": window.navigator.javaEnabled(),\n \"browser_javascript_enabled\": true,\n \"browser_language\": window.navigator.language,\n \"browser_color_depth\": window.screen.colorDepth.toString(),\n \"browser_screen_height\": window.screen.height.toString(),\n \"browser_screen_width\": window.screen.width.toString(),\n \"browser_tz\": (new Date()).getTimezoneOffset().toString(),\n \"browser_user_agent\": window.navigator.userAgent,\n \"challenge_window_size\": \"05\"\n}\n```\n\nIf the payer's browser data is not provided in the [/invoice/create](/api-reference/invoice-create/invoice-issue) request, it will be necessary to redirect the payer to our service as an intermediate step using a `data` object, so that our service can collect the necessary browser data. See [Redirecting to invoice payment forms](/api-reference/invoice-create/invoice-issue#redirecting-to-invoice-payment-forms) for the details on redirect.\n\n\u003cdiv class=\"success\">\n\u003cp>Fields involved in request signature generation:\u003c/p>\n\n* `amount`\n* `currency`\n* `payway`\n* `shop_id`\n* `shop_order_id`\n\u003c/div>\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/create","href":"/api-reference/invoice-create/invoice-issue"},{"title":"Issued invoice status request","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/check","href":"/api-reference/invoice-create/issued-invoice-status-request"},{"title":"Funds hold (two-stage payments)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/hold","href":"/api-reference/invoice-create/funds-hold-two-stage-payments"},{"title":"Confirmation of funds withdrawal (charge)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/charge","href":"/api-reference/invoice-create/confirmation-of-funds-withdrawal-charge"},{"title":"Cancellation of funds holding","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/unhold","href":"/api-reference/invoice-create/cancellation-of-funds-holding"},{"title":"Getting payment methods for input","deprecated":null,"version":null,"openapi":"/openapi.yaml post /shop_input_config/shop","href":"/api-reference/invoice-create/getting-payment-methods-for-input"}]},{"group":"Refunds","root":{"title":"Refunds","href":"/invoice-refund"},"expanded":false,"pages":[{"title":"Invoice refund","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/create-refund","href":"/api-reference/invoice-refund/invoice-refund"},{"title":"Invoice refund status","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoice/get-refunds","href":"/api-reference/invoice-refund/invoice-refund-status"}]},{"group":"Recurrent invoice","hidden":true,"pages":[{"title":"Recurrent invoice","href":"/invoice-recurrent"}]},{"group":"Invoice statuses","expanded":false,"pages":[{"title":"Invoice statuses","href":"/invoice-statuses"}]}]},{"group":"Withdraws","pages":[{"group":"Payout creation","root":{"title":"Payout creation","href":"/withdraw-create"},"expanded":false,"pages":[{"title":"Payout preliminary calculation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /withdraw/try","href":"/api-reference/withdraw-create/payout-preliminary-calculation"},{"title":"Checking the account for the possibility of replenishment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /check_account","href":"/api-reference/withdraw-create/checking-the-account-for-the-possibility-of-replenishment"},{"title":"Payout creation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /withdraw/create","href":"/api-reference/withdraw-create/payout-creation"},{"title":"Payout status request by ID of the payout created in Avanor system","deprecated":null,"version":null,"openapi":"/openapi.yaml post /withdraw/status","href":"/api-reference/withdraw-create/payout-status-request-by-id-of-the-payout-created-in-avanor-system"},{"title":"Payout status request by the shop payout number","deprecated":null,"version":null,"openapi":"/openapi.yaml post /withdraw/shop_payment_status","href":"/api-reference/withdraw-create/payout-status-request-by-the-shop-payout-number"},{"title":"Getting possible payout methods","deprecated":null,"version":null,"openapi":"/openapi.yaml post /shop_output_config/shop","href":"/api-reference/withdraw-create/getting-possible-payout-methods"}]},{"group":"Payout statuses","expanded":false,"pages":[{"title":"Payout statuses","href":"/withdraw-statuses"}]}]},{"group":"Callbacks","pages":[{"group":"Interaction format","root":{"title":"Interaction format","href":"/callbacks"},"expanded":false,"pages":[{"title":"Invoice callback schema","href":"/invoice-callback-schema"},{"title":"Refund callback schema","href":"/refund-callback-schema"}]}]},{"group":"Directories and other methods","pages":[{"group":"Other shop methods","root":{"title":"Other shop methods","href":"/other-shop-methods"},"expanded":false,"pages":[{"title":"Receive the shop balance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /shop_balance","href":"/api-reference/other-shop-methods/receive-the-shop-balance"}]},{"group":"List of possible errors","expanded":false,"pages":[{"title":"List of possible errors","href":"/errors-list"}]}]}]},"title":"Invoice preliminary calculation - Documentation","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}