POST
Create a draft marketplace listing

Authorizations

X-InStockRx-Api-Key
string
header
required

Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.

Headers

X-Pharmacy-Id
string<uuid>

Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.

Idempotency-Key
string

Makes this request safe to retry. A retry carrying the same key replays the original response rather than acting twice, and is marked X-Idempotent-Replay: true. The same key with a different body is 409. Records are kept for 24 hours.

Required string length: 1 - 255

Body

application/json
nationalDrugCode
string
required
expirationDate
string<date>
lotNumber
string
price
string

USD amount as a decimal string, up to two decimal places.

Pattern: ^-?\d+(\.\d{1,2})?$
Examples:

"42.50"

"0.01"

"1200"

quantity
string

Non-negative decimal quantity (up to 6 decimal places).

Pattern: ^\d+(\.\d{1,6})?$
Examples:

"1"

"30"

"0.5"

"0.125"

sealedPackage
boolean
originalPackage
boolean
tornPackageLabel
boolean
fullPackage
boolean
additionalPackageNotes
string
gtin
string
serialNumber
string
showOnlyInState
boolean

Response

201 - application/json

Created

id
string<uuid>
required
nationalDrugCode
string
required
savedByUserId
string<uuid>
nationalDrugCodeNormalized
string
expirationDate
string<date>
lotNumber
string
price
string

USD amount as a decimal string, up to two decimal places.

Pattern: ^-?\d+(\.\d{1,2})?$
Examples:

"42.50"

"0.01"

"1200"

quantity
string

Non-negative decimal quantity (up to 6 decimal places).

Pattern: ^\d+(\.\d{1,6})?$
Examples:

"1"

"30"

"0.5"

"0.125"

sealedPackage
boolean
originalPackage
boolean
tornPackageLabel
boolean
fullPackage
boolean
additionalPackageNotes
string
gtin
string
serialNumber
string
drugPackageForm
string
drugPackageStrength
string
labelerName
string
packageName
string
sellerPharmacyId
string<uuid>
sellerPharmacyName
string
sellerPharmacyDBA
string
branded
boolean
generic
boolean
showOnlyInState
boolean
isCertified
boolean
createdAt
string<date-time>
updatedAt
string<date-time>