curl --request PUT \
--url https://api.decodahealth.com/inventory/packages/cancel-sold-package/{sold_package_id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"cancellationReason": "<string>"
}
'trueCancel a sold package by setting its status to CANCELLED.
curl --request PUT \
--url https://api.decodahealth.com/inventory/packages/cancel-sold-package/{sold_package_id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"cancellationReason": "<string>"
}
'trueThe tenant you are making this request on behalf of
Your api key
Request schema for cancelling a sold package
Reason for cancelling the package
Successful Response
The response is of type boolean.