🟢Quick Start
Get your API keys
Your API requests are authenticated using API keys.
You can access your API key from the SMARTReturns Dashboard at any time.
Make your first request
To make your first request, send an authenticated request to the orders endpoint. This will create an order, which is the first step to allowing your customers to create their returns.
Basic Authorization header using the Bearer scheme.
Success.
The request cannot be fulfilled due to bad syntax or an invalid parameter.
Invalid authentication/authorization credentials. A request to the Retain me Order API with invalid/expired API Key(s).
HTTPS Required or Typically could not grant access to the system
Request for a resource that was not found.
Request limit exceeded, only 50 order permitted per request.
Internal systems error.
POST /client/api/Orders HTTP/1.1
Host:
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 592
{
"orderNumber": "text",
"orderDate": "text",
"price": 1,
"currency": "text",
"customer": {
"clientCustomerId": "text",
"title": "text",
"forename": "text",
"surname": "text",
"phone": "text",
"email": "text",
"isNew": true
},
"address": {
"addressLine1": "text",
"addressLine2": "text",
"addressLine3": "text",
"addressLine4": "text",
"city": "text",
"country": "text",
"postCode": "text"
},
"lines": [
{
"sku": "text",
"name": "text",
"description": "text",
"imageURL": "text",
"price": 1,
"category": "text",
"returnDays": 1,
"height": 1,
"width": 1,
"depth": 1,
"quantity": 1,
"variants": "text",
"tags": "text",
"size": "text",
"colour": "text",
"brand": "text"
}
]
}{
"orderId": "123e4567-e89b-12d3-a456-426614174000",
"returnUrl": "text"
}Last updated
Was this helpful?