A test key never works on production and a live key never works in the
sandbox; both answer
401 wrong_environment.
Create a test order
fulfilment:express(GO JOE’s courier collects from you),shipping(you ship) orpickup(the patient collects). Defaultexpress.prescription_stage:vorab(default) orsigned.items(optional):[{ "pharmacy_sku": "4711", "quantity": 10 }]with article numbers you pushed and GO JOE mapped. Without it the order gets one or two products your sandbox pharmacy has in stock.
201). Your webhook endpoint receives
order.created within seconds, and the event is in GET /events too. From
here on use the normal endpoints: fetch, download the prescription, accept,
report packed and so on.
Play GO JOE’s side
POST /sandbox/orders/{id}/advance with one action:
409 with a code saying why.
A full run
- Create an express order with
prescription_stage: vorab. - Fetch it, download the Vorab-Rezept, accept it with your order number.
- Report
packed, then playcourier_picked_upandcourier_delivered. - On a second order, play
sign_prescriptionbefore packing and check your ERP swaps in the signed PDF. - On a third, play
cancelafter accepting and check your ERP stops it.
Good to know
- Webhooks in the sandbox go out right after each API call (new events and
retries). If your endpoint was down, the next call you make delivers what is
due, and
GET /eventsalways has everything. - The sandbox’s data can be reset by GO JOE. Don’t keep anything there you need.