Skip to Content
Session withdrawals

Generate session withdrawal form

Use this method to generate a payment form for a session withdrawal method.

POST
/api/v2/my/session-withdrawals/{methodId}/form

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

methodId*integer

The identifier of a session withdrawal method.

Header Parameters

accept-language?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/my/session-withdrawals/1/form" \  -H "accept-language: ja" \  -H "Content-Type: application/json" \  -d '{    "accountId": 0,    "currencyCode": 0,    "deviceTimezone": "string",    "locale": "string"  }'
{  "form": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "encryptionData": {      "publicKey": "string",      "algorithm": null    },    "version": 0,    "groups": [      {        "name": "string",        "label": "string",        "nameDisplayRules": [          {            "type": "allOf",            "fieldName": "string",            "value": "string",            "rules": [              {}            ]          }        ],        "fields": [          {            "name": "string",            "label": "string",            "type": "bool",            "format": {              "type": "",              "value": "string"            },            "params": [              "string"            ],            "initialValues": [              "string"            ],            "readOnly": true,            "secretWasFilled": true,            "selectOptions": [              {                "name": "string",                "label": "string",                "value": "string",                "displayRules": [                  {                    "type": "allOf",                    "fieldName": "string",                    "value": "string",                    "rules": [                      {}                    ]                  }                ]              }            ],            "validationRules": [              {                "type": "allOf",                "fieldName": "string",                "value": "string",                "rules": [                  {}                ]              }            ],            "mandatoryRules": [              {                "type": "allOf",                "fieldName": "string",                "value": "string",                "rules": [                  {}                ]              }            ],            "displayRules": [              {                "type": "allOf",                "fieldName": "string",                "value": "string",                "rules": [                  {}                ]              }            ]          }        ]      }    ]  },  "driver": "string",  "amountRestriction": {    "min": "string",    "max": "string",    "scale": 0  }}