GET
/V1/payments-config/{location}
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/payments-config/{location}'
Response examples (200)
{
"apple_pay": {
"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"
},
"google_pay": {
"button_styles": {
"color": "string",
"height": 42,
"type": "string"
},
"payment_source": "string",
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
},
"hosted_fields": {
"payment_source": "string",
"three_d_s": "string",
"is_vault_enabled": true,
"cc_vault_code": "string",
"requires_card_details": true,
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
},
"smart_buttons": {
"display_message": true,
"display_venmo": true,
"message_styles": {
"layout": "string",
"logo": {
"type": "string"
}
},
"button_styles": {
"layout": "string",
"color": "string",
"shape": "string",
"label": "string",
"tagline": true,
"height": 42,
"use_default_height": true
},
"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>
<apple-pay>
<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>
</apple-pay>
<google-pay>
<button-styles>
<color>string</color>
<height type="integer">42</height>
<type>string</type>
</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>
</google-pay>
<hosted-fields>
<payment-source>string</payment-source>
<three-d-s>string</three-d-s>
<is-vault-enabled type="boolean">true</is-vault-enabled>
<cc-vault-code>string</cc-vault-code>
<requires-card-details type="boolean">true</requires-card-details>
<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>
</hosted-fields>
<smart-buttons>
<display-message type="boolean">true</display-message>
<display-venmo type="boolean">true</display-venmo>
<message-styles>
<layout>string</layout>
<logo>
<type>string</type>
</logo>
</message-styles>
<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>
<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>
</smart-buttons>
</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>