Completed Order Details

Retrieves details of a completed order of a specific user.

Endpoint

POST https://partners.waffarx.com/api/ValuCheckout/getCompletedOrderById

Request Headers

Header

Description

wxc-id

Your WaffarX Client Id

wxc-auth

Signature auth header for the request

wxc-date

UTC timestamp of the request, e.g. 2024-04-24T12:34:56Z

authorization

JWT Token a short-lived token`

Accept-Language

Response language preference (e.g. en | ar)

Content-Type

Must be application/json

Note

wxc-id: The WaffarX client ID specified in your integration data.

Request Body Parameters

Name

Type

Required?

Description

OrderId

string

Required

Unique identifier of the order you want to retrieve details for.

UserId

string

Required

Unique identifier of the user whose completed order details you want to retrieve.

Request Body Example

Example Request Body
{
  "OrderId": "68d527a17a64b9f3652e6bbb",
  "UserId": "111abcd"
}

cURL Example

curl --location 'https://partners.waffarx.com/api/ValuCheckout/getCompletedOrderById' \
      --header 'Content-Type: application/json' \
      --header 'Accept-Language: en' \
      --header 'wxc-id: {YOUR_CLIENT_ID}' \
      --header 'wxc-date: 2025-07-01T17:06:06Z' \
      --header 'wxc-auth: c9132343295553cc468c45657f49554258' \
      --header 'authorization: eyJhbGciOiJSUzI1NiI....UE4WGw' \
      --data '{"OrderId": "68d527a17a64b9f3652e6bbb","UserId":"111abcd"}'

Responses

Success (HTTP 200)

Success Response Example
  {
      "code": null,
      "status": "Success",
      "data": {
          "address": {
              "firstName": "Bakly",
              "lastName": "Kamal",
              "phone": "01234567000",
              "email": "[email protected]",
              "country": "Egypt",
              "city": "Cairo",
              "address1": "Hassan Sabry",
              "address2": "Apt sB",
              "zip": "11511"
          },
          "subTotalPrice": 640,
          "shippingPrice": 75.00,
          "canCancel": false,
          "canReturn": false,
          "products": [
              {
                  "oldPrice": 650,
                  "discount": "1.54 %",
                  "productId": "68cfec712c112fb2b5000a9a",
                  "variantId": "45345369718969",
                  "productName": "Iphone 14 Pro Max",
                  "image": "https://cdn.shopify.com/s/files/1/0550/1734/1113/files/iphone-17-lineup-STORY-BANNER-850x500.png?v=1757969431",
                  "errorImage": "https://waffarxcdn-akcrhqbhbah9gpcc.z01.azurefd.net/waffarx-cdn/img/productsearcherror.png",
                  "price": 640,
                  "currencey": "EGP",
                  "brand": "waffar"
              }
          ],
          "offers": [
              {
                  "id": "68e57189f910139aecb1d83d",
                  "name": "Test reward Store",
                  "typeName": "Rewards",
                  "description": "Test reward Store",
                  "isRewardOffer": true,
                  "isFixed": false,
                  "rewardAmount": 10,
                  "partnerOfferTypeId": 0,
                  "partnerOfferTypeName": "",
                  "isStoreLevel": true,
                  "isProductLevel": false,
                  "expirationDate": "2025-10-31T23:59:59.999"
              }
          ],
          "id": "68e6b8ed8a587f5b48cda452",
          "merchantOrderId": "#1314",
          "userId": "Test112233",
          "loanId": "loanId",
          "transactionId": "transactionId",
          "creationDate": "2025-10-08T19:18:05.862Z",
          "orderStatus": "InProgress",
          "totalPrice": 715.00,
          "currency": "EGP",
          "storeData": {
              "storeId": "61a535ad-bf20-4d71-8846-413ebe8bb8ff",
              "storeName": "Test Valu",
              "storeLogo": "https://waffarxcdn-akcrhqbhbah9gpcc.z01.azurefd.net/waffarx-cdn/siteimages/stores/advlogo202509101016121612.jpeg",
              "storeLogoPng": "https://waffarxcdn-akcrhqbhbah9gpcc.z01.azurefd.net/waffarx-cdn/siteimages/stores/advlogo202509101016121612.jpeg",
              "hotline": "16671"
          }
      },
      "message": "Confirmed order retrieved successfully",
      "errors": null
  }

Note

orderStatus: The order status value can be one of those values (“InProgress”, “Cancelled”, “Fulfilled”, “ReturnInProgress”, “Returned”)

Error (HTTP 4XX/5XX)

Error Response Example
{
  "Status": "Error",
  "Data": null,
  "Message": null,
  "Errors": []
}