Create a manual gateway

How to create a manual gateway via API

To create a new manual gateway, send a POST request to the /api/manual_gateways endpoint, passing the resource arguments in the request body.

Request

POST https://yourdomain.commercelayer.io/api/manual_gateways

Arguments

Body ParameterTypeRequired

type

string

Required

attributes.name

string

Required

attributes.reference

string

Optional

attributes.reference_origin

string

Optional

attributes.metadata

object

Optional

Example

The following request creates a new manual gateway:

curl -g -X POST \
  'https://yourdomain.commercelayer.io/api/manual_gateways' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token' \
  -H 'Content-Type: application/vnd.api+json' \
  -d '{
  "data": {
    "type": "manual_gateways",
    "attributes": {
      "name": "US payment gateway"
    }
  }
}'

Last updated