Create a payment method
Changed onCreate a payment method
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/payment_methods
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "Stripe Payment",
"payment_source_type": "stripe_payments",
"currency_code": "EUR",
"require_capture": true,
"auto_place": true,
"_disable": true,
"_enable": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"market": {
"data": {
"id": "XAyRWNUzyN"
}
},
"payment_gateway": {
"data": {
"id": "XAyRWNUzyN"
}
},
"store": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created payment method object
Changes
- breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
request property
//was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the 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
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 valuepayment_methodswas removed - info
added the new
adyen_paymentsenum value to the request property// - info
added the new
axerve_paymentsenum value to the request property// - info
added the new
braintree_paymentsenum value to the request property// - info
added the new
checkout_com_paymentsenum value to the request property// - info
added the new
external_paymentsenum value to the request property// - info
added the new
klarna_paymentsenum value to the request property// - info
added the new
payment_methodsenum value to the request property/ - info
added the new
paypal_paymentsenum value to the request property// - info
added the new
satispay_paymentsenum value to the request property// - info
added the new
stripe_paymentsenum value to the request property// - info
added the new
wire_transfersenum value to the request property// - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking