Return Items

Registers a customer returning an item.

/v3/transactions/{transactionId}/return

POST https://apis.sandbox.flexshopper.com/v3/transactions/{transactionId}/return

It returns a list of items registered to return and a list of items requested to returned as failed. Probable causes of failed item requests: * The item does not exists * The item was already returned * The item has not being signed yet

Path Parameters

Name
Type
Description

transactionId

string

Transaction Id

Headers

Name
Type
Description

Authorization

string

Authorization token

Request Body

Name
Type
Description

items

array

The list of items to be returned.

items.sku

string

The SKU to return.

items.quantity

integer

The quantity to expect returned; defaults to the number ordered if not present.

{
  "data": {
    "returned": [
      {
        "sku": "123ASD",
        "quantity": 1
      }
    ],
    "failed": [
      {
        "sku": "123ASD",
        "quantity": 1
      }
    ]
  }
}

Last updated