Getting information about a specific payment

Send a GET request to the /payments/{guid} endpoint of the orders API to obtain detailed information about a specific payment. The endpoint returns a 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/{guid} endpoint for a specific payment.

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" \1
      https://[toast-api-hostname]/orders/v2/payments/361d140a-aa0b-43ad-98d6-516c416555d92

1

Use the Toast-Restaurant-External-ID request parameter to specify the GUID of the restaurant in which the payment was made.

2

Specify the payment GUID, which you can get from the /payments endpoint of the orders API.


The following example shows the JSON response data for a GET request to the /payments/{guid} endpoint. The payment method for this sample payment was a credit card.

Get payment return data

{
  "guid": "361d140a-aa0b-43ad-98d6-516c416555d9",1
  "entityType": "OrderPayment",
  "externalId": null,
  "originalProcessingFee": null,
  "amount": 57.73,2
  "tipAmount": 0,3
  "amountTendered": 0,
  "cashDrawer": null,
  "cardType": "VISA",
  "lastModifiedDevice": {
    "id": "7c664bbbb33913bd"
  },
  "refundStatus": "NONE",
  "houseAccount": null,4
  "type": "CREDIT",5
  "voidInfo": null,6
  "otherPayment": null,7
  "mcaRepaymentAmount": null,
  "createdDevice": {
    "id": "7c664bbbb33913bd"
  },
  "paidDate": "2020-02-11T16:38:32.774+0000",8
  "cardEntryMode": "KEYED",9
  "paymentStatus": "CAPTURED",10
  "paidBusinessDate": 20200211,
  "last4Digits": "1111",
  "refund": null,11
  "orderGuid": "86675d88-b27e-4850-94ab-48662563eae8",
  "checkGuid": "ed4b222f-5259-43fd-8db0-1243a11ed554"
}

1

The guid value contains the unique Toast POS identifier of the payment.

2

The amount of the payment, including taxes and service charges but excluding tips.

3

The amount tipped on this payment.

4

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 null if a house account was not used for payment.

5

The payment method, such as CREDIT for a credit card.

6

If the payment was voided, this value contains a VoidInformation object with information about the void. For details, see Voided payments. The value is null if the payment has not been voided.

7

Reference information (such as the GUID) of an other payment option used to pay the check. The value is null if an other payment option was not used for payment.

8

The date and time when the payment was made.

9

For credit card payments, specifies how the credit card data was obtained. The value is null if a credit card was not used for payment.

10

The status of the payment. In this example, the payment has been captured.

11

If the payment has been refunded, this value contains a Refund object with information about the refund. For details, see Refunded payments. The value is null if the payment has not been refunded.


The following sections provide information about voided and refunded payments.

Voided payments

The /payments/{guid} 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.

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": {1
    "voidUser": {2
      "guid": "9659c962-7a8a-43ec-9343-47cafb68e83b",
      "entityType": "RestaurantUser",
      "externalId": null
    },
    "voidApprover": {3
      "guid": "9659c962-7a8a-43ec-9343-47cafb68e83b",
      "entityType": "RestaurantUser",
      "externalId": null
    },
    "voidDate": "2020-02-18T19:24:56.311+0000",4
    "voidBusinessDate": 20200218,5
    "voidReason": null6 
  },
  "otherPayment": null,
  "mcaRepaymentAmount": null,
  "createdDevice": {
    "id": "7c664bbbb33913bd"
  },
  "paidDate": "2020-02-18T18:10:28.187+0000",7
  "cardEntryMode": null,
  "paymentStatus": "VOIDED",8
  "paidBusinessDate": 20200218, 
  "last4Digits": null, 
  "refund": null
}

1

The VoidInformation object with details of the void.

2

The restaurant employee who voided the check or the item. The guid value lists the unique Toast POS identifier of the employee. For details on retrieving information about employees, see Getting all employees of a restaurant.

3

The restaurant employee who approved the void. The employee approving the void may be the same person who voided the payment.

4

The date and time when the payment was voided.

5

The business date when the payment was voided.

6

The pre-configured void reason that was specified for the void. The value is null if a void reason was not specified.

7

The date and time when the original (pre-void) payment was made.

8

The current status of the payment, which is VOIDED for voided payments.


Refunded payments

The /payments/{guid} 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.

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",1
  "houseAccount": null,
  "type": "CREDIT",
  "voidInfo": null,
  "otherPayment": null,
  "mcaRepaymentAmount": null,
  "createdDevice": {
    "id": null
  },
  "paidDate": "2020-02-19T19:47:51.206+0000",2
  "cardEntryMode": "ONLINE",
  "paymentStatus": "CAPTURED",
  "paidBusinessDate": 20200219,
  "last4Digits": "1111",
  "refund": {3
    "refundAmount": 6.36,4
    "tipRefundAmount": 0.0,5
    "refundDate": "2020-02-19T19:48:31.828+0000",6
    "refundBusinessDate": 202002197
  }
}

1

The status of the refund. A FULL status means that a full refund was made on this payment.

2

The date and time when the original (pre-refund) payment was made.

3

The Refund object with details of the refund.

4

The amount of the refund, excluding the tip.

5

The amount of the tip refund.

6

The date and time when the payment was refunded.

7

The business date when the payment was refunded.