GET /V1/payments-config/apple-pay/{location}

Get Apple Pay Config.

Path parameters

  • location string Required

    sdk location.

Responses

  • 200 Success.

    Hide response attributes Show response attributes object
    • button_styles object Required
      Hide button_styles attributes Show button_styles attributes object
      • layout string Required

        Layout

      • color string Required

        Color

      • shape string Required

        Shape

      • label string Required

        Label

      • tagline boolean Required

        ShowTagline

      • height integer Required

        Height

      • use_default_height boolean Required

        Height

    • payment_source string Required

      PaymentSource

    • code string Required

      Code

    • sdk_params array[object] Required

      SDK params

      Hide sdk_params attributes Show sdk_params attributes object
      • name string Required

        Code

      • value string Required

        Config

    • is_visible boolean Required

      Visible

    • sort_order string Required

      Sort Order

    • payment_intent string Required

      Payment intent

    • title string Required

      Title

    Hide response attributes Show response attributes object
    • button_styles object Required
      Hide button_styles attributes Show button_styles attributes object
      • layout string Required

        Layout

      • color string Required

        Color

      • shape string Required

        Shape

      • label string Required

        Label

      • tagline boolean Required

        ShowTagline

      • height integer Required

        Height

      • use_default_height boolean Required

        Height

    • payment_source string Required

      PaymentSource

    • code string Required

      Code

    • sdk_params array[object] Required

      SDK params

      Hide sdk_params attributes Show sdk_params attributes object
      • name string Required

        Code

      • value string Required

        Config

    • is_visible boolean Required

      Visible

    • sort_order string Required

      Sort Order

    • payment_intent string Required

      Payment intent

    • title string Required

      Title

  • Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

GET /V1/payments-config/apple-pay/{location}
curl \
 --request GET 'https://magento2.winkelstraat.mac/rest/all/V1/payments-config/apple-pay/{location}'
Response examples (200)
{
  "button_styles": {
    "layout": "string",
    "color": "string",
    "shape": "string",
    "label": "string",
    "tagline": true,
    "height": 42,
    "use_default_height": true
  },
  "payment_source": "string",
  "code": "string",
  "sdk_params": [
    {
      "name": "string",
      "value": "string"
    }
  ],
  "is_visible": true,
  "sort_order": "string",
  "payment_intent": "string",
  "title": "string"
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <button-styles>
    <layout>string</layout>
    <color>string</color>
    <shape>string</shape>
    <label>string</label>
    <tagline type="boolean">true</tagline>
    <height type="integer">42</height>
    <use-default-height type="boolean">true</use-default-height>
  </button-styles>
  <payment-source>string</payment-source>
  <code>string</code>
  <sdk-params type="array">
    <sdk-param>
      <name>string</name>
      <value>string</value>
    </sdk-param>
  </sdk-params>
  <is-visible type="boolean">true</is-visible>
  <sort-order>string</sort-order>
  <payment-intent>string</payment-intent>
  <title>string</title>
</root>
Response examples (500)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (500)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <message>string</message>
  <errors type="array">
    <error>
      <message>string</message>
      <parameters type="array">
        <parameter>
          <resources>string</resources>
          <fieldName>string</fieldName>
          <fieldValue>string</fieldValue>
        </parameter>
      </parameters>
    </error>
  </errors>
  <code type="integer">42</code>
  <parameters type="array">
    <parameter>
      <resources>string</resources>
      <fieldName>string</fieldName>
      <fieldValue>string</fieldValue>
    </parameter>
  </parameters>
  <trace>string</trace>
</root>
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <message>string</message>
  <errors type="array">
    <error>
      <message>string</message>
      <parameters type="array">
        <parameter>
          <resources>string</resources>
          <fieldName>string</fieldName>
          <fieldValue>string</fieldValue>
        </parameter>
      </parameters>
    </error>
  </errors>
  <code type="integer">42</code>
  <parameters type="array">
    <parameter>
      <resources>string</resources>
      <fieldName>string</fieldName>
      <fieldValue>string</fieldValue>
    </parameter>
  </parameters>
  <trace>string</trace>
</root>