Skip to main content
GET
/
v2
/
stores
/
{store_id}
/
payment_methods
/
{payment_method_id}
/
application_data_specification
Retrieve the application data specification for a payment method
curl --request GET \
  --url https://mock-merchant-api-portal-dev.d.eks.aws.cld.resurs.com/v2/stores/{store_id}/payment_methods/{payment_method_id}/application_data_specification \
  --header 'Authorization: Bearer <token>'
{
  "elements": [
    {
      "type": "TEXT",
      "label": "Social security number",
      "fieldName": "applicant-government-id",
      "description": "Social security number for the customer, format YYYMMDD",
      "required": true,
      "pattern": "^((3[0-1])|([1-2][0-9])|(0[1-9]))((1[0-2])|(0[1-9]))(\\d{2})?([\\d]{4})$",
      "patternValidationErrorMessage": "Not a valid name of the applicant",
      "defaultValue": "SINGLE",
      "options": [
        {
          "label": "Student / Studying",
          "value": "STUDENT",
          "checked": true,
          "description": "Student or Studying at any type of level"
        }
      ],
      "maxLength": 100,
      "min": 1,
      "max": 100,
      "requiredIfValue": {
        "fieldName": "applicant-government-id",
        "pattern": ".*"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

store_id
string
required

The UUID of the store Unique identifier of the store

Example:

"123e4567-e89b-12d3-a456-426655440000"

payment_method_id
string
required

The ID of the payment method

Example:

"111e4567-e89b-12d3-a456-426655441111"

Query Parameters

amount
number<decimal>
required

The amount to apply for

Example:

100

Response

OK

elements
object[]