Skip to main content

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.

    Method:Example Authorization Header: GETAuthorization: Bearer YOUR_FRONTPAID_BEARER_TOKEN

  • Authorization: Bearer token

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 Response

returns
a {404 "status_code":error, 200,it "status_message":means "OK",requested "message":order "Orderwith StatusORDER_UUID Retrievedcould Successfully",not "is_data":be true,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"
}