Create a stripe gateway
POST https://{{subdomain}}.commercelayer.io/api/stripe_gateways
Request Body
{"data"=>{"type"=>"stripe_gateways", "attributes"=>{"name"=>"{{stripe_gateway_name}}", "login"=>"{{stripe_gateway_login}}"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: Created
{"data":{"id":"xYZkjABcde","type":"stripe_gateways","links":{"self":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde"},"attributes":{"name":"US payment gateway","created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"},"auto_payments":true,"webhook_endpoint_id":"xxxx-yyyy-zzzz","webhook_endpoint_secret":"xxxx-yyyy-zzzz","webhook_endpoint_url":"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx"},"relationships":{"payment_methods":{"links":{"self":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/relationships/payment_methods","related":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/payment_methods"}},"versions":{"links":{"self":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/relationships/versions","related":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/versions"}},"stripe_payments":{"links":{"self":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/relationships/stripe_payments","related":"https://yourdomain.commercelayer.io/api/stripe_gateways/xYZkjABcde/stripe_payments"}}},"meta":{"mode":"test"}}}