Get Smart Buttons Config

GET /V1/payments-config/smart-buttons/{location}

Get Smart Buttons Config.

Path parameters

  • location string Required

    sdk location.

Responses

  • 200

    200 Success.

    Hide response attributes Show response attributes object
    • display_message boolean Required

      CanDisplayMessage

    • display_venmo boolean Required

      Venmo

    • message_styles object Required
      Hide message_styles attributes Show message_styles attributes object
      • layout string Required

        CanDisplayMessage

    • 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

    • code string Required

      Code

    • sdk_params array[object] Required
      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

  • 500

    Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • 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 item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • 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 item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

GET /V1/payments-config/smart-buttons/{location}
curl \
 --request GET 'https://magento2.winkelstraat.mac/rest/all/V1/payments-config/smart-buttons/{location}'
Response examples (200)
{
  "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 (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 (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}