Transition service record
POST/service/by-name/:serviceName/records/:id/transition
Move a record along a flow edge. Refused with 409 STALE_STAGE when the record is no longer in the edge's source stage. Every unmet requirement is returned by name (400 TRANSITION_REQUIREMENTS_UNMET). Drafted shipments are validated first and created in the same step as the move. Automations and courier bookings run after the move is saved; their failures come back in automationFailures with a 200.
Scope: service_records:write
Request
Responses
- 200
- 400
- 403
- 404
- 409
Transition processed (check data.automationFailures)
TRANSITION_REQUIREMENTS_UNMET, TRANSITION_ADDS_NEED_ITEM, INVALID_SHIPMENT_DRAFT, UNKNOWN_TRANSITION or VALIDATION_ERROR
READ_ONLY — the caller may not act in this stage
Record not found
STALE_STAGE — the record has left the source stage