Skip to content

Depot procurement rmas

Mounts the /procurement/rmas routes.

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETprocurement:readshared facehosteditmspIdempotent

Source: [object Object]

listRmas lists returns to vendor, newest first.

NameInTypeRequiredDescription
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
statequerystring, one of cancelled, closed, credited, open, repaired, replaced, shippedNoComma-separated set. An unrecognised value is refused.
supplierquerystringNo
StatusBodyDescription
200application/json, PagedResultRmaViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:read.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
itemsrequiredarray of RmaView
items[].closedAtstring (date-time) or null
items[].createdAtrequiredstring (date-time)
items[].creditCentsrequiredinteger

int64.

items[].fromLocationIdstring or null
items[].linesrequiredarray of RmaLineView
items[].lines[].assetIdstring or null
items[].lines[].assetNamestring or null
items[].lines[].assetSerialstring or null
items[].lines[].dispositionrequiredstring
items[].lines[].publicIdrequiredstring
items[].lines[].qtyrequiredstring
items[].lines[].replacementAssetIdstring or null
items[].lines[].stockItemIdstring or null
items[].lines[].stockItemSkustring or null
items[].publicIdrequiredstring
items[].reasonrequiredstring
items[].rmaNumberrequiredstring
items[].rowVersionrequiredinteger

int64.

items[].shippedAtstring (date-time) or null
items[].staterequiredstring
items[].supplierIdrequiredstring
items[].supplierNamerequiredstring
items[].vendorRmaNumberrequiredstring
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/procurement/rmas?page=0&pageSize=0&state=cancelled&supplier=<supplier>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTprocurement:writeshared facehosteditmsp

Source: [object Object]

createRma opens a return to vendor.

Practice-held units on it leave stock now.

Required, sent as application/json.

The body is any.

StatusBodyDescription
201application/json, RmaViewCreated.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:write.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

201 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/procurement/rmas' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '"string"'

GETprocurement:readshared facehosteditmspIdempotent

Source: [object Object]

getRma reads one return with its lines.

NameInTypeRequiredDescription
idpathstringYes
StatusBodyDescription
200application/json, RmaViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:read.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/procurement/rmas/<id>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUTprocurement:writeshared facehosteditmspIdempotent

Source: [object Object]

updateRma edits a return’s header: vendor RMA number, reason and, while open, supplier and location.

NameInTypeRequiredDescription
idpathstringYes

Required, sent as application/json.

The body is any.

StatusBodyDescription
200application/json, RmaViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:write.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X PUT 'https://depot.example.com/api/v1/procurement/rmas/<id>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '"string"'

POSTprocurement:writeshared facehosteditmspIdempotent

Source: [object Object]

closeRma closes a return: credited, replaced, repaired or closed once shipped and resolved, or cancelled while open.

NameInTypeRequiredDescription
idpathstringYes

Required, sent as application/json.

The body is any.

StatusBodyDescription
200application/json, RmaViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:write.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/procurement/rmas/<id>/close' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '"string"'

POST /api/v1/procurement/rmas/{id}/lines/{lineId}/resolve

Section titled “POST /api/v1/procurement/rmas/{id}/lines/{lineId}/resolve”

POSTprocurement:writeshared facehosteditmspIdempotent

Source: [object Object]

resolveRmaLine records what the vendor did with one line: credit, replace, repair or scrap.

NameInTypeRequiredDescription
idpathstringYes
lineIdpathstringYes

Required, sent as application/json.

The body is any.

StatusBodyDescription
200application/json, RmaViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:write.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/procurement/rmas/<id>/lines/<lineId>/resolve' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '"string"'

POSTprocurement:writeshared facehosteditmspIdempotent

Source: [object Object]

shipRma marks an open return shipped; stock lines leave their location.

NameInTypeRequiredDescription
idpathstringYes
StatusBodyDescription
200application/json, RmaViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold procurement:write.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThat change conflicts with the current state.
412application/problem+json, ProblemDetailsThis record changed since it was read. Reload and try again.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThis Depot has no home database for this request yet.

200 response body

FieldTypeDescription
closedAtstring (date-time) or null
createdAtrequiredstring (date-time)
creditCentsrequiredinteger

int64.

fromLocationIdstring or null
linesrequiredarray of RmaLineView
lines[].assetIdstring or null
lines[].assetNamestring or null
lines[].assetSerialstring or null
lines[].dispositionrequiredstring
lines[].publicIdrequiredstring
lines[].qtyrequiredstring
lines[].replacementAssetIdstring or null
lines[].stockItemIdstring or null
lines[].stockItemSkustring or null
publicIdrequiredstring
reasonrequiredstring
rmaNumberrequiredstring
rowVersionrequiredinteger

int64.

shippedAtstring (date-time) or null
staterequiredstring
supplierIdrequiredstring
supplierNamerequiredstring
vendorRmaNumberrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/procurement/rmas/<id>/ship' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.