Skip to main content
POST
/
order-item
/
approve
Approve/reject order items
curl --request POST \
  --url https://api.nuwebgroup.com/v1/order-item/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderItems": [
    {
      "orderItemId": 230,
      "approve": true,
      "notifyCustomer": true
    },
    {
      "saleItemId": 222,
      "customerEmail": "[email protected]",
      "approve": false,
      "notifyCustomer": true
    }
  ]
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.

Body

application/json
orderItems
object[]

A list of order items and if they should be approved or rejected. When attempting to approve/reject multiple items, if any of them fail, changes to other items will be undone.

Response

Order items successfully approved/rejected

success
boolean