braintree_payments
Update a braintree payment
Changed onUpdate a braintree payment
patch/braintree_payments/{braintreePaymentId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/braintree_payments/{braintreePaymentId}
- AuthHTTP bearer
Path parameters
braintreePaymentIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"payment_method_nonce": "xxxx.yyyy.zzzz",
"payment_id": "xxxx.yyyy.zzzz",
"local": true,
"options": {
"customer_id": "1234567890"
},
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"order": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated braintree payment object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the 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 default valuebraintree_paymentswas removed - info
added the new
braintree_paymentsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking