Skip to main content
POST
Accept an order

Authorizations

Authorization
string
header
required

Authorization: Bearer gj_live_… (production) or gj_test_… (sandbox).

Headers

Idempotency-Key
string

Any unique string. Retrying with the same key within 24 h returns the first response without running the request again.

Maximum string length: 255

Path Parameters

id
string<uuid>
required

Body

application/json
erp_reference
string
required
Required string length: 1 - 128
Example:

"AB-2026-004711"

Response

Accepted

id
string<uuid>
required
order_number
string
required
Example:

"GO-XCAFTF"

pharmacy_id
string<uuid>
required
status
enum<string>
required

new → accepted → packed → ready_for_pickup | out_for_delivery → completed. returning/returned when a courier could not deliver. cancelled: do not dispense.

Available options:
new,
accepted,
packed,
ready_for_pickup,
out_for_delivery,
completed,
returning,
returned,
cancelled
created_at
string<date-time>
required

When the order reached your pharmacy

updated_at
string<date-time>
required
fulfilment
object
required
patient
object
required

Only what is needed to dispense and deliver. No e-mail, no billing address.

items
object[]
required
totals
object
required
prescription
object
required
erp_reference
string | null
accepted_at
string<date-time> | null