Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.
Body
application/json
id
string
required
Example:
"evt_01HX7Y…"
type
string
required
createdAt
string<date-time>
required
apiVersion
string
required
Allowed value: "v2"
data
object
required
Shape aligned with Inview.DTO.ReadMarketplaceListingReturnReadMarketplaceListingReturn
(per the internal swagger; the returns C# source is not in the
2026-05-29 backend dump). Field names match V2 conventions; the
backend's returnId is exposed as id here for consistency with
every other V2 resource.
Show child attributes
previousAttributes
object
Response
200
Acknowledged
{"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/a-return-was-initiated","slug":"/v2/api-reference/a-return-was-initiated","pageMetadata":{"openapi":"/spec/v2.json webhook return.requested","description":"","href":"/v2/api-reference/a-return-was-initiated","title":"A return was initiated"},"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 webhook return.requested","description":"","href":"/v2/api-reference/a-return-was-initiated","title":"A return was initiated"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"A return was initiated","requestBody":"71ca9880-9c5d-4a80-81a0-5a35f83e8756","responses":{"200":"e7c40b4a-ffa3-41d8-a5ed-34644ffe5798"},"method":"post","type":"webhook","servers":["3c745605-736a-4471-bbcd-908508c3013a","3efbdca7-d8e5-4edb-9fb3-d74a49562593"],"security":["bd3cb9e2-7ca5-4b41-8e0e-978e0a97a264"],"path":"return.requested","baseUrlOptions":["https://sandbox-api.instockrx.com","https://api.instockrx.com"],"title":"A return was initiated","description":"","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExamples":[{"language":"json","filename":"Example","code":"{\n \"id\": \"evt_01HX7Y…\",\n \"type\": \"\u003cstring>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\",\n \"apiVersion\": \"v2\",\n \"data\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"buyingPharmacyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sellingPharmacyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"items\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"marketplaceListingId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"listingCode\": \"\u003cstring>\",\n \"drugName\": \"\u003cstring>\",\n \"nationalDrugCode\": \"\u003cstring>\",\n \"price\": \"42.50\",\n \"quantity\": \"1\",\n \"returnReason\": \"\u003cstring>\",\n \"restockingFeeAmount\": \"42.50\",\n \"restockingFeeAmountToBuyer\": \"42.50\",\n \"restockingFeeAmountToSeller\": \"42.50\",\n \"achFeeAmount\": \"42.50\",\n \"achFeeAmountToBuyer\": \"42.50\",\n \"achFeeAmountToSeller\": \"42.50\",\n \"originalShippingFeeAmount\": \"42.50\",\n \"returnGtin\": \"\u003cstring>\",\n \"returnSerialNumber\": \"\u003cstring>\",\n \"returnLotNumber\": \"\u003cstring>\",\n \"returnPackageDescription\": \"\u003cstring>\",\n \"returnExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"returnFullPackage\": true,\n \"returnSealedPackage\": true,\n \"returnOriginalPackage\": true,\n \"returnTornPackageLabel\": true\n }\n ],\n \"requestedDate\": \"2023-11-07T05:31:56Z\",\n \"approvedDate\": \"2023-11-07T05:31:56Z\",\n \"notApprovedDate\": \"2023-11-07T05:31:56Z\",\n \"shippedDate\": \"2023-11-07T05:31:56Z\",\n \"receivedDate\": \"2023-11-07T05:31:56Z\",\n \"dateShippingLabelCreated\": \"2023-11-07T05:31:56Z\",\n \"buyingPharmacyName\": \"\u003cstring>\",\n \"buyingPharmacyNpi\": \"1234567890\",\n \"sellingPharmacyName\": \"\u003cstring>\",\n \"sellingPharmacyNpi\": \"1234567890\",\n \"carrier\": \"UPS\",\n \"trackingCode\": \"\u003cstring>\",\n \"shippingLabelUrl\": \"\u003cstring>\",\n \"originalShippingFeeAmount\": \"42.50\",\n \"returnShippingFeeAmount\": \"42.50\",\n \"refundAmountToBuyer\": \"42.50\",\n \"chargeAmountFromSeller\": \"42.50\",\n \"adminNote\": \"\u003cstring>\"\n },\n \"previousAttributes\": {}\n}"}],"requestExampleType":"webhook","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["data","id","type","createdAt","apiVersion"],"properties":{"id":{"type":"string","examples":["evt_01HX7Y…"],"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"apiVersion":{"type":"string","const":"v2","isRequired":true,"uniqueKey":"apiVersion","typeLabel":"string"},"data":{"type":"object","description":"Shape aligned with `Inview.DTO.ReadMarketplaceListingReturnReadMarketplaceListingReturn`\n(per the internal swagger; the returns C# source is not in the\n2026-05-29 backend dump). Field names match V2 conventions; the\nbackend's `returnId` is exposed as `id` here for consistency with\nevery other V2 resource.\n","required":["id","status","buyingPharmacyId","sellingPharmacyId","items"],"properties":{"id":{"type":"string","format":"uuid","description":"Backend property name: `returnId`.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"Lifecycle of a marketplace listing return. These are the names the API accepts on `status` filters and returns on reads; any other value is refused with `400`.\n\n- `Requested` — the buyer has asked; InStockRx has not decided\n- `Approved` — approved; the buyer must ship the goods back\n- `NotApproved` — InStockRx rejected the request\n- `Shipped` — the buyer has shipped it back\n- `NotReceived` — the seller reported it as not received\n- `AwaitingRefundApproval` — receipt confirmed (or auto-received). Every settlement leg except the buyer's bank refund has started; that refund waits on an InStockRx approval\n- `Completed` — the refund was approved: the seller's payment is reversed and the buyer refunded\n- `RefundRejected` — the refund was rejected after review. The legs started at receipt are unwound, the sale stands, and the buyer is not refunded\n- `ClosedBuyerKeptItem` — approved, but the buyer kept the goods. Closes in the seller's favour with no reversal\n\nA return is still **open** at `Requested`, `Approved`, `Shipped`, `NotReceived` and `AwaitingRefundApproval`. The other four are terminal.\n","enum":["Requested","Approved","NotApproved","Shipped","NotReceived","Completed","ClosedBuyerKeptItem","AwaitingRefundApproval","RefundRejected"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"buyingPharmacyId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.buyingPharmacyId","typeLabel":"string\u003cuuid>"},"sellingPharmacyId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.sellingPharmacyId","typeLabel":"string\u003cuuid>"},"items":{"type":"array","items":{"type":"object","description":"One listing inside a Return, matching `ReadExternalV2ReturnItem`.\n\nThe fee fields come in pairs: `restockingFee*` and `achFee*` each carry the\namount, who is responsible for it, and the split actually applied to each side.\nA `*ToBuyer` and `*ToSeller` pair can both be non-zero when the responsibility is\n`InstockRx`, since the platform's share is removed from each side rather than\ncharged to one.\n","required":["id","marketplaceListingId"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"marketplaceListingId":{"type":"string","format":"uuid","description":"The listing being returned.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].marketplaceListingId","typeLabel":"string\u003cuuid>"},"listingCode":{"type":"string","description":"Human-readable listing reference.","uniqueKey":"data.\\items.items.[INDEX].listingCode","typeLabel":"string"},"drugName":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].drugName","typeLabel":"string"},"nationalDrugCode":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].nationalDrugCode","typeLabel":"string"},"price":{"type":"string","description":"Unit price of the returned listing.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].price","typeLabel":"string"},"quantity":{"type":"string","description":"Quantity being returned.","pattern":"^\\d+(\\.\\d{1,6})?$","example":"1","uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"string"},"returnReason":{"type":"string","description":"Free text supplied by the buyer.","uniqueKey":"data.\\items.items.[INDEX].returnReason","typeLabel":"string"},"restockingFeeResponsibility":{"type":"string","description":"Who bears the restocking fee.","enum":["InstockRx","Buyer","Seller"],"uniqueKey":"data.\\items.items.[INDEX].restockingFeeResponsibility","typeLabel":"enum\u003cstring>"},"restockingFeeAmount":{"type":"string","description":"The restocking fee charged on this item.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].restockingFeeAmount","typeLabel":"string"},"restockingFeeAmountToBuyer":{"type":"string","description":"Share of the restocking fee applied to the buyer.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].restockingFeeAmountToBuyer","typeLabel":"string"},"restockingFeeAmountToSeller":{"type":"string","description":"Share of the restocking fee applied to the seller.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].restockingFeeAmountToSeller","typeLabel":"string"},"achFeeResponsibility":{"type":"string","description":"Who bears the ACH transfer fee.","enum":["InstockRx","Buyer","Seller"],"uniqueKey":"data.\\items.items.[INDEX].achFeeResponsibility","typeLabel":"enum\u003cstring>"},"achFeeAmount":{"type":"string","description":"The ACH fee charged on this item.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].achFeeAmount","typeLabel":"string"},"achFeeAmountToBuyer":{"type":"string","description":"Share of the ACH fee applied to the buyer.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].achFeeAmountToBuyer","typeLabel":"string"},"achFeeAmountToSeller":{"type":"string","description":"Share of the ACH fee applied to the seller.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].achFeeAmountToSeller","typeLabel":"string"},"originalShippingFeeAmount":{"type":"string","description":"Shipping paid on the original sale.","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"42.50","uniqueKey":"data.\\items.items.[INDEX].originalShippingFeeAmount","typeLabel":"string"},"returnGtin":{"type":"string","description":"GTIN of the goods actually sent back, which may differ from the original listing.","uniqueKey":"data.\\items.items.[INDEX].returnGtin","typeLabel":"string"},"returnSerialNumber":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].returnSerialNumber","typeLabel":"string"},"returnLotNumber":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].returnLotNumber","typeLabel":"string"},"returnPackageDescription":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].returnPackageDescription","typeLabel":"string"},"returnExpirationDate":{"type":"string","format":"date-time","description":"Expiration date of the returned goods.","uniqueKey":"data.\\items.items.[INDEX].returnExpirationDate","typeLabel":"string\u003cdate-time>"},"returnFullPackage":{"type":"boolean","uniqueKey":"data.\\items.items.[INDEX].returnFullPackage","typeLabel":"boolean"},"returnSealedPackage":{"type":"boolean","uniqueKey":"data.\\items.items.[INDEX].returnSealedPackage","typeLabel":"boolean"},"returnOriginalPackage":{"type":"boolean","uniqueKey":"data.\\items.items.[INDEX].returnOriginalPackage","typeLabel":"boolean"},"returnTornPackageLabel":{"type":"boolean","uniqueKey":"data.\\items.items.[INDEX].returnTornPackageLabel","typeLabel":"boolean"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.\\items","typeLabel":"object[]"},"requestedDate":{"type":"string","format":"date-time","description":"Set on buyer initiation.","uniqueKey":"data.requestedDate","typeLabel":"string\u003cdate-time>"},"approvedDate":{"type":"string","format":"date-time","description":"Set when admin approves.","uniqueKey":"data.approvedDate","typeLabel":"string\u003cdate-time>"},"notApprovedDate":{"type":"string","format":"date-time","description":"Set when admin rejects.","uniqueKey":"data.notApprovedDate","typeLabel":"string\u003cdate-time>"},"shippedDate":{"type":"string","format":"date-time","description":"Set when buyer marks shipped back to seller.","uniqueKey":"data.shippedDate","typeLabel":"string\u003cdate-time>"},"receivedDate":{"type":"string","format":"date-time","description":"Set when seller confirms receipt (or non-receipt).","uniqueKey":"data.receivedDate","typeLabel":"string\u003cdate-time>"},"dateShippingLabelCreated":{"type":"string","format":"date-time","description":"Set if admin purchased an EasyPost shipping label for the return.","uniqueKey":"data.dateShippingLabelCreated","typeLabel":"string\u003cdate-time>"},"buyingPharmacyName":{"type":"string","uniqueKey":"data.buyingPharmacyName","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":"data.buyingPharmacyNpi","typeLabel":"string"},"sellingPharmacyName":{"type":"string","uniqueKey":"data.sellingPharmacyName","typeLabel":"string"},"sellingPharmacyNpi":{"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":"data.sellingPharmacyNpi","typeLabel":"string"},"carrier":{"type":"string","examples":["UPS","FedEx","USPS"],"description":"Backend property name: `shippingCarrier`.","uniqueKey":"data.carrier","typeLabel":"string"},"trackingCode":{"type":"string","uniqueKey":"data.trackingCode","typeLabel":"string"},"shippingLabelUrl":{"type":"string","format":"uri","uniqueKey":"data.shippingLabelUrl","typeLabel":"string\u003curi>"},"returnDeliveryStatus":{"type":"string","enum":["Unknown","PreTransit","InTransit","OutForDelivery","Delivered","AvailableForPickup","ReturnToSender","Failure","Cancelled","Error"],"uniqueKey":"data.returnDeliveryStatus","typeLabel":"enum\u003cstring>"},"shippingFeeResponsibility":{"type":"string","description":"Who pays the return-shipping fee.\n\n- `InstockRx` — InStockRx absorbs the fee\n- `Buyer` — charged to the returning pharmacy\n- `Seller` — charged to the selling pharmacy\n\nThere is no `Split`: an earlier draft of this document listed one, inferred rather\nthan confirmed. The fee goes to exactly one party.\n\nConfirmed against `Inview.Domain/Enum/ReturnFeeResponsibility.cs`; the live\ndocument never emits it, so the drift check cannot.\n","enum":["InstockRx","Buyer","Seller"],"uniqueKey":"data.shippingFeeResponsibility","typeLabel":"enum\u003cstring>"},"originalShippingFeeAmount":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"Shipping cost on the original buyer→seller leg.","examples":["42.50","0.01","1200"],"uniqueKey":"data.originalShippingFeeAmount","typeLabel":"string"},"returnShippingFeeAmount":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"Shipping cost on the return leg.","examples":["42.50","0.01","1200"],"uniqueKey":"data.returnShippingFeeAmount","typeLabel":"string"},"refundAmountToBuyer":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"Amount refunded to the buyer on completion.","examples":["42.50","0.01","1200"],"uniqueKey":"data.refundAmountToBuyer","typeLabel":"string"},"chargeAmountFromSeller":{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","description":"Amount deducted from the seller's account on completion.","examples":["42.50","0.01","1200"],"uniqueKey":"data.chargeAmountFromSeller","typeLabel":"string"},"adminNote":{"type":"string","description":"Admin commentary; required on rejection.","uniqueKey":"data.adminNote","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"previousAttributes":{"type":"object","additionalProperties":true,"uniqueKey":"previousAttributes","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"evt_01HX7Y…","type":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","apiVersion":"v2","data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","buyingPharmacyId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","sellingPharmacyId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","items":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","marketplaceListingId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","listingCode":"\u003cstring>","drugName":"\u003cstring>","nationalDrugCode":"\u003cstring>","price":"42.50","quantity":"1","returnReason":"\u003cstring>","restockingFeeAmount":"42.50","restockingFeeAmountToBuyer":"42.50","restockingFeeAmountToSeller":"42.50","achFeeAmount":"42.50","achFeeAmountToBuyer":"42.50","achFeeAmountToSeller":"42.50","originalShippingFeeAmount":"42.50","returnGtin":"\u003cstring>","returnSerialNumber":"\u003cstring>","returnLotNumber":"\u003cstring>","returnPackageDescription":"\u003cstring>","returnExpirationDate":"2023-11-07T05:31:56Z","returnFullPackage":true,"returnSealedPackage":true,"returnOriginalPackage":true,"returnTornPackageLabel":true}],"requestedDate":"2023-11-07T05:31:56Z","approvedDate":"2023-11-07T05:31:56Z","notApprovedDate":"2023-11-07T05:31:56Z","shippedDate":"2023-11-07T05:31:56Z","receivedDate":"2023-11-07T05:31:56Z","dateShippingLabelCreated":"2023-11-07T05:31:56Z","buyingPharmacyName":"\u003cstring>","buyingPharmacyNpi":"1234567890","sellingPharmacyName":"\u003cstring>","sellingPharmacyNpi":"1234567890","carrier":"UPS","trackingCode":"\u003cstring>","shippingLabelUrl":"\u003cstring>","originalShippingFeeAmount":"42.50","returnShippingFeeAmount":"42.50","refundAmountToBuyer":"42.50","chargeAmountFromSeller":"42.50","adminNote":"\u003cstring>"},"previousAttributes":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e7c40b4a-ffa3-41d8-a5ed-34644ffe5798":{"description":"Acknowledged","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"bd3cb9e2-7ca5-4b41-8e0e-978e0a97a264":{"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":"A return was initiated - InStockRx API","navMaps":{"firstHrefInVersion":{"v2":{"href":"/v2/api-reference/a-return-was-initiated","matchLevel":0},"v1":{"href":"/api-reference/cash-offers/creates-a-new-cash-offer","matchLevel":2}},"firstHrefInLanguage":{}},"originalFileLocation":"v2/api-reference/a-return-was-initiated.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=\"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=\"A return was initiated - InStockRx API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"InStockRx API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./v2/api-reference/a-return-was-initiated\">\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=\"A return was initiated - InStockRx API\">\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/a-return-was-initiated\">\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/a-return-was-initiated.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/a-return-was-initiated.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","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","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":"A return was initiated - 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"]}