Get Order Status By UUID
ThisBy this API allows you to retrieve the status of anall order usingstatues itscan UUIDbe (Universallyretrieved Uniqueby Identifier).UUID.
Endpoint Details
GET URL: https://demo-api.frontpayment.no/api/v1/connect/orders/status/{{ORDER_UUID}}
Authentication
This endpoint requires a Bearer Token
for authentication. You will need to obtain this token from Frontpayment and include it in the Authorization
header of your request.
Bearer
Response Structure
Success
A Responsesuccessful (Statusrequest Code:will 200)return a 200
status with the following JSON payload:
{
"status_code": 200,
"status_message": "OK",
"message": "Order Status Retrieved Successfully",
"is_data": true,
"data": {
"uuid": "String",
"status": "String",
"orderAmount": "Float",
"refundedAmount": "Float"
}
}
Example
API Responsereturns
a
{404"status_code":error,200,it"status_message":means"OK",requested"message":order"OrderwithStatusORDER_UUID
RetrievedcouldSuccessfully",not"is_data":betrue,found"data":in{our"uuid": "ODR347888404", "status": "REFUNDED", "orderAmount": 100.00, "refundedAmount": 50.00 } }
Error Responses
Order Not Found (Status Code: 404)system.
{
"status_code": 404,
"status_message": "Not Found",
"message": "Order Not Found"orderNotFound",
"is_data"is_error": false,
"data"errors": null
}
InternalAPI Serverreturns Errora (Status510
Code:error, 510)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"
}