Create a payment setting paypal
How to create a payment setting paypal via API
To create a new payment setting paypal, send a POST request to the /api/2026-05/payment_setting_paypals endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/2026-05/payment_setting_paypals
Arguments
type
string
Required
attributes.gateway_version
string
Optional, default to the last available version
attributes.idempotency_window_mins
integer
Optional, default is one hour (60 minutes)
attributes.auto_capture
boolean
Optional
attributes.auto_place
boolean
Optional
attributes.name
string
Optional
attributes._disable
boolean
Optional
attributes._enable
boolean
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
attributes._check
boolean
Optional
attributes.client_id
string
Required
attributes.client_secret
string
Required
Example
The following request creates a new payment setting paypal:
On success, the API responds with a 201 Created status code, returning the created resource object:
Last updated