Skip to main content
PATCH
/
api
/
v1
/
embedded
/
payment-requests
Update an embedded payment request (amount and/or rewards) before payment initiation
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body

payment_token
string
required

Payment token identifying the request to update

Example:

"ptok_abcd1234"

amount
integer

Minor-unit amount (e.g. cents)

Required range: x >= 1
Example:

1530

rewards
object

Response

Success

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required