captures
Update a capture
Changed onUpdate a capture
patch/captures/{captureId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/captures/{captureId}
- AuthHTTP bearer
Path parameters
captureIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"_forward": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"_refund": true,
"_refund_amount_cents": 500,
"_cancel": true
}
}
}Response
The updated capture object
Changes
- info
added the optional property
//to the response with the status
- info
- breaking
request property
/was restricted to a list of enum values - 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 default valuecaptureswas removed - info
added the new
capturesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking