Update a stripe payment
How to update an existing stripe payment via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X PATCH \
'https://yourdomain.commercelayer.io/api/stripe_payments/XAyRWNUzyN' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "stripe_payments",
"id": "xYZkjABcde",
"attributes": {
"options": {
"customer": "cus_xxx",
"payment_method": "pm_xxx"
}
},
"relationships": {
"order": {
"data": {
"type": "orders",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated