POST
/
order
/
link
curl --request POST \
  --url https://api.loopreturns.com/api/v1/order/link \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "name": "Shopify Order Name",
  "zip": "43215",
  "gift": false
}'
{
  "url": "https://test-shop.loopreturns.com/#/link/examp1e-uu1d-h3r3"
}

Authorizations

X-Authorization
string
header
required

Body

application/json
name
string
required

The name of the order in Shopify.

zip
string
required

The order detail used to identify the order. Often the customer's shipping ZIP code, but depending on the merchant's shop settings, could also be the customer's email or phone number.

gift
boolean

Whether or not the return will use Loop's Gift flow. For details, see Gift Returns.

Response

200
application/json
Success
url
string