Skip to main content
POST
Reject an order

Authorizations

Authorization
string
header
required

The store's API key (xfp_test_… on the sandbox, xfp_live_… on live). XFaster creates it and shows it once. An integrator key (one key for a POS company) also sends X-XFaster-Store.

Headers

Idempotency-Key
string

Any unique string. Repeating a request with the same key within 24 hours returns the first answer instead of acting twice.

Example:

"5f0c3d1e-8b6a-4e1f-9c2d-7a1b0e4f6d21"

Path Parameters

id
integer
required
Example:

183761

Body

application/json
reason
enum<string>
required
Available options:
item_unavailable,
too_busy,
closing_soon,
cannot_deliver_address,
other
note
string
Maximum string length: 200
Example:

"אין לחמניות"

Response

The order after the change

id
integer
Example:

183761

number
string
Example:

"183761"

type
enum<string>
Available options:
delivery,
pickup
status
enum<string>
Available options:
new,
preparing,
ready,
picked_up,
delivered,
collected,
cancelled
placed_at
string<date-time>
scheduled_for
string<date-time> | null

Set for orders placed for later

prep_time_minutes
integer | null
ready_by
string<date-time> | null
customer
object
delivery
object | null
items
object[]
notes
object
totals
object

items + packaging + delivery_fee + tip - discount - coupon = total

payment
object
invoice
object
picking
enum<string> | null

Markets - lines are final once done

Available options:
picking,
done,
null
cancellation
object | null
updated_at
string<date-time>