Create a klarna gateway
How to create a klarna gateway via API
To create a new klarna gateway, send a POST
request to the /api/klarna_gateways
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/klarna_gateways
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.name |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
attributes.country_code |
| Required |
attributes.api_key |
| Required |
attributes.api_secret |
| Required |
relationships.klarna_payments |
| Optional |
Example
The following request creates a new klarna gateway:
Last updated