Get Order Details By UUID
This API enables your application to retrieve detailed information for a single order using its unique Order UUID. It provides a complete snapshot of any specific transaction, including its status, products, customer details, and payment summary. This is essential for customer support, order tracking, and offering users a comprehensive view of their purchases.
Use Cases
-
Customer Service: When a customer has a query, a support agent can quickly use the Order UUID to access all transaction details, enabling prompt and accurate responses.
-
Order History: Your application can display a detailed order history to users, including itemized lists and total costs, for transparency and convenience.
-
Internal Auditing: Pull specific order details for auditing, accounting, or reconciliation purposes, ensuring accuracy and compliance.
Endpoint
GET https://demo-api.frontpayment.no/api/v1/connect/orders/details/{{ORDER_UUID}}
Authorization
Include a Bearer Token in the Authorization
header. You can obtain this token from Front Payment.
Example:
Authorization: Bearer YOUR_FRONTPAYMENT_BEARER_TOKEN
Response
A successful request will return a 200 OK
status with the following JSON payload:
{
"status_code": 200,
"status_message": "OK",
"message": "orderRetrievedSuccessfully",
"is_data": true,
"data": {
"type": "String",
"orderUuid: "String",
"invoiceNumber": "String",
"status": "String",
"orderDate": "String",
"paymentLinkDueDate": "String",
"productList": [
{
"name": "String",
"productId": "String",
"quantity": "Integer",
"rate": "Float",
"discount": "Float",
"tax": "Float",
"amount": "Float"
}
],
"orderSummary": {
"subTotal": "Float",
"tax": "Float",
"discount": "Float",
"grandTotal": "Float"
},
"customerDetails": {
"type": "String",
"uuid": "String",
"countryCode": "String",
"msisdn": "String",
"email": "String",
"name": "String",
"preferredLanguage": "String",
"personalNumber": "String",
"organizationId": "String",
"address": {
"street": "String",
"zip": "String",
"city": "String",
"country": "String"
}
},
}
}
API returns a 404
error, it means requested order with ORDER_UUID
could not be found in our system.
{
"status_code": 404,
"status_message": "Not Found",
"message": "orderNotFound",
"is_data": false,
"data": null
}
API returns a 510
error, it means something failed on the server side
{
"status_code": 510,
"status_message": "Execution Exception Occurred",
"message": "Something Went Wrong",
"is_error": true,
"errors": "Array"
}