Updates details of the payment intent. You can update the following fields:amount
, email
,customerId
, and amountDetails
, including tip
. If you update the amount
, you must also update the amountDetails
object to include a tip
amount.
Successful operation. Payment intent updated.
Bad request / Missing required fields.
Payment intent cannot be updated.
Internal server error.
{- "amount": 1,
- "email": "string",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "amountDetails": {
- "tip": 0,
- "surcharge": 0,
- "lineItemModifiers": {
- "property1": {
- "key": "string",
- "value": 0
}, - "property2": {
- "key": "string",
- "value": 0
}
}
}, - "externalReferenceId": "b31a2b46-53f5-4ad9-a2e3-1dc38ff564d5"
}
{- "id": "f8450373-f2a6-4211-8064-55b57f46c57e",
- "externalReferenceId": "b31a2b46-53f5-4ad9-a2e3-1dc38ff564d5",
- "sessionSecret": "string",
- "amount": 1,
- "currency": "USD",
- "captureMethod": "MANUAL",
- "status": "REQUIRES_PAYMENT_METHOD",
- "paymentMethodId": "null",
- "creationDate": "2025-02-17T20:33:07.011185Z",
- "setupFutureUsage": null,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "amountDetails": {
- "tip": 0,
- "surcharge": null,
- "lineItemModifiers": null
}, - "email": "string",
- "paymentMethodConfigurationDetails": {
- "id": "22fa8381-1845-4222-9264-102b46a89a96"
}, - "standingInstructionType": "UNSCHEDULED",
- "offSession": false,
- "latestPayment": null
}