stripe_gateways

Create a stripe gateway

Changed on

Create a stripe gateway

post/stripe_gateways

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/stripe_gateways
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "name": "US payment gateway",
      "force_payments": true,
      "idempotency_window_mins": 60,
      "_disable": true,
      "_enable": true,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      },
      "_check": true,
      "login": "sk_live_xxxx-yyyy-zzzz",
      "publishable_key": "pk_live_xxxx-yyyy-zzzz",
      "connected_account": "acct_xxxx-yyyy-zzzz",
      "auto_payments": true
    }
  }
}

Response

The created stripe gateway object

Changes

    • info

      added the new optional request property //

    • info

      added the optional property // to the response with the status

    • breaking

      request property / was restricted to a list of enum values

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the request property default value stripe_gateways was removed

    • info

      added the new stripe_gateways enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status