Update a customer payment source
Changed onUpdate a customer payment source
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customer_payment_sources/{customerPaymentSourceId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"customer_token": "cus_xxxyyyzzz",
"payment_source_token": "pm_xxxyyyzzz",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"customer": {
"data": {
"id": "XAyRWNUzyN"
}
},
"payment_method": {
"data": {
"id": "XAyRWNUzyN"
}
},
"payment_source": {
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"public_key": "xxxx-yyyy-zzzz",
"payment_methods": {
"foo": "bar"
},
"payment_request_data": {
"foo": "bar"
},
"payment_request_details": {
"foo": "bar"
},
"payment_response": {
"foo": "bar"
},
"balance": 1000,
"expires_at": "2018-01-02T12:00:00.000Z",
"closed_at": "2018-01-02T12:00:00.000Z",
"payment_instrument": {
"issuer": "cl bank",
"card_type": "visa"
},
"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"
}
},
"relationships": {
"order": {
"data": {
"id": "XAyRWNUzyN"
}
},
"payment_gateway": {
"data": {
"id": "XAyRWNUzyN"
}
},
"event_stores": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}
}
}
}Response
The updated customer payment source 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 - breaking
request property
////////was restricted to a list of enum values - breaking
request property
////////was restricted to a list of enum values - breaking
request property
////////was restricted to a list of enum values - breaking
request property
/////////was restricted to a list of enum values - breaking
request property
////////was restricted to a list of enum values - breaking
request property
////////was restricted to a list of enum values - 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
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
///////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - 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
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
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
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
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
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
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
/////////became nullable - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the
request property default valueadyen_paymentswas removed - info
the
request property default valuebraintree_paymentswas removed - info
the
request property default valuecheckout_com_paymentswas removed - info
the
request property default valuecustomer_payment_sourceswas removed - info
the
request property default valueexternal_paymentswas removed - info
the
request property default valueklarna_paymentswas removed - info
the
request property default valuepaypal_paymentswas removed - info
the
request property default valuestripe_paymentswas removed - info
the
request property default valuewire_transferswas removed - info
added the new
adyen_paymentsenum value to the request property//////// - info
added the new
approvedenum 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
createdenum value to the request property///////// - info
added the new
customer_payment_sourcesenum 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
paypal_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 to the
//request propertyoneOflist - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking