MedicalTrace

Reject a custody transfer

Reject a requested handover. Custody stays with the sender.

Requires transfer:accept, and the caller must be the named receiver. Only a REQUESTED transfer can be rejected.

1. Request URL

POST https://api.medicaltrace.net/v1/custody/transfers/66666666-6666-4666-8666-666666666666/reject

2. Request parameters

ParameterInRequiredTypeDescription
AuthorizationheaderYesstringBearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder.
X-Organization-IdheaderYesstringReceiver organization.
idpathYesstringTransfer id.

3. Request example

curl -s -X POST 'https://api.medicaltrace.net/v1/custody/transfers/66666666-6666-4666-8666-666666666666/reject' \
  -H 'authorization: Bearer demo.local.jwt' \
  -H 'x-organization-id: 22222222-2222-4222-8222-222222222222'

4. Response data

HTTP 201. The body below uses the fictional DEMO-BED-001 fixtures.

{
  "id": "66666666-6666-4666-8666-666666666666",
  "state": "REJECTED"
}

5. Response fields

FieldTypeDescriptionExample
statestringREJECTED. custodianId does not change.REJECTED