Skip to main content
POST
Create a draft prescription from an existing one

Authorizations

Authorization
string
header
required

Marketplace API key

Headers

idempotency-key
string
required
Idempotency-Key
string
required

Unique per draft; replays return the original result for 24 hours

X-Organization-Id
string
required

Target clinic organization ID

Body

application/json
sourcePrescriptionId
string
required

The prescription to copy (rxp_…)

Example:

"rxp_5f1c0000000040000000000000000001"

prescriberId
string
required

Who is written as the prescriber (prv_…). Required: the EHR would otherwise default to whichever login made the call.

Example:

"prv_1a2b000000004000a000000000000001"

sig
string | null

Null or absent: same as the source

Example:

null

quantity
string | null

Decimal string. Null or absent: same as the source

Example:

null

refills
number | null

Null or absent: same as the source

Example:

null

daysSupply
number | null

Null or absent: same as the source

Example:

null

Response

Created

code
string
required

Response code

Example:

"success"

data
object
required