Embedded
Update an embedded payment request (amount and/or rewards) before payment initiation
Changed onUpdate an embedded payment request (amount and/or rewards) before payment initiation
patch/api/v1/embedded/payment-requests
Request
- Base URLhttps://core.quidkey.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- breaking
the
/response's property type changed fromstringto no type for status - warning
removed the optional property
/from the response with the status - info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added
subschema #1subschema #2to the/response propertyallOflist for the response status
- breaking
- info
endpoint added
- info