v1

latestOpenAPI 3.1.02026-07-132363652.9 MB
Embedded

Update an embedded payment request (amount and/or rewards) before payment initiation

Update an embedded payment request (amount and/or rewards) before payment initiation

patch/api/v1/embedded/payment-requests

Request body

merchant_idstring uuid

Merchant ID. Defaults to the logged-in merchant if not provided. Required for admin tokens.

payment_tokenstring required

Payment token identifying the request to update

amountinteger

Minor-unit amount (e.g. cents)

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

successboolean required

Indicates if the request was successful

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
  }
}