Returns a payment intent.
Successful operation. Returns the payment intent.
Bad request / Missing required fields.
Internal server error.
curl -i -X GET \ 'https://ws-dev-api.eng.toasttab.com/v1/payment-intents/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Toast-Restaurant-External-ID: string'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "externalReferenceId": "b31a2b46-53f5-4ad9-a2e3-1dc38ff564d5",
- "sessionSecret": "string",
- "amount": 0,
- "currency": "USD",
- "captureMethod": "MANUAL",
- "status": "REQUIRES_PAYMENT_METHOD",
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "creationDate": "2023-07-07T14:01:27Z",
- "setupFutureUsage": "ON_SESSION",
- "customerId": "string",
- "amountDetails": {
- "tip": 0,
- "surcharge": 0,
- "lineItemModifiers": {
- "property1": {
- "key": "string",
- "value": 0
}, - "property2": {
- "key": "string",
- "value": 0
}
}
}, - "email": "string",
- "paymentMethodConfigurationDetails": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "latestPayment": {
- "card": {
- "brand": "VISA",
- "lastFour": "string",
- "expiry": {
- "month": "string",
- "year": "string"
}
}
}, - "offSession": true,
- "standingInstructionType": "UNSCHEDULED"
}