Admin api contests

Get list of contested orders

GET
/api/admin/v2/contests

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

minCreatedAt?string
Formatdate-time
maxCreatedAt?string
Formatdate-time
minUpdatedAt?string
Formatdate-time
maxUpdatedAt?string
Formatdate-time
status?string
Value in"contested" | "reviewed"
orderId?integer
storeId?integer
startTime?string
Formatdate-time
endTime?string
Formatdate-time
page?integer
Default0
pageSize?integer
Default10

Response Body

application/json

application/json

curl -X GET "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/contests?minCreatedAt=2024-09-22T00%3A00%3A00.000Z&maxCreatedAt=2024-09-29T00%3A00%3A00.000Z&minUpdatedAt=2024-09-23T00%3A00%3A00.000Z&maxUpdatedAt=2024-09-30T00%3A00%3A00.000Z"
{
  "contestedOrders": [
    {
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "deletedAt": "2019-08-24T14:15:22Z",
      "id": 0,
      "orderId": "string",
      "orderVersion": 0,
      "sessionId": "string",
      "message": "string",
      "fromOperator": true,
      "status": "contested",
      "contestedTotalPrice": "120.00",
      "reviewedTotalPrice": "120.00",
      "originalTotalPrice": "123.45",
      "order": {
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "id": 0,
        "version": 0,
        "isLatest": 0,
        "customerId": "11",
        "storeId": 1,
        "status": "draft",
        "transactionId": 0,
        "customerShoppingSessionId": 0,
        "externalId": "string",
        "externalStatus": "ok",
        "subtotalPrice": "1.80",
        "totalPrice": "2.15",
        "totalTax": "0.35",
        "paidAt": "2019-08-24T14:15:22Z",
        "notificationSentAt": "2019-08-24T14:15:22Z",
        "extraText": "",
        "completedAt": "2019-08-24T14:15:22Z",
        "draftCreatedAt": "2019-08-24T14:15:22Z"
      }
    }
  ],
  "pagination": {
    "previous": {
      "offset": 0,
      "count": 0
    },
    "next": {
      "offset": 0,
      "count": 0
    }
  }
}
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.