Send a GET request to the
/payments/ endpoint of the
orders API to obtain detailed information about a specific payment. The
endpoint returns a {guid}Payment object that contains information
about the payment. For information about the values of the
Payment object, see reference
documentation for the orders API.
The following example curl command sends a
GET request to the
/payments/ endpoint for a
specific payment.
{guid}
Get information of a specific payment
curl -X GET \ -H "Authorization: Bearer
eyJzI1NiJ9hbGciOiJSU.eyJhd9yaXR5Ij
oiQ1JVTkNIVElNRSIsInJzR3VpZCI6IjE4YzQ5YWJlLWFlODItNGFlYy04ND
M1LWJhYTRjMjVlYTY2MiIsInNjb3BlIjpbImxWQiOlsidG9hc3QiXSwibmFt
aW5nQXV0aGhYm9yIiwib3JkZXJzIiwidXNlcm1nbXQiXSwiZXhwIjoxNDg0M
zg5ODUwLCJqdGkiOiJlMDYzZjJkMy1jNGYyLTRiZjItODJmNi01MTg1NWMzZ
DAxM2YiLCJjbGllbnRfaWQiOiJjcnVuY2h0aW1lIn0.X1_0y9Hzj5F9gdOw2
o6VSYTyZwooAJiFMDmNakbZrtiUdYwLzuLwLpCMQzX5pKYtOqDUz_cetGJL3
txKL1L-K2j1Enoq8An8hEM6e8J0KdAiwrYFO3W3CmWedaoz95K9ghNZVCs28
Td2Sp3Ix3fObxbrvanocx9_OT8S9uM8hdSXmBI_ykTWvOVgK4hO24V3DJy4b
9bz1FtgOvrClhELxCe8dJy7jiwAR60xczlCF5rna98RMLN6zY4ffjmljKFZ6
QV0KkVppWjEiJn7oFHiIylCX1sSg7sddrGatj0xJzts3GJ8u8_lryUNHaEvJ
dWq4Yzwo007AMgxjH9d241Y-g" \ -H "Toast-Restaurant-External-ID:
76cb1b05-cb1e-4adf-863a-b2a94a5ecdcf" \
https://[toast-api-hostname]/orders/v2/payments/361d140a-aa0b-43ad-98d6-516c416555d9
The following example shows the JSON response data for a GET
request to the /payments/
endpoint. The payment method for this sample payment was a credit
card.
{guid}
Get payment return data
{
"guid": "361d140a-aa0b-43ad-98d6-516c416555d9",
"entityType": "OrderPayment",
"externalId": null,
"originalProcessingFee": null,
"amount": 57.73,
"tipAmount": 0,
"amountTendered": 0,
"cashDrawer": null,
"cardType": "VISA",
"lastModifiedDevice": {
"id": "7c664bbbb33913bd"
},
"refundStatus": "NONE",
"houseAccount": null,
"type": "CREDIT",
"voidInfo": null,
"otherPayment": null,
"mcaRepaymentAmount": null,
"createdDevice": {
"id": "7c664bbbb33913bd"
},
"paidDate": "2020-02-11T16:38:32.774+0000",
"cardEntryMode": "KEYED",
"paymentStatus": "CAPTURED",
"paidBusinessDate": 20200211,
"last4Digits": "1111",
"refund": null,
"orderGuid": "86675d88-b27e-4850-94ab-48662563eae8",
"checkGuid": "ed4b222f-5259-43fd-8db0-1243a11ed554"
}|
The |
|
|
The amount of the payment, including taxes and service charges but excluding tips. |
|
|
The amount tipped on this payment. |
|
|
If a house account was used to pay the check, this value
contains reference information (such as the GUID) of the house
account. The value is |
|
|
The payment method, such as |
|
|
If the payment was voided, this value contains a
|
|
|
Reference information (such as the GUID) of an other payment
option used to pay the check. The value is |
|
|
The date and time when the payment was made. |
|
|
For credit card payments, specifies how the credit card data
was obtained. The value is |
|
|
The status of the payment. In this example, the payment has been captured. |
|
|
If the payment has been refunded, this value contains a
|
The following sections provide information about voided and refunded payments.
The /payments/
endpoint can return data for voided payments. A void is a payment that
has been fully or partially voided. Voids can be issued on the entire
check or on one or more specific items.
{guid}
With one exception, any payment can be voided. The exception is a credit card payment that has been captured (the payment cannot be voided but can be refunded).
In the return data for a voided payment, the
Payment object includes a VoidInformation
object that contains details of the void operation.
The following example shows the JSON response data for a voided cash payment.
Example of a voided cash payment
{
"guid": "2f20387c-2b39-4c67-8898-b3faccb3ce06",
"entityType": "OrderPayment",
"externalId": null,
"originalProcessingFee": null,
"amount": 42.8,
"tipAmount": 0,
"amountTendered": 42.8,
"cashDrawer": {
"guid": "30795302-5fc9-461c-b314-ac8ea6e55cd5",
"entityType": "CashDrawer",
"externalId": null
},
"cardType": null,
"lastModifiedDevice": {
"id": "7c664bbbb33913bd"
},
"refundStatus": "NONE",
"houseAccount": null,
"type": "CASH",
"voidInfo": {
"voidUser": {
"guid": "9659c962-7a8a-43ec-9343-47cafb68e83b",
"entityType": "RestaurantUser",
"externalId": null
},
"voidApprover": {
"guid": "9659c962-7a8a-43ec-9343-47cafb68e83b",
"entityType": "RestaurantUser",
"externalId": null
},
"voidDate": "2020-02-18T19:24:56.311+0000",
"voidBusinessDate": 20200218,
"voidReason": null
},
"otherPayment": null,
"mcaRepaymentAmount": null,
"createdDevice": {
"id": "7c664bbbb33913bd"
},
"paidDate": "2020-02-18T18:10:28.187+0000",
"cardEntryMode": null,
"paymentStatus": "VOIDED",
"paidBusinessDate": 20200218,
"last4Digits": null,
"refund": null
}|
The |
|
|
The restaurant employee who voided the check or the item.
The |
|
|
The restaurant employee who approved the void. The employee approving the void may be the same person who voided the payment. |
|
|
The date and time when the payment was voided. |
|
|
The business date when the payment was voided. |
|
|
The pre-configured void reason that was specified for the
void. The value is |
|
|
The date and time when the original (pre-void) payment was made. |
|
|
The current status of the payment, which is
|
The /payments/
endpoint can return data for refunded payments. A refund is a credit
card payment that has been fully reversed after it was captured.
Refunds cannot be issued on specific items, but instead can only be
issued on the entire check.
{guid}
In the return data for a refunded payment, the
Payment object includes a Refund object with
details of the refund operation.
The following example shows the JSON response data for a refunded credit card payment.
Example of a refunded payment
{
"guid": "3e95fde2-da0f-4057-b91c-840b43e637c5",
"entityType": "OrderPayment",
"externalId": null,
"originalProcessingFee": null,
"amount": 6.36,
"tipAmount": 0.0,
"amountTendered": 6.36,
"cashDrawer": null,
"cardType": "VISA",
"lastModifiedDevice": {
"id": null
},
"refundStatus": "FULL",
"houseAccount": null,
"type": "CREDIT",
"voidInfo": null,
"otherPayment": null,
"mcaRepaymentAmount": null,
"createdDevice": {
"id": null
},
"paidDate": "2020-02-19T19:47:51.206+0000",
"cardEntryMode": "ONLINE",
"paymentStatus": "CAPTURED",
"paidBusinessDate": 20200219,
"last4Digits": "1111",
"refund": {
"refundAmount": 6.36,
"tipRefundAmount": 0.0,
"refundDate": "2020-02-19T19:48:31.828+0000",
"refundBusinessDate": 20200219
}
}|
The status of the refund. A |
|
|
The date and time when the original (pre-refund) payment was made. |
|
|
The |
|
|
The amount of the refund, excluding the tip. |
|
|
The amount of the tip refund. |
|
|
The date and time when the payment was refunded. |
|
|
The business date when the payment was refunded. |