Mediloop
DocsAPIsProcurement APIReturns
Procurement API

Returns

Create and track procurement return requests with item-level reasons, quantities and supplier resolution states.

Item-level returns

Quantity & reason

Supplier response

Approve / reject / instruct

Credit status

Refund or credit note

Audit

Full return history

Return lifecycle

requested
reviewing
approved
returning
resolved

Create a return

POST/v1/procurement/returns
FieldDescription
purchase_order_idOriginal procurement order
delivery_idDelivery being returned, if applicable
items[]Order line, quantity and reason
notesAdditional return context
attachmentsEvidence / documents references

Return items

ReasonExample
damagedProduct damaged in transit
incorrect_itemDifferent SKU/product received
quality_issueProduct quality concern
excess_quantityOver-delivery
otherFree-text explanation required

Supplier response

The supplier can approve, partially approve or reject the request, optionally supplying return instructions, RMA/reference numbers and expected resolution.

Refund & credit status

ResolutionMeaning
replacementReplacement goods supplied
refundPayment refunded
credit_noteSupplier credit issued
no_creditReturn resolved without financial credit

Example request

cURLJavaScriptPython
curl -X POST "https://api.mediloop.com/v1/procurement/returns" \
  -H "Authorization: Bearer $MEDILOOP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"purchase_order_id":"po_42","items":[{"order_item_id":"line_1","quantity":2,"reason":"damaged"}]}'
Create return
Response201 Created
{ "id":"ret_12", "status":"requested", "purchase_order_id":"po_42" }