cURL
curl --request PATCH \ --url https://core-dev.quidkey.com/api/v1/embedded/payment-requests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "payment_token": "ptok_abcd1234", "amount": 1530, "rewards": { "extra_rewards": 150, "total_rewards": 300, "description": "Updated loyalty bonus" } } '
{ "success": true, "data": { "payment_token": "ptok_abcd1234", "amount": 1530, "rewards": { "extra_rewards": 150, "total_rewards": 300, "description": "Updated loyalty bonus" }, "expires_in": 750 } }
Update an embedded payment request (amount and/or rewards) before payment initiation
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request body
Payment token identifying the request to update
"ptok_abcd1234"
Minor-unit amount (e.g. cents)
x >= 1
1530
Show child attributes
Success
Indicates if the request was successful
true