Uploads a document on a referral
Attaches one file to a referral the authenticated group can access.
type is invoice, pfr (letter of protection), drivers_license,
aob, or hcfa. file is a base64 data URI, the same shape as
order_form: data:application/pdf;name=file.pdf;base64,.... PDF, PNG,
and JPEG only. The file must be 20 MB or smaller. Base64 expansion is
already included in that limit.
An invoice replaces the current invoice and keeps the previous file.
A letter of protection is added alongside existing ones. A driver’s
license replaces the patient’s current license. An assignment of
benefits replaces the current one. An HCFA is stored on a visit. Send
visit_id when the referral has more than one visit. With one visit,
that visit is used.
Returns 403 until Scan enables referral_documents_create for the group.
Authorizations
Authorization: Bearer <api_token>. Reuse the same token on later requests
until it expires or is revoked. Do not request a new token for each call.
The token does not expire after 24 hours. Sandbox tokens come from Get
API keys and allow 2,000 successful requests or 7 days, or 90 days with
an access code. Failed 4xx/5xx responses do not consume the allowance.
Production tokens are issued from the group's API access tab and last
until the expiry set there, or until revoked when no expiry is set.
Path Parameters
Referral ID

