Use this method to retrieve a payment intent, including who is paying for the terminal order and how they are paying for the terminal order.
Include the paymentIntentId that we sent you when you created the terminal order.
/payment-intents/{paymentIntentId}getPaymentIntentUse this method to retrieve a payment intent, including who is paying for the terminal order and how they are paying for the terminal order.
Include the paymentIntentId that we sent you when you created the terminal order.
| Name | In | Type | Description |
|---|---|---|---|
paymentIntentIdRequired | path | string | Unique identifier that we assigned to the payment intent. |
Successful request. Returns the payment intent.
{
"costBreakdown": {
"customCharges": [
{
"name": "FleeceCharge",
"value": 500
}
],
"items": [
{
"name": "TariffCosts",
"quantity": 1,
"unitCost": 999
}
],
"shippingCost": 100
},
"payment": {
"frequency": {
"type": "singlePayment"
},
"method": "hostedPaymentPage",
"payer": "merchant",
"status": "pendingPayment"
},
"paymentIntentId": "15387",
"paymentIntentType": "purchase",
"subTotal": 100,
"tax": {
"isTaxExempt": false,
"taxAmount": 100
}
}Invalid request
{
"detail": "One or more validation errors occurred, see error section for more info",
"errors": [
{
"detail": "invalid date",
"message": "Expected time, got '' for start_time",
"parameter": "start_time"
}
],
"status": 400,
"title": "Bad request",
"type": "https://docs.payroc.com/api/errors#bad-request"
}Identity could not be verified
{
"detail": "Your identity could not be verified",
"status": 401,
"title": "Not Authorized",
"type": "https://docs.payroc.com/api/errors#not-authorized"
}Do not have permissions to perform this action
{
"detail": "You do not have the required permissions to perform this action",
"instance": "https://api.payroc.com/v1/exampleResource/3",
"resource": "exampleResource",
"status": 403,
"title": "Forbidden",
"type": "https://docs.payroc.com/api/errors#forbidden"
}Resource not found
{
"detail": "Resource not found",
"resource": "(The Type of the Resource)",
"status": 404,
"title": "Not found",
"type": "https://docs.payroc.com/api/errors#not-found"
}Not acceptable
{
"detail": "Resource does not support the representation requested",
"status": 406,
"title": "Not acceptable",
"type": "https://docs.payroc.com/api/errors#not-acceptable"
}An error has occured
{
"detail": "We are unable to process your request at this time",
"errors": [
{
"message": "Service offline"
}
],
"status": 500,
"title": "Api error",
"type": "https://docs.payroc.com/api/errors#api-error"
}