GET
Get a return

Authorizations

X-InStockRx-Api-Key
string
header
required

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

Headers

X-Pharmacy-Id
string<uuid>

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

Path Parameters

id
string<uuid>
required

Response

OK

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.

id
string<uuid>
required

Backend property name: returnId.

status
enum<string>
required

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.

  • Requested — the buyer has asked; InStockRx has not decided
  • Approved — approved; the buyer must ship the goods back
  • NotApproved — InStockRx rejected the request
  • Shipped — the buyer has shipped it back
  • NotReceived — the seller reported it as not received
  • AwaitingRefundApproval — receipt confirmed (or auto-received). Every settlement leg except the buyer's bank refund has started; that refund waits on an InStockRx approval
  • Completed — the refund was approved: the seller's payment is reversed and the buyer refunded
  • RefundRejected — the refund was rejected after review. The legs started at receipt are unwound, the sale stands, and the buyer is not refunded
  • ClosedBuyerKeptItem — approved, but the buyer kept the goods. Closes in the seller's favour with no reversal

A return is still open at Requested, Approved, Shipped, NotReceived and AwaitingRefundApproval. The other four are terminal.

Available options:
Requested,
Approved,
NotApproved,
Shipped,
NotReceived,
Completed,
ClosedBuyerKeptItem,
AwaitingRefundApproval,
RefundRejected
buyingPharmacyId
string<uuid>
required
sellingPharmacyId
string<uuid>
required
items
object[]
required
requestedDate
string<date-time>

Set on buyer initiation.

approvedDate
string<date-time>

Set when admin approves.

notApprovedDate
string<date-time>

Set when admin rejects.

shippedDate
string<date-time>

Set when buyer marks shipped back to seller.

receivedDate
string<date-time>

Set when seller confirms receipt (or non-receipt).

dateShippingLabelCreated
string<date-time>

Set if admin purchased an EasyPost shipping label for the return.

buyingPharmacyName
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"

sellingPharmacyName
string
sellingPharmacyNpi
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"

carrier
string

Backend property name: shippingCarrier.

Examples:

"UPS"

"FedEx"

"USPS"

trackingCode
string
shippingLabelUrl
string<uri>
returnDeliveryStatus
enum<string>
Available options:
Unknown,
PreTransit,
InTransit,
OutForDelivery,
Delivered,
AvailableForPickup,
ReturnToSender,
Failure,
Cancelled,
Error
shippingFeeResponsibility
enum<string>

Who pays the return-shipping fee.

  • InstockRx — InStockRx absorbs the fee
  • Buyer — charged to the returning pharmacy
  • Seller — charged to the selling pharmacy

There is no Split: an earlier draft of this document listed one, inferred rather than confirmed. The fee goes to exactly one party.

Confirmed against Inview.Domain/Enum/ReturnFeeResponsibility.cs; the live document never emits it, so the drift check cannot.

Available options:
InstockRx,
Buyer,
Seller
originalShippingFeeAmount
string

Shipping cost on the original buyer→seller leg.

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

"42.50"

"0.01"

"1200"

returnShippingFeeAmount
string

Shipping cost on the return leg.

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

"42.50"

"0.01"

"1200"

refundAmountToBuyer
string

Amount refunded to the buyer on completion.

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

"42.50"

"0.01"

"1200"

chargeAmountFromSeller
string

Amount deducted from the seller's account on completion.

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

"42.50"

"0.01"

"1200"

adminNote
string

Admin commentary; required on rejection.