Transitions the listing from ShippingConfirmed to
ShippingReceivedConfirmed. Triggers payment release from the internal
balance to the seller.
The buyer MAY supply receivedDetails to record the DSCSA pedigree
they actually received (GTIN / serial number / lot number / expiration
date / NDC). These are stored separately from the seller’s declared
pedigree on the listing; the server compares and exposes
receivedDetailsMatch on subsequent reads. A mismatch does not block
receipt — it suppresses the seller’s positive rating bump and is
included in the marketplace_listing.received webhook payload.
To receive every item in a bundle at once (with optional per-item
DSCSA details), use POST /bundles/{id}/confirm-receipt instead.
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
Path Parameters
id
string<uuid>
required
Body
application/json
Body for POST /marketplace-listings/{id}/confirm-receipt. Every field
is optional. The minimal call ({}) confirms receipt with no DSCSA
capture (equivalent to confirmationType: Skipped).
Supplying receivedDetails records what the buyer actually received,
independent of what the seller declared. The server compares the two
and stores receivedDetailsMatch on the listing. A mismatch does not
block receipt — it suppresses the seller's positive rating bump and
is exposed on subsequent reads + on the
marketplace_listing.received webhook payload.
confirmationType
enum<string>
How the buyer obtained the DSCSA pedigree they're reporting at receipt
time. Drives downstream behavior — Scanned (2D barcode) has the
highest confidence; Manual indicates the buyer keyed values in;
AutoFilled means the partner pre-populated from the seller's
declared values without independent verification.
Available options:
NotChecked,
Skipped,
Scanned,
Manual,
AutoFilled
receivedDetails
object
DSCSA pedigree the buyer reports having received. Stored independently
from the seller's declared pedigree on the listing — both are retained
for compliance audit. The server compares the two and populates the
listing's receivedDetailsMatch flag accordingly.
Every field is individually optional so a partner can report whatever
they actually verified (e.g. lot + expiration without GTIN if the
package label was illegible). At least one field SHOULD be present —
an entirely empty object is equivalent to omitting receivedDetails
and is treated as Skipped.
Show child attributes
buyerNotes
string
Maximum string length: 500
Response
OK
id
string<uuid>
required
status
enum<string>
required
Lifecycle of a marketplace listing. V1 values 3 (PaymentConfirmed) and
4 (SaleConfirmed) are commented out in C# and excluded here.
The wire value ShippingReceivedNotConfirmed corresponds to the C#
member ShippingNotReceived (overridden via [EnumMember(Value=…)]).
Available options:
Pending,
Purchased,
Cancelled,
ShippingConfirmed,
ShippingReceivedConfirmed,
ShippingReceivedNotConfirmed,
Paused
nationalDrugCode
string
required
sellerPharmacyId
string<uuid>
required
deliveryStatus
enum<string>
Available options:
Unknown,
PreTransit,
InTransit,
OutForDelivery,
Delivered,
AvailableForPickup,
ReturnToSender,
Failure,
Cancelled,
Error
paymentStatus
enum<string>
Where a listing's payment has got to. Confirmed against
Inview.Domain/Enum/MarketplaceListingPaymentStatus.cs; the live document never
emits this enum, because it appears only on responses, so the drift check cannot
confirm it and a reader has to.
Available options:
NotInitiated,
Pending,
PaymentConfirmed,
PaymentSentToSeller,
SellerReceivedPayment,
Refunded,
FailedDueToInsufficientFunds,
Cancelled
nationalDrugCodeNormalized
string
labelerName
string
packageName
string
drugPackageForm
string
drugPackageStrength
string
quantityUnitQualifier
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"
pricePerQuantity
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"
inventoryQuantity
string
Non-negative decimal quantity (up to 6 decimal places).
Pattern: ^\d+(\.\d{1,6})?$
Examples:
"1"
"30"
"0.5"
"0.125"
expirationDate
string<date>
lotNumber
string
gtin
string
serialNumber
string
fullPackage
boolean
originalPackage
boolean
sealedPackage
boolean
tornPackageLabel
boolean
additionalPackageNotes
string
branded
boolean
generic
boolean
sellerPharmacyName
string
sellerPharmacyDBA
string
sellerPharmacyNpi
string
NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier
rather than a number, consistent with how it handles NDC, GTIN and other
healthcare identifiers. CMS-issued NPIs always start with 1 or 2, so
leading-zero NPIs do not arise in practice, but string typing rules out the
broader class of integer-identifier truncation bugs that v1 was open to.
Pattern: ^\d{10}$
Examples:
"1234567890"
"2987654321"
sellerPharmacyPhone
string
sellerPharmacyAddress
object
Show child attributes
buyerPharmacyName
string
buyingPharmacyName
string
buyingPharmacyDBA
string
buyingPharmacyNpi
string
NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier
rather than a number, consistent with how it handles NDC, GTIN and other
healthcare identifiers. CMS-issued NPIs always start with 1 or 2, so
leading-zero NPIs do not arise in practice, but string typing rules out the
broader class of integer-identifier truncation bugs that v1 was open to.
Pattern: ^\d{10}$
Examples:
"1234567890"
"2987654321"
buyingPharmacyPhone
string
buyingPharmacyAddress
object
Show child attributes
buyersMessage
string
listingDate
string<date-time>
soldDate
string<date-time>
shippingConfirmDate
string<date-time>
shippingReceivedConfirmDate
string<date-time>
paymentConfirmedDate
string<date-time>
shipByDate
string<date>
cancelledDate
string<date-time>
cancellationReason
enum<string>
On reads, any of the eight values may appear — ReturnCompleted when a completed
return cancelled the sale, ShipByDateExpired when the seller missed the ship-by
date, and DuplicateOfAcceptedCashOffer when the listing was cancelled as a
duplicate of a cash offer that had already been accepted, and AdminRefund when an
InStockRx admin refunded the order after the seller had already been paid.
On writes (POST /marketplace-listings/{id}/cancel) only SellerCancelled and
BuyerCancelled are accepted, and the one you send must match the side you are
acting as: a seller sends SellerCancelled, a buyer sends BuyerCancelled. The
auto-trigger values are reserved for system use. Anything else is
400 invalid-cancellation-reason.
Choosing the right value matters beyond bookkeeping: BuyerCancelled on a listing
that is still Purchased makes the backend auto-relist the item under the same
seller. A seller-initiated cancel mislabelled as BuyerCancelled would spawn an
unwanted replacement listing. After the listing is marked shipped no cancel
relists, whichever reason is used.
Available options:
SellerCancelled,
PharmacyInventoryQuantityAutoTrigger,
AutomaticDrugExpired,
BuyerCancelled,
ReturnCompleted,
ShipByDateExpired,
DuplicateOfAcceptedCashOffer,
AdminRefund
cancellationDescription
string
receivedDetails
object
What the buyer reported having received. null until confirm-receipt is called with a non-empty receivedDetails.
Show child attributes
receivedDetailsMatch
boolean
Server-computed comparison of receivedDetails against the
seller-declared pedigree on the listing. true if every field the
buyer supplied agreed with the listing; false if any disagreed;
null if no comparison was performed (no receivedDetails
supplied or confirmationType was NotChecked / Skipped).
Drives whether the seller earns a positive rating bump on receipt.
receivedDetailsConfirmationType
enum<string>
How the buyer obtained the values in receivedDetails.
Available options:
NotChecked,
Skipped,
Scanned,
Manual,
AutoFilled
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"InStockRx API","description":"Partner API for the InStockRx pharmacy marketplace.","colors":{"primary":"#EA6318","light":"#F58A4B","dark":"#B54B12"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"https://www.instockrx.com"},"favicon":"/favicon.svg","api":{"playground":{"display":"interactive"},"examples":{"languages":["bash","javascript","python"]}},"navbar":{"links":[{"href":"mailto:info@instockrx.com","label":"Support"}],"primary":{"type":"button","label":"Get sandbox access","href":"https://sandbox.instockrx.com"}},"footer":{"socials":{"website":"https://www.instockrx.com"}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4342"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[]}
{"page":{"pagePath":"v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing","slug":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing","pageMetadata":{"openapi":"/spec/v2.json post /marketplace-listings/{id}/confirm-receipt","description":"**Scope:** `listings:write`.\n\nTransitions the listing from `ShippingConfirmed` to\n`ShippingReceivedConfirmed`. Triggers payment release from the internal\nbalance to the seller.\n\nThe buyer MAY supply `receivedDetails` to record the DSCSA pedigree\nthey actually received (GTIN / serial number / lot number / expiration\ndate / NDC). These are stored **separately** from the seller's declared\npedigree on the listing; the server compares and exposes\n`receivedDetailsMatch` on subsequent reads. A mismatch does not block\nreceipt — it suppresses the seller's positive rating bump and is\nincluded in the `marketplace_listing.received` webhook payload.\n\nTo receive every item in a bundle at once (with optional per-item\nDSCSA details), use `POST /bundles/{id}/confirm-receipt` instead.\n","href":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing","title":"Buyer confirms receipt of a shipped listing"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Scope:\"\n }), \" \", _jsx(_components.code, {\n children: \"listings:write\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Transitions the listing from \", _jsx(_components.code, {\n children: \"ShippingConfirmed\"\n }), \" to\\n\", _jsx(_components.code, {\n children: \"ShippingReceivedConfirmed\"\n }), \". Triggers payment release from the internal\\nbalance to the seller.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The buyer MAY supply \", _jsx(_components.code, {\n children: \"receivedDetails\"\n }), \" to record the DSCSA pedigree\\nthey actually received (GTIN / serial number / lot number / expiration\\ndate / NDC). These are stored \", _jsx(_components.strong, {\n children: \"separately\"\n }), \" from the seller’s declared\\npedigree on the listing; the server compares and exposes\\n\", _jsx(_components.code, {\n children: \"receivedDetailsMatch\"\n }), \" on subsequent reads. A mismatch does not block\\nreceipt — it suppresses the seller’s positive rating bump and is\\nincluded in the \", _jsx(_components.code, {\n children: \"marketplace_listing.received\"\n }), \" webhook payload.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To receive every item in a bundle at once (with optional per-item\\nDSCSA details), use \", _jsx(_components.code, {\n children: \"POST /bundles/{id}/confirm-receipt\"\n }), \" instead.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"/spec/v2.json post /marketplace-listings/{id}/confirm-receipt","description":"**Scope:** `listings:write`.\n\nTransitions the listing from `ShippingConfirmed` to\n`ShippingReceivedConfirmed`. Triggers payment release from the internal\nbalance to the seller.\n\nThe buyer MAY supply `receivedDetails` to record the DSCSA pedigree\nthey actually received (GTIN / serial number / lot number / expiration\ndate / NDC). These are stored **separately** from the seller's declared\npedigree on the listing; the server compares and exposes\n`receivedDetailsMatch` on subsequent reads. A mismatch does not block\nreceipt — it suppresses the seller's positive rating bump and is\nincluded in the `marketplace_listing.received` webhook payload.\n\nTo receive every item in a bundle at once (with optional per-item\nDSCSA details), use `POST /bundles/{id}/confirm-receipt` instead.\n","href":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing","title":"Buyer confirms receipt of a shipped listing"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Marketplace Listings"],"operationId":"confirmReceiptMarketplaceListing","summary":"Buyer confirms receipt of a shipped listing","description":"**Scope:** `listings:write`.\n\nTransitions the listing from `ShippingConfirmed` to\n`ShippingReceivedConfirmed`. Triggers payment release from the internal\nbalance to the seller.\n\nThe buyer MAY supply `receivedDetails` to record the DSCSA pedigree\nthey actually received (GTIN / serial number / lot number / expiration\ndate / NDC). These are stored **separately** from the seller's declared\npedigree on the listing; the server compares and exposes\n`receivedDetailsMatch` on subsequent reads. A mismatch does not block\nreceipt — it suppresses the seller's positive rating bump and is\nincluded in the `marketplace_listing.received` webhook payload.\n\nTo receive every item in a bundle at once (with optional per-item\nDSCSA details), use `POST /bundles/{id}/confirm-receipt` instead.\n","security":["ddb539f0-9e8f-47d2-a613-ee56240fcb4c"],"parameters":["a7db1c42-a4a0-4668-82f8-1b8b98d96865","956ef52a-1470-44fb-a2e1-3afcb230c76c","9ccd6b5e-bcb6-48fd-a3b0-bd6cacad8aae"],"requestBody":"6da1cb68-0c01-47b5-b196-89ffa6d7c396","responses":{"200":"14cf1513-dab6-4cd3-8cbb-d68a6e9a2388","404":"c08c9b5e-0280-4b36-92b2-9822d2b34e02","409":"b942b635-d1dc-4dad-aece-174e88e48b47"},"method":"post","type":"path","servers":["3c745605-736a-4471-bbcd-908508c3013a","3efbdca7-d8e5-4edb-9fb3-d74a49562593"],"path":"/marketplace-listings/{id}/confirm-receipt","baseUrlOptions":["https://sandbox-api.instockrx.com","https://api.instockrx.com"],"title":"Buyer confirms receipt of a shipped listing","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a7db1c42-a4a0-4668-82f8-1b8b98d96865":{"in":"header","name":"X-Pharmacy-Id","required":false,"description":"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.","schema":{"type":"string","format":"uuid","isRequired":false,"description":"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.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"956ef52a-1470-44fb-a2e1-3afcb230c76c":{"in":"header","name":"Idempotency-Key","required":false,"description":"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.","schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"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.","uniqueKey":"","typeLabel":"string"}},"9ccd6b5e-bcb6-48fd-a3b0-bd6cacad8aae":{"in":"header","name":"Idempotency-Key","required":false,"description":"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.","schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"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.","uniqueKey":"","typeLabel":"string"}},"0b729a25-5b35-40f2-bf3a-500f2425b54e":{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Body for `POST /marketplace-listings/{id}/confirm-receipt`. Every field\nis optional. The minimal call (`{}`) confirms receipt with no DSCSA\ncapture (equivalent to `confirmationType: Skipped`).\n\nSupplying `receivedDetails` records what the buyer actually received,\nindependent of what the seller declared. The server compares the two\nand stores `receivedDetailsMatch` on the listing. A mismatch does not\nblock receipt — it suppresses the seller's positive rating bump and\nis exposed on subsequent reads + on the\n`marketplace_listing.received` webhook payload.\n","properties":{"confirmationType":{"type":"string","description":"How the buyer obtained the DSCSA pedigree they're reporting at receipt\ntime. Drives downstream behavior — `Scanned` (2D barcode) has the\nhighest confidence; `Manual` indicates the buyer keyed values in;\n`AutoFilled` means the partner pre-populated from the seller's\ndeclared values without independent verification.\n","enum":["NotChecked","Skipped","Scanned","Manual","AutoFilled"],"uniqueKey":"confirmationType","typeLabel":"enum\u003cstring>"},"receivedDetails":{"type":"object","description":"DSCSA pedigree the buyer reports having received. Stored independently\nfrom the seller's declared pedigree on the listing — both are retained\nfor compliance audit. The server compares the two and populates the\nlisting's `receivedDetailsMatch` flag accordingly.\n\nEvery field is individually optional so a partner can report whatever\nthey actually verified (e.g. lot + expiration without GTIN if the\npackage label was illegible). At least one field SHOULD be present —\nan entirely empty object is equivalent to omitting `receivedDetails`\nand is treated as `Skipped`.\n","properties":{"gtin":{"type":"string","pattern":"^\\d{14}$","uniqueKey":"receivedDetails.gtin","typeLabel":"string"},"serialNumber":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"receivedDetails.serialNumber","typeLabel":"string"},"lotNumber":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"receivedDetails.lotNumber","typeLabel":"string"},"expirationDate":{"type":"string","format":"date","uniqueKey":"receivedDetails.expirationDate","typeLabel":"string\u003cdate>"},"nationalDrugCode":{"type":"string","uniqueKey":"receivedDetails.nationalDrugCode","typeLabel":"string"}},"uniqueKey":"receivedDetails","typeLabel":"object"},"buyerNotes":{"type":"string","maxLength":500,"uniqueKey":"buyerNotes","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"receivedDetails":{"gtin":"\u003cstring>","serialNumber":"\u003cstring>","lotNumber":"\u003cstring>","expirationDate":"2023-12-25","nationalDrugCode":"\u003cstring>"},"buyerNotes":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"14cf1513-dab6-4cd3-8cbb-d68a6e9a2388":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["id","status","sellerPharmacyId","nationalDrugCode"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"Lifecycle of a marketplace listing. V1 values 3 (PaymentConfirmed) and\n4 (SaleConfirmed) are commented out in C# and excluded here.\nThe wire value `ShippingReceivedNotConfirmed` corresponds to the C#\nmember `ShippingNotReceived` (overridden via `[EnumMember(Value=…)]`).\n","enum":["Pending","Purchased","Cancelled","ShippingConfirmed","ShippingReceivedConfirmed","ShippingReceivedNotConfirmed","Paused"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"nationalDrugCode":{"type":"string","isRequired":true,"uniqueKey":"nationalDrugCode","typeLabel":"string"},"sellerPharmacyId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"sellerPharmacyId","typeLabel":"string\u003cuuid>"},"deliveryStatus":{"type":"string","enum":["Unknown","PreTransit","InTransit","OutForDelivery","Delivered","AvailableForPickup","ReturnToSender","Failure","Cancelled","Error"],"uniqueKey":"deliveryStatus","typeLabel":"enum\u003cstring>"},"paymentStatus":{"type":"string","description":"Where a listing's payment has got to. Confirmed against\n`Inview.Domain/Enum/MarketplaceListingPaymentStatus.cs`; the live document never\nemits this enum, because it appears only on responses, so the drift check cannot\nconfirm it and a reader has to.\n","enum":["NotInitiated","Pending","PaymentConfirmed","PaymentSentToSeller","SellerReceivedPayment","Refunded","FailedDueToInsufficientFunds","Cancelled"],"uniqueKey":"paymentStatus","typeLabel":"enum\u003cstring>"},"nationalDrugCodeNormalized":{"type":"string","uniqueKey":"nationalDrugCodeNormalized","typeLabel":"string"},"labelerName":{"type":"string","uniqueKey":"labelerName","typeLabel":"string"},"packageName":{"type":"string","uniqueKey":"packageName","typeLabel":"string"},"drugPackageForm":{"type":"string","uniqueKey":"drugPackageForm","typeLabel":"string"},"drugPackageStrength":{"type":"string","uniqueKey":"drugPackageStrength","typeLabel":"string"},"quantityUnitQualifier":{"type":"string","uniqueKey":"quantityUnitQualifier","typeLabel":"string"},"price":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"USD amount as a decimal string, up to two decimal places.","examples":["42.50","0.01","1200"],"uniqueKey":"price","typeLabel":"string"},"pricePerQuantity":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"USD amount as a decimal string, up to two decimal places.","examples":["42.50","0.01","1200"],"uniqueKey":"pricePerQuantity","typeLabel":"string"},"quantity":{"type":"string","pattern":"^\\d+(\\.\\d{1,6})?$","description":"Non-negative decimal quantity (up to 6 decimal places).","examples":["1","30","0.5","0.125"],"uniqueKey":"quantity","typeLabel":"string"},"inventoryQuantity":{"type":"string","pattern":"^\\d+(\\.\\d{1,6})?$","description":"Non-negative decimal quantity (up to 6 decimal places).","examples":["1","30","0.5","0.125"],"uniqueKey":"inventoryQuantity","typeLabel":"string"},"expirationDate":{"type":"string","format":"date","uniqueKey":"expirationDate","typeLabel":"string\u003cdate>"},"lotNumber":{"type":"string","uniqueKey":"lotNumber","typeLabel":"string"},"gtin":{"type":"string","uniqueKey":"gtin","typeLabel":"string"},"serialNumber":{"type":"string","uniqueKey":"serialNumber","typeLabel":"string"},"fullPackage":{"type":"boolean","uniqueKey":"fullPackage","typeLabel":"boolean"},"originalPackage":{"type":"boolean","uniqueKey":"originalPackage","typeLabel":"boolean"},"sealedPackage":{"type":"boolean","uniqueKey":"sealedPackage","typeLabel":"boolean"},"tornPackageLabel":{"type":"boolean","uniqueKey":"tornPackageLabel","typeLabel":"boolean"},"additionalPackageNotes":{"type":"string","uniqueKey":"additionalPackageNotes","typeLabel":"string"},"branded":{"type":"boolean","uniqueKey":"branded","typeLabel":"boolean"},"generic":{"type":"boolean","uniqueKey":"generic","typeLabel":"boolean"},"sellerPharmacyName":{"type":"string","uniqueKey":"sellerPharmacyName","typeLabel":"string"},"sellerPharmacyDBA":{"type":"string","uniqueKey":"sellerPharmacyDBA","typeLabel":"string"},"sellerPharmacyNpi":{"type":"string","pattern":"^\\d{10}$","description":"NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier\nrather than a number, consistent with how it handles NDC, GTIN and other\nhealthcare identifiers. CMS-issued NPIs always start with `1` or `2`, so\nleading-zero NPIs do not arise in practice, but string typing rules out the\nbroader class of integer-identifier truncation bugs that v1 was open to.\n","examples":["1234567890","2987654321"],"uniqueKey":"sellerPharmacyNpi","typeLabel":"string"},"sellerPharmacyPhone":{"type":"string","uniqueKey":"sellerPharmacyPhone","typeLabel":"string"},"sellerPharmacyAddress":{"type":"object","properties":{"line1":{"type":"string","uniqueKey":"sellerPharmacyAddress.line1","typeLabel":"string"},"line2":{"type":"string","uniqueKey":"sellerPharmacyAddress.line2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"sellerPharmacyAddress.city","typeLabel":"string"},"stateAcronym":{"type":"string","pattern":"^[A-Z]{2}$","uniqueKey":"sellerPharmacyAddress.stateAcronym","typeLabel":"string"},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","uniqueKey":"sellerPharmacyAddress.postalCode","typeLabel":"string"}},"uniqueKey":"sellerPharmacyAddress","typeLabel":"object"},"buyerPharmacyName":{"type":"string","uniqueKey":"buyerPharmacyName","typeLabel":"string"},"buyingPharmacyName":{"type":"string","uniqueKey":"buyingPharmacyName","typeLabel":"string"},"buyingPharmacyDBA":{"type":"string","uniqueKey":"buyingPharmacyDBA","typeLabel":"string"},"buyingPharmacyNpi":{"type":"string","pattern":"^\\d{10}$","description":"NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier\nrather than a number, consistent with how it handles NDC, GTIN and other\nhealthcare identifiers. CMS-issued NPIs always start with `1` or `2`, so\nleading-zero NPIs do not arise in practice, but string typing rules out the\nbroader class of integer-identifier truncation bugs that v1 was open to.\n","examples":["1234567890","2987654321"],"uniqueKey":"buyingPharmacyNpi","typeLabel":"string"},"buyingPharmacyPhone":{"type":"string","uniqueKey":"buyingPharmacyPhone","typeLabel":"string"},"buyingPharmacyAddress":{"type":"object","properties":{"line1":{"type":"string","uniqueKey":"buyingPharmacyAddress.line1","typeLabel":"string"},"line2":{"type":"string","uniqueKey":"buyingPharmacyAddress.line2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"buyingPharmacyAddress.city","typeLabel":"string"},"stateAcronym":{"type":"string","pattern":"^[A-Z]{2}$","uniqueKey":"buyingPharmacyAddress.stateAcronym","typeLabel":"string"},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","uniqueKey":"buyingPharmacyAddress.postalCode","typeLabel":"string"}},"uniqueKey":"buyingPharmacyAddress","typeLabel":"object"},"buyersMessage":{"type":"string","uniqueKey":"buyersMessage","typeLabel":"string"},"listingDate":{"type":"string","format":"date-time","uniqueKey":"listingDate","typeLabel":"string\u003cdate-time>"},"soldDate":{"type":"string","format":"date-time","uniqueKey":"soldDate","typeLabel":"string\u003cdate-time>"},"shippingConfirmDate":{"type":"string","format":"date-time","uniqueKey":"shippingConfirmDate","typeLabel":"string\u003cdate-time>"},"shippingReceivedConfirmDate":{"type":"string","format":"date-time","uniqueKey":"shippingReceivedConfirmDate","typeLabel":"string\u003cdate-time>"},"paymentConfirmedDate":{"type":"string","format":"date-time","uniqueKey":"paymentConfirmedDate","typeLabel":"string\u003cdate-time>"},"shipByDate":{"type":"string","format":"date","uniqueKey":"shipByDate","typeLabel":"string\u003cdate>"},"cancelledDate":{"type":"string","format":"date-time","uniqueKey":"cancelledDate","typeLabel":"string\u003cdate-time>"},"cancellationReason":{"type":"string","description":"On reads, any of the eight values may appear — `ReturnCompleted` when a completed\nreturn cancelled the sale, `ShipByDateExpired` when the seller missed the ship-by\ndate, and `DuplicateOfAcceptedCashOffer` when the listing was cancelled as a\nduplicate of a cash offer that had already been accepted, and `AdminRefund` when an\nInStockRx admin refunded the order after the seller had already been paid.\n\nOn writes (`POST /marketplace-listings/{id}/cancel`) only `SellerCancelled` and\n`BuyerCancelled` are accepted, and the one you send must match the side you are\nacting as: a seller sends `SellerCancelled`, a buyer sends `BuyerCancelled`. The\nauto-trigger values are reserved for system use. Anything else is\n`400 invalid-cancellation-reason`.\n\nChoosing the right value matters beyond bookkeeping: `BuyerCancelled` on a listing\nthat is still `Purchased` makes the backend **auto-relist** the item under the same\nseller. A seller-initiated cancel mislabelled as `BuyerCancelled` would spawn an\nunwanted replacement listing. After the listing is marked shipped no cancel\nrelists, whichever reason is used.\n","enum":["SellerCancelled","PharmacyInventoryQuantityAutoTrigger","AutomaticDrugExpired","BuyerCancelled","ReturnCompleted","ShipByDateExpired","DuplicateOfAcceptedCashOffer","AdminRefund"],"uniqueKey":"cancellationReason","typeLabel":"enum\u003cstring>"},"cancellationDescription":{"type":"string","uniqueKey":"cancellationDescription","typeLabel":"string"},"receivedDetails":{"type":"object","description":"What the buyer reported having received. `null` until confirm-receipt is called with a non-empty `receivedDetails`.","properties":{"gtin":{"type":"string","pattern":"^\\d{14}$","uniqueKey":"receivedDetails.gtin","typeLabel":"string"},"serialNumber":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"receivedDetails.serialNumber","typeLabel":"string"},"lotNumber":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"receivedDetails.lotNumber","typeLabel":"string"},"expirationDate":{"type":"string","format":"date","uniqueKey":"receivedDetails.expirationDate","typeLabel":"string\u003cdate>"},"nationalDrugCode":{"type":"string","uniqueKey":"receivedDetails.nationalDrugCode","typeLabel":"string"}},"uniqueKey":"receivedDetails","typeLabel":"object"},"receivedDetailsMatch":{"type":"boolean","description":"Server-computed comparison of `receivedDetails` against the\nseller-declared pedigree on the listing. `true` if every field the\nbuyer supplied agreed with the listing; `false` if any disagreed;\n`null` if no comparison was performed (no `receivedDetails`\nsupplied or `confirmationType` was `NotChecked` / `Skipped`).\nDrives whether the seller earns a positive rating bump on receipt.\n","uniqueKey":"receivedDetailsMatch","typeLabel":"boolean"},"receivedDetailsConfirmationType":{"type":"string","description":"How the buyer obtained the values in `receivedDetails`.","enum":["NotChecked","Skipped","Scanned","Manual","AutoFilled"],"uniqueKey":"receivedDetailsConfirmationType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"Pending","nationalDrugCode":"\u003cstring>","sellerPharmacyId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","deliveryStatus":"Unknown","paymentStatus":"NotInitiated","nationalDrugCodeNormalized":"\u003cstring>","labelerName":"\u003cstring>","packageName":"\u003cstring>","drugPackageForm":"\u003cstring>","drugPackageStrength":"\u003cstring>","quantityUnitQualifier":"\u003cstring>","price":"42.50","pricePerQuantity":"42.50","quantity":"1","inventoryQuantity":"1","expirationDate":"2023-12-25","lotNumber":"\u003cstring>","gtin":"\u003cstring>","serialNumber":"\u003cstring>","fullPackage":true,"originalPackage":true,"sealedPackage":true,"tornPackageLabel":true,"additionalPackageNotes":"\u003cstring>","branded":true,"generic":true,"sellerPharmacyName":"\u003cstring>","sellerPharmacyDBA":"\u003cstring>","sellerPharmacyNpi":"1234567890","sellerPharmacyPhone":"\u003cstring>","sellerPharmacyAddress":{"line1":"\u003cstring>","line2":"\u003cstring>","city":"\u003cstring>","stateAcronym":"\u003cstring>","postalCode":"\u003cstring>"},"buyerPharmacyName":"\u003cstring>","buyingPharmacyName":"\u003cstring>","buyingPharmacyDBA":"\u003cstring>","buyingPharmacyNpi":"1234567890","buyingPharmacyPhone":"\u003cstring>","buyingPharmacyAddress":{"line1":"\u003cstring>","line2":"\u003cstring>","city":"\u003cstring>","stateAcronym":"\u003cstring>","postalCode":"\u003cstring>"},"buyersMessage":"\u003cstring>","listingDate":"2023-11-07T05:31:56Z","soldDate":"2023-11-07T05:31:56Z","shippingConfirmDate":"2023-11-07T05:31:56Z","shippingReceivedConfirmDate":"2023-11-07T05:31:56Z","paymentConfirmedDate":"2023-11-07T05:31:56Z","shipByDate":"2023-12-25","cancelledDate":"2023-11-07T05:31:56Z","cancellationReason":"SellerCancelled","cancellationDescription":"\u003cstring>","receivedDetails":{"gtin":"\u003cstring>","serialNumber":"\u003cstring>","lotNumber":"\u003cstring>","expirationDate":"2023-12-25","nationalDrugCode":"\u003cstring>"},"receivedDetailsMatch":true,"receivedDetailsConfirmationType":"NotChecked"}}},"exampleType":"generated"}},"exampleType":"generated"},"c08c9b5e-0280-4b36-92b2-9822d2b34e02":{"description":"Resource does not exist or caller cannot see it.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","examples":["https://api.instockrx.com/problems/listing-not-available"],"isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","minimum":100,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","uniqueKey":"instance","typeLabel":"string"},"requestId":{"type":"string","uniqueKey":"requestId","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["field","code","message"],"properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.instockrx.com/problems/listing-not-available","title":"\u003cstring>","status":349,"detail":"\u003cstring>","instance":"\u003cstring>","requestId":"\u003cstring>","errors":[{"field":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b942b635-d1dc-4dad-aece-174e88e48b47":{"description":"Conflict. `problem.type` values: `listing-not-shipped`,\n`already-received`.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","examples":["https://api.instockrx.com/problems/listing-not-available"],"isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","minimum":100,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","uniqueKey":"instance","typeLabel":"string"},"requestId":{"type":"string","uniqueKey":"requestId","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["field","code","message"],"properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.instockrx.com/problems/listing-not-available","title":"\u003cstring>","status":349,"detail":"\u003cstring>","instance":"\u003cstring>","requestId":"\u003cstring>","errors":[{"field":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ddb539f0-9e8f-47d2-a613-ee56240fcb4c":{"ApiKey":{"type":"apiKey","name":"X-InStockRx-Api-Key","in":"header","description":"Scoped partner API key. Send the whole key, e.g. `ik_live_a1b2c3…`, on every request.","scopes":[],"schemeName":"ApiKey"}}},"servers":{"3c745605-736a-4471-bbcd-908508c3013a":{"url":"https://sandbox-api.instockrx.com","description":"Sandbox"},"3efbdca7-d8e5-4edb-9fb3-d74a49562593":{"url":"https://api.instockrx.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-InStockRx-Api-Key","in":"header","description":"Scoped partner API key. Send the whole key, e.g. `ik_live_a1b2c3…`, on every request.","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-InStockRx-Api-Key","type":"string","description":"Scoped partner API key. Send the whole key, e.g. `ik_live_a1b2c3…`, on every request.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-InStockRx-Api-Key"}],"title":"ApiKey"}]},"originalFileLocation":"spec/v2.json"},"subdomain":"localhost","siteName":"InStockRx API","title":"Buyer confirms receipt of a shipped listing - InStockRx API","navMaps":{"firstHrefInVersion":{"v2":{"href":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing","matchLevel":0},"v1":{"href":"/api-reference/cash-offers/creates-a-new-cash-offer","matchLevel":2}},"firstHrefInLanguage":{}},"originalFileLocation":"v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Scope: listings:write. Transitions the listing from ShippingConfirmed to ShippingReceivedConfirmed. Triggers payment release from the internal balance to the seller. The buyer MAY supply receivedDetails to record the DSCSA pedigree they actually received (GTIN / serial number / lot number / expiration date / NDC). These are stored separately from the seller\u0026#x27;s declared pedigree on the listing; the server compares and exposes receivedDetailsMatch on subsequent reads. A mismatch does not block receipt — it suppresses the seller\u0026#x27;s positive rating bump and is included in the marketplace_listing.received webhook payload. To receive every item in a bundle at once (with optional per-item DSCSA details), use POST /bundles/{id}/confirm-receipt instead.\">\u003cmeta data-mint-head name=\"application-name\" content=\"InStockRx API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Buyer confirms receipt of a shipped listing - InStockRx API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Scope: listings:write. Transitions the listing from ShippingConfirmed to ShippingReceivedConfirmed. Triggers payment release from the internal balance to the seller. The buyer MAY supply receivedDetails to record the DSCSA pedigree they actually received (GTIN / serial number / lot number / expiration date / NDC). These are stored separately from the seller\u0026#x27;s declared pedigree on the listing; the server compares and exposes receivedDetailsMatch on subsequent reads. A mismatch does not block receipt — it suppresses the seller\u0026#x27;s positive rating bump and is included in the marketplace_listing.received webhook payload. To receive every item in a bundle at once (with optional per-item DSCSA details), use POST /bundles/{id}/confirm-receipt instead.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"InStockRx API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Buyer confirms receipt of a shipped listing - InStockRx API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Scope: listings:write. Transitions the listing from ShippingConfirmed to ShippingReceivedConfirmed. Triggers payment release from the internal balance to the seller. The buyer MAY supply receivedDetails to record the DSCSA pedigree they actually received (GTIN / serial number / lot number / expiration date / NDC). These are stored separately from the seller\u0026#x27;s declared pedigree on the listing; the server compares and exposes receivedDetailsMatch on subsequent reads. A mismatch does not block receipt — it suppresses the seller\u0026#x27;s positive rating bump and is included in the marketplace_listing.received webhook payload. To receive every item in a bundle at once (with optional per-item DSCSA details), use POST /bundles/{id}/confirm-receipt instead.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"InStockRx API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EA6318\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"InStockRx API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"InStockRx API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing.md","siteName":"InStockRx API","nav":{"versions":[{"version":"v2","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v2/introduction"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","href":"/v2/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"Cash Offers","pages":[{"title":"Create a cash offer","openapi":"/spec/v2.json post /cash-offers","href":"/v2/api-reference/cash-offers/create-a-cash-offer"},{"title":"Get a cash offer","openapi":"/spec/v2.json get /cash-offers/{id}","href":"/v2/api-reference/cash-offers/get-a-cash-offer"},{"title":"Update a cash offer","openapi":"/spec/v2.json put /cash-offers/{id}","href":"/v2/api-reference/cash-offers/update-a-cash-offer"},{"title":"Accept a cash offer (seller)","openapi":"/spec/v2.json post /cash-offers/{id}/accept","href":"/v2/api-reference/cash-offers/accept-a-cash-offer-seller"},{"title":"Decline a cash offer (seller)","openapi":"/spec/v2.json post /cash-offers/{id}/decline","href":"/v2/api-reference/cash-offers/decline-a-cash-offer-seller"},{"title":"Cancel a cash offer (buyer)","openapi":"/spec/v2.json post /cash-offers/{id}/cancel","href":"/v2/api-reference/cash-offers/cancel-a-cash-offer-buyer"},{"title":"Search cash offers","openapi":"/spec/v2.json post /cash-offers/search","href":"/v2/api-reference/cash-offers/search-cash-offers"}]},{"group":"Marketplace Listings","pages":[{"title":"Create a marketplace listing","openapi":"/spec/v2.json post /marketplace-listings","href":"/v2/api-reference/marketplace-listings/create-a-marketplace-listing"},{"title":"Get a marketplace listing","openapi":"/spec/v2.json get /marketplace-listings/{id}","href":"/v2/api-reference/marketplace-listings/get-a-marketplace-listing"},{"title":"Update a marketplace listing","openapi":"/spec/v2.json put /marketplace-listings/{id}","href":"/v2/api-reference/marketplace-listings/update-a-marketplace-listing"},{"title":"Delete a marketplace listing","openapi":"/spec/v2.json delete /marketplace-listings/{id}","href":"/v2/api-reference/marketplace-listings/delete-a-marketplace-listing"},{"title":"Cancel a marketplace listing","openapi":"/spec/v2.json post /marketplace-listings/{id}/cancel","href":"/v2/api-reference/marketplace-listings/cancel-a-marketplace-listing"},{"title":"Search marketplace listings","openapi":"/spec/v2.json post /marketplace-listings/search","href":"/v2/api-reference/marketplace-listings/search-marketplace-listings"},{"title":"Quote shipping rates for a marketplace listing","openapi":"/spec/v2.json post /marketplace-listings/{id}/shipping-rates","href":"/v2/api-reference/marketplace-listings/quote-shipping-rates-for-a-marketplace-listing"},{"title":"Buyer purchases a single marketplace listing","openapi":"/spec/v2.json post /marketplace-listings/{id}/purchase","href":"/v2/api-reference/marketplace-listings/buyer-purchases-a-single-marketplace-listing"},{"title":"Buyer purchases multiple marketplace listings (partial-success batch)","openapi":"/spec/v2.json post /marketplace-listings/checkout","href":"/v2/api-reference/marketplace-listings/buyer-purchases-multiple-marketplace-listings-partial-success-batch"},{"title":"Seller confirms shipment of a purchased listing","description":"**Scope:** `listings:write`.\n\nTransitions the listing from `Purchased` to `ShippingConfirmed`. DSCSA\npedigree fields are required: `gtin`, `serialNumber`, `lotNumber`,\n`expirationDate`. If the bundle is cold-chain, the ship date must fall\non Mon–Thu (returns `409 cold-chain-ship-day` otherwise). The bundle\ntransitions to `Shipped` when its first listing ships.\n\nInStockRx caps how many of a seller's bundles may sit in `Shipped`\nstatus awaiting buyer receipt (an admin-configured limit). If shipping\nthis listing would carry the seller past that cap, the call is rejected\nwith `409 shipped-bundle-limit-exceeded`; the seller must wait for\nin-flight bundles to be received before shipping more. The cap is not\nevaluated for a listing whose bundle is already `Shipped` (adding items\nto an already-shipped bundle does not increase the count).\n","openapi":"/spec/v2.json post /marketplace-listings/{id}/ship","href":"/v2/api-reference/marketplace-listings/seller-confirms-shipment-of-a-purchased-listing"},{"title":"Buyer confirms receipt of a shipped listing","openapi":"/spec/v2.json post /marketplace-listings/{id}/confirm-receipt","href":"/v2/api-reference/marketplace-listings/buyer-confirms-receipt-of-a-shipped-listing"},{"title":"Buyer reports a shipped listing as not received / damaged in transit","description":"**Scope:** `listings:write`.\n\nTransitions the listing to `ShippingReceivedNotConfirmed`. Distinct\nfrom a return: this path is for packages that **did not arrive** or\n**arrived damaged/warm in transit**, NOT for items that arrived intact\nbut the buyer wants to return. For the latter, use `POST /returns`.\n\nSide effects: triggers an admin alert; if the buyer marks\n`damagedOrWarm`, the drug is added to the blocked-drug list to prevent\nre-listing the same lot.\n","openapi":"/spec/v2.json post /marketplace-listings/{id}/report-not-received","href":"/v2/api-reference/marketplace-listings/buyer-reports-a-shipped-listing-as-not-received-damaged-in-transit"}]},{"group":"Bundles","pages":[{"title":"List bundles (optionally filtered by status / counterparty)","openapi":"/spec/v2.json get /bundles","href":"/v2/api-reference/bundles/list-bundles-optionally-filtered-by-status-counterparty"},{"title":"Get a bundle","openapi":"/spec/v2.json get /bundles/{id}","href":"/v2/api-reference/bundles/get-a-bundle"},{"title":"Buyer confirms receipt of every item in a bundle","openapi":"/spec/v2.json post /bundles/{id}/confirm-receipt","href":"/v2/api-reference/bundles/buyer-confirms-receipt-of-every-item-in-a-bundle"}]},{"group":"Payment Methods","pages":[{"title":"List the buyer's stored payment methods","openapi":"/spec/v2.json get /payment-methods","href":"/v2/api-reference/payment-methods/list-the-buyers-stored-payment-methods"}]},{"group":"Draft Listings","pages":[{"title":"Create a draft marketplace listing","openapi":"/spec/v2.json post /draft-listings","href":"/v2/api-reference/draft-listings/create-a-draft-marketplace-listing"},{"title":"Get a draft listing","openapi":"/spec/v2.json get /draft-listings/{id}","href":"/v2/api-reference/draft-listings/get-a-draft-listing"},{"title":"Update a draft listing","openapi":"/spec/v2.json put /draft-listings/{id}","href":"/v2/api-reference/draft-listings/update-a-draft-listing"},{"title":"Delete a draft listing","openapi":"/spec/v2.json delete /draft-listings/{id}","href":"/v2/api-reference/draft-listings/delete-a-draft-listing"},{"title":"Search draft listings","openapi":"/spec/v2.json post /draft-listings/search","href":"/v2/api-reference/draft-listings/search-draft-listings"}]},{"group":"Returns","pages":[{"title":"Initiate a return (buyer)","openapi":"/spec/v2.json post /returns","href":"/v2/api-reference/returns/initiate-a-return-buyer"},{"title":"Get a return","openapi":"/spec/v2.json get /returns/{id}","href":"/v2/api-reference/returns/get-a-return"},{"title":"Buyer marks the return as shipped","openapi":"/spec/v2.json post /returns/{id}/buyer-ship","href":"/v2/api-reference/returns/buyer-marks-the-return-as-shipped"},{"title":"Seller confirms (or denies) receipt of the returned items","openapi":"/spec/v2.json post /returns/{id}/seller-confirm-receipt","href":"/v2/api-reference/returns/seller-confirms-or-denies-receipt-of-the-returned-items"},{"title":"Download a return-related document","openapi":"/spec/v2.json get /returns/{id}/documents/{documentType}","href":"/v2/api-reference/returns/download-a-return-related-document"},{"title":"Search returns","openapi":"/spec/v2.json post /returns/search","href":"/v2/api-reference/returns/search-returns"},{"title":"Record return shipping details","openapi":"/spec/v2.json post /returns/{id}/ship-details","href":"/v2/api-reference/returns/record-return-shipping-details"}]},{"group":"Notifications","pages":[{"title":"List notifications for the credential's user","openapi":"/spec/v2.json get /notifications","href":"/v2/api-reference/notifications/list-notifications-for-the-credentials-user"},{"title":"Mark read/unread/dismissed","openapi":"/spec/v2.json patch /notifications/{id}","href":"/v2/api-reference/notifications/mark-readunreaddismissed"},{"title":"Dismiss many notifications at once","openapi":"/spec/v2.json post /notifications/bulk-dismiss","href":"/v2/api-reference/notifications/dismiss-many-notifications-at-once"},{"title":"Get notification preferences for a pharmacy","openapi":"/spec/v2.json get /pharmacies/{pharmacyId}/notification-preferences","href":"/v2/api-reference/notifications/get-notification-preferences-for-a-pharmacy"},{"title":"Update notification preferences","openapi":"/spec/v2.json put /pharmacies/{pharmacyId}/notification-preferences","href":"/v2/api-reference/notifications/update-notification-preferences"}]},{"group":"Evergreen Cash Offer Preferences","pages":[{"title":"Create an evergreen cash-offer preference","openapi":"/spec/v2.json post /evergreen-cash-offer-preferences","href":"/v2/api-reference/evergreen-cash-offer-preferences/create-an-evergreen-cash-offer-preference"},{"title":"Get an evergreen preference","openapi":"/spec/v2.json get /evergreen-cash-offer-preferences/{id}","href":"/v2/api-reference/evergreen-cash-offer-preferences/get-an-evergreen-preference"},{"title":"Update an evergreen preference","openapi":"/spec/v2.json put /evergreen-cash-offer-preferences/{id}","href":"/v2/api-reference/evergreen-cash-offer-preferences/update-an-evergreen-preference"},{"title":"Cancel pending cash offers spawned by this preference","openapi":"/spec/v2.json post /evergreen-cash-offer-preferences/{id}/cancel-pending","href":"/v2/api-reference/evergreen-cash-offer-preferences/cancel-pending-cash-offers-spawned-by-this-preference"},{"title":"Search evergreen preferences","openapi":"/spec/v2.json post /evergreen-cash-offer-preferences/search","href":"/v2/api-reference/evergreen-cash-offer-preferences/search-evergreen-preferences"}]},{"group":"Drug Packages","pages":[{"title":"Get drug-package metadata by NDC","openapi":"/spec/v2.json get /drug-packages/{nationalDrugCode}","href":"/v2/api-reference/drug-packages/get-drug-package-metadata-by-ndc"},{"title":"Search drug packages","openapi":"/spec/v2.json post /drug-packages/search","href":"/v2/api-reference/drug-packages/search-drug-packages"},{"title":"Drug-name autocomplete","openapi":"/spec/v2.json get /drug-packages/autocomplete","href":"/v2/api-reference/drug-packages/drug-name-autocomplete"}]},{"group":"Pharmacies","pages":[{"title":"Search pharmacies in the credential's group(s)","openapi":"/spec/v2.json get /pharmacies","href":"/v2/api-reference/pharmacies/search-pharmacies-in-the-credentials-groups"},{"title":"Pre-flight check for whether a pharmacy can purchase","openapi":"/spec/v2.json get /pharmacies/{pharmacyId}/purchase-readiness","href":"/v2/api-reference/pharmacies/pre-flight-check-for-whether-a-pharmacy-can-purchase"}]},{"group":"Utility","pages":[{"title":"Retrieve transaction statistics for an NDC","openapi":"/spec/v2.json get /ndc-transaction-statistics","href":"/v2/api-reference/utility/retrieve-transaction-statistics-for-an-ndc"},{"title":"Read the current NPI roster for the credential's group","openapi":"/spec/v2.json get /groups/npi-list","href":"/v2/api-reference/utility/read-the-current-npi-roster-for-the-credentials-group"},{"title":"Replace the NPI roster for the credential's group","openapi":"/spec/v2.json put /groups/npi-list","href":"/v2/api-reference/utility/replace-the-npi-roster-for-the-credentials-group"},{"title":"Read the signup link for the credential's group","openapi":"/spec/v2.json get /groups/signup-link","href":"/v2/api-reference/utility/read-the-signup-link-for-the-credentials-group"}]},{"group":"Webhook Endpoints","pages":[{"title":"List webhook endpoints","openapi":"/spec/v2.json get /webhook-endpoints","href":"/v2/api-reference/webhook-endpoints/list-webhook-endpoints"},{"title":"Subscribe to events","openapi":"/spec/v2.json post /webhook-endpoints","href":"/v2/api-reference/webhook-endpoints/subscribe-to-events"},{"title":"Get a webhook endpoint","openapi":"/spec/v2.json get /webhook-endpoints/{id}","href":"/v2/api-reference/webhook-endpoints/get-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"/spec/v2.json put /webhook-endpoints/{id}","href":"/v2/api-reference/webhook-endpoints/update-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","openapi":"/spec/v2.json delete /webhook-endpoints/{id}","href":"/v2/api-reference/webhook-endpoints/delete-a-webhook-endpoint"},{"title":"Rotate the signing secret","openapi":"/spec/v2.json post /webhook-endpoints/{id}/rotate-secret","href":"/v2/api-reference/webhook-endpoints/rotate-the-signing-secret"},{"title":"Replay events to this endpoint","openapi":"/spec/v2.json post /webhook-endpoints/{id}/replay","href":"/v2/api-reference/webhook-endpoints/replay-events-to-this-endpoint"}]},{"group":"Draft listings","pages":[{"title":"Finalize a draft listing","openapi":"/spec/v2.json post /draft-listings/{id}/finalize","href":"/v2/api-reference/draft-listings/finalize-a-draft-listing"}]},{"group":"Marketplace listings","pages":[{"title":"Attach photos to a listing","openapi":"/spec/v2.json post /marketplace-listings/{id}/photos","href":"/v2/api-reference/marketplace-listings/attach-photos-to-a-listing"},{"title":"Get the seller's contact details","openapi":"/spec/v2.json get /marketplace-listings/{id}/seller-contact","href":"/v2/api-reference/marketplace-listings/get-the-sellers-contact-details"}]},{"group":"API Reference","pages":[{"title":"A marketplace listing was created","openapi":"/spec/v2.json webhook marketplace_listing.created","href":"/v2/api-reference/a-marketplace-listing-was-created"},{"title":"A marketplace listing was updated price quantity status…","openapi":"/spec/v2.json webhook marketplace_listing.updated","href":"/v2/api-reference/a-marketplace-listing-was-updated-price-quantity-status…"},{"title":"A marketplace listing was purchased","openapi":"/spec/v2.json webhook marketplace_listing.purchased","href":"/v2/api-reference/a-marketplace-listing-was-purchased"},{"title":"A marketplace listing was cancelled","openapi":"/spec/v2.json webhook marketplace_listing.cancelled","href":"/v2/api-reference/a-marketplace-listing-was-cancelled"},{"title":"Seller confirmed shipment of a purchased listing","openapi":"/spec/v2.json webhook marketplace_listing.shipped","href":"/v2/api-reference/seller-confirmed-shipment-of-a-purchased-listing"},{"title":"Buyer confirmed receipt of a shipped listing","openapi":"/spec/v2.json webhook marketplace_listing.received","href":"/v2/api-reference/buyer-confirmed-receipt-of-a-shipped-listing"},{"title":"Buyer reported a shipped listing as not received damaged in transit","openapi":"/spec/v2.json webhook marketplace_listing.not_received","href":"/v2/api-reference/buyer-reported-a-shipped-listing-as-not-received-damaged-in-transit"},{"title":"A bundle was created on a buyer purchase","openapi":"/spec/v2.json webhook bundle.created","href":"/v2/api-reference/a-bundle-was-created-on-a-buyer-purchase"},{"title":"A bundle was shipped first items shipping was confirmed","openapi":"/spec/v2.json webhook bundle.shipped","href":"/v2/api-reference/a-bundle-was-shipped-first-items-shipping-was-confirmed"},{"title":"Every item in a bundle has been received","openapi":"/spec/v2.json webhook bundle.received","href":"/v2/api-reference/every-item-in-a-bundle-has-been-received"},{"title":"A cash offer was accepted by a seller","openapi":"/spec/v2.json webhook cash_offer.accepted","href":"/v2/api-reference/a-cash-offer-was-accepted-by-a-seller"},{"title":"A cash offer was declined","openapi":"/spec/v2.json webhook cash_offer.declined","href":"/v2/api-reference/a-cash-offer-was-declined"},{"title":"A cash offer was cancelled by the buyer","openapi":"/spec/v2.json webhook cash_offer.cancelled","href":"/v2/api-reference/a-cash-offer-was-cancelled-by-the-buyer"},{"title":"A return was initiated","openapi":"/spec/v2.json webhook return.requested","href":"/v2/api-reference/a-return-was-initiated"},{"title":"A return was shipped back to the seller","openapi":"/spec/v2.json webhook return.shipped","href":"/v2/api-reference/a-return-was-shipped-back-to-the-seller"},{"title":"A return completed seller confirmed receipt","openapi":"/spec/v2.json webhook return.completed","href":"/v2/api-reference/a-return-completed-seller-confirmed-receipt"}]}]}]}]},{"version":"v1","pages":[{"title":"v1","href":"/api-reference/cash-offers/creates-a-new-cash-offer"}]}]},"basePath":"","title":"Buyer confirms receipt of a shipped listing - InStockRx API","buildId":"b8b92e8dc392","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Be5oznUz.js","snippetPresets-CfxpbzzD.js","utils-WbBega9h.js","style-to-object-BY3JEAdk.js","utils-kDtb4zyI.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DkWLdYrp.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BaiIuF4F.js","_Uint8Array-C3lkX7eq.js","isObject-FP1Yky1u.js","ApiExamples-Dmuj6HvB.js","usePlaygroundInputsStore-1rKiMY8d.js","shallow-B7__N5wH.js","isEqual-COF04FiJ.js","CodeSnippets-BsHoAxkP.js","CodeSnippet-D-mUaQGT.js","use-playground-group-access-BE_fLSpn.js","Page-BzZxJmpC.js","api-description-markdown-BZswaBs0.js","DynamicMarkdown-CHHGzH8g.js","SectionHeading-CTqU8fbJ.js","MethodPill-B2KftbhX.js","getPastedJson-xRRRYgC0.js","Check2Icon-C25sO8L1.js","axios-CsQoIw0U.js","Markdown-BAXIOcCc.js","AssistantPageLink-BskiyoKM.js","dist-BRf2-mCa.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}