Reject Order Item

Declines an order item and marks it rejected, whether or not it was delivered. Requires a producer access token for the application.

Rejecting moves no money and no stock. To give the member their balance back and restock the item, issue a refund with Create Refund. An optional reason is recorded on the item as failure_reason.

An item that can't be rejected from its current state fails with 422 and an error_code. Built-in products (badge, multiplier, flair and coupon-code lines) settle at order time and have no manual steps, so they fail with 400 PRODUCT_NOT_ACTIONABLE. The response is the updated order item, in the same shape as Retrieve Order Item, plus new_balance, the member's current balance in the order's reward item. It is null for a cash order.

post/{client_id}/order-items/{uuid}/reject/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1/applications
  • URL
    https://cf-blast.livelikecdn.com/api/v1/applications/{client_id}/order-items/{uuid}/reject/
  • Auth
    API key in header Authorization

Path parameters

client_idstring required

The client ID of the application.

uuidstring uuid required

The ID of the order item.

Request body

reasonstring

Why the item was rejected. Optional, and stored as failure_reason on the item.

Response

OK. The updated order item.

idstring uuid
statusstring
new_balancestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.