APIs
- Return Actions
- Return Data
- Programmatic Webhooks
- Item Grading and Dispositioning
- Cart
- Destinations
- Blocklist
- Allowlist
- Fraud Reports
- Happy Returns Shipments
- Label Requests
List Label Requests
Retrieve a list of label requests.
Required API key scope
- Labels (Read)
curl --request GET \
--url https://api.loopreturns.com/api/v1/label-requests \
--header 'X-Authorization: <api-key>'
{
"data": [
{
"id": 9007199254740991,
"addresses": {
"origin": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
},
"destination": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
}
},
"parcel": {
"height": 5,
"length": 20.2,
"width": 10.9,
"weight": 65.9
},
"products": [
{
"name": "<string>",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"country_of_origin": "USA",
"hs_code": "61051000",
"sku": "99999999"
}
],
"errors": [
"<any>"
],
"return_id": 1001,
"shop_id": 50,
"status": "fulfilled",
"created_at": "2023-04-25T13:25:00-05:00"
}
]
}
Authorizations
API Scope: "Developer Tools"
Query Parameters
Returns label requests after or equal to a minimum date.
"2023-04-25T13:25:00-05:00"
Returns label requests before a maximum date.
"2023-04-25T13:25:00-05:00"
Return label requests associated with a specific return_id.
67329889100573
The status of the label.
new
, pre_transit
, in_transit
, out_for_delivery
, delivered
"new"
The per page limit of label requests to return
0 <= x <= 250
The number of label requsts to offset.
Response
The unique identifier for the label, created by Loop.
9007199254740991
The recipient's street address.
125
The city in which the address is located.
100
The two-letter country code associated with the address.
2
The recipient's name.
100
The recipient's company.
100
The recipient's secondary address details (such as unit number or PO box information).
125
The state or region in which the address is located.
100
The postal code associated with the address.
16
The country in which the address is located.
100
{
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
}
The recipient's street address.
125
The city in which the address is located.
100
The two-letter country code associated with the address.
2
The recipient's name.
100
The recipient's company.
100
The recipient's secondary address details (such as unit number or PO box information).
125
The state or region in which the address is located.
100
The postal code associated with the address.
16
The country in which the address is located.
100
{
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
}
The name of the product.
The country of origin of the product.
"USA"
The HS (Harmonized System) code of the product.
"61051000"
The SKU of the product.
"99999999"
The return id of the return.
1001
The id of the shop belonging to the merchant.
50
"fulfilled"
The date the label was created.
"2023-04-25T13:25:00-05:00"
curl --request GET \
--url https://api.loopreturns.com/api/v1/label-requests \
--header 'X-Authorization: <api-key>'
{
"data": [
{
"id": 9007199254740991,
"addresses": {
"origin": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
},
"destination": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country": "United States of America",
"country_code": "US"
}
},
"parcel": {
"height": 5,
"length": 20.2,
"width": 10.9,
"weight": 65.9
},
"products": [
{
"name": "<string>",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"country_of_origin": "USA",
"hs_code": "61051000",
"sku": "99999999"
}
],
"errors": [
"<any>"
],
"return_id": 1001,
"shop_id": 50,
"status": "fulfilled",
"created_at": "2023-04-25T13:25:00-05:00"
}
]
}