Admin api contests
Create a contest for order
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
orderId*integer
Id of the order is being contested
message?string
Message provided by a customer, may be empty
Default
""items*array<>
Line items need to be contested
Response Body
application/json
application/json
curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/contests" \ -H "Content-Type: application/json" \ -d '{ "orderId": 0, "items": [ { "id": 0, "productId": 0, "contestedQuantity": 0 } ] }'[
{
"createdAt": "2019-08-24T14:15:22Z",
"id": 0,
"productId": 0,
"rin": "string",
"contestedOrderId": 0,
"originalQuantity": 0,
"contestedQuantity": 0
}
]Empty
Empty
Empty
{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}How is this guide?