Update an embedded payment request (amount and/or rewards) before payment initiation
Update an embedded payment request (amount and/or rewards) before payment initiation
Request body
Example request
{
"merchant_id": "550e8400-e29b-41d4-a716-446655440000",
"payment_token": "ptok_abcd1234",
"amount": 1530,
"rewards": {
"extra_rewards": 150,
"total_rewards": 300,
"description": "Updated loyalty bonus"
}
}Response
Success
Example response
{
"success": true,
"data": {
"payment_token": "ptok_abcd1234",
"amount": 1530,
"rewards": {
"extra_rewards": 150,
"total_rewards": 300,
"description": "Updated loyalty bonus"
},
"expires_in": 750
}
}Changes
Changed in 3 of the 8 revisions of this API.214
- ▲
the
error/coderesponse's property type/format changed fromstring/to/for status400response-property-type-changed
- ●
removed the optional property
error/errorsfrom the response with the400statusresponse-optional-property-removed
- ○
added the new optional request property
merchant_idnew-optional-request-property
- ○
added the optional property
error/metadatato the response with the400statusresponse-optional-property-added
- ○
added
subschema #1subschema #2to theerror/coderesponse propertyallOflist for the response status400response-property-all-of-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 367 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲