Introduction
Push auctions, lots, consignments, media and users into an Auction Marketer site, and read results back.
Getting started
Every request needs:
- the
X-Client-IDheader, which identifies your site (your client ID is issued by Auction Marketer); - your
api_token, sent as a query parameter (?api_token=...) or in the JSON body; - JSON in and out:
Content-Type: application/jsonandAccept: application/json.
Requests are rate limited to 100 per minute per client. DELETE requests carry a JSON body (deleted_by).
curl https://ams-api.auctionmarketer.co.uk/api/v1/user/{uuid}?api_token=YOUR_TOKEN \
-H "X-Client-ID: YOUR_CLIENT_ID" -H "Accept: application/json"
How records work
uuids. Every create call returns the new record's uuid. Store it: all later calls address the record by it
(GET, PUT and DELETE /api/v1/{resource}/{uuid}), and records link to each other by uuid
(vendor_uuid, auction_uuid, consignment_line_uuid).
Your own IDs. Users, auctions and lots accept an external_ref: your ID for the record. If you lose a uuid,
POST /api/v1/uuid with the entity_type (user, auction or lot) and your external_ref returns it, and
auction results report your references back to you.
Audit fields. Every create and update takes submitted_by and every delete takes deleted_by: a short name
for who or what made the change (for example inventory-sync). It is recorded in the site's audit log.
Round trips. GET returns a record in the shape PUT accepts. To change a record, GET it, change the fields you need and send it back. On lots, consignments and auctions a link left out or sent as null keeps its current value. A user update replaces the optional fields by default (a field you leave out is cleared); a site can be set to keep them instead. Sending the whole record works either way.
Flags. Send true/false. Responses may return flags as 1/0 or "1"/"0"; treat both as true/false.
Deletes. Deleting a record marks it deleted: it disappears from the site and its uuid stops resolving (404). Deleting an image also removes its files.
Adding a user
POST /api/v1/user creates an account and returns its uuid. An email address that already has an account
returns 409 with that account's uuid, so a retry never creates a second account.
{
"title": "Ms",
"first_name": "Jane",
"surname": "Smith",
"email": "jane@example.com",
"address1": "1 Example Street",
"city": "Toronto",
"county": "ON",
"post_code": "M5V 1A1",
"country": "CA",
"phone_number": "4165550123",
"is_vendor": false,
"external_ref": "U-1024",
"submitted_by": "inventory-sync"
}
Use ISO 3166-1 alpha-2 country codes and, for Canada and the US, province or state codes. A new account is
active, recorded as an individual (send company: true for a business) and recorded as a full registration, so
staff can approve it for bidding in the back office. PUT /api/v1/user-approval/{uuid} sets the approval from
your system.
Adding an item
An item for sale is three records, created in this order: a consignment (what a vendor brought in), a consignment line for each item on it, and a lot that puts the line into an auction. The lot's images and condition report belong to its line.
1. Create the consignment (once per consignment; reuse it for all its items). The consignment number is your own; sending one that already exists returns 409, so store the uuid.
POST /api/v1/consignment-header
{
"consignment_number": "C-2031",
"vendor_uuid": "<the vendor's user uuid>",
"consignment_status": "Consigned",
"valuation_consignment": false,
"submitted_by": "inventory-sync"
}
2. Add the item to the consignment (once per item; line numbers are unique within a consignment).
POST /api/v1/consignment-line
{
"consignment_uuid": "<uuid from step 1>",
"consignment_line_number": 1,
"name": "18ct gold diamond ring",
"description": "Brilliant-cut diamond, approx. 0.50ct, size N",
"condition_report": "Light surface wear to the shank.",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"line_status": "draft",
"submitted_by": "inventory-sync"
}
3. Create the lot in the auction (create the auction first with POST /api/v1/auction if needed). A lot
number the auction already has returns 409 with the existing lot's uuid. A vendor is required when the auction
is dated today or later. A sub-lot is a lot number with a suffix: send lot_number 12 with suffix .01, or
"12.01" as the lot number, which is stored the same way.
POST /api/v1/lot
{
"auction_uuid": "<the auction's uuid>",
"consignment_line_uuid": "<uuid from step 2>",
"lot_number": 1,
"name": "18ct gold diamond ring",
"description": "Brilliant-cut diamond, approx. 0.50ct, size N",
"number_of_items": 1,
"withdrawn": false,
"vendor_uuid": "<the vendor's user uuid>",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"external_ref": "L-1024",
"submitted_by": "inventory-sync"
}
4. Add images. POST /api/v1/media with the lot's uuid and a public http(s) URL of the image. Each image is
downloaded once and optimised; sort_no sets the display order, starting at 1.
POST /api/v1/media
{
"media_type": "image",
"related_entity_type": "lot",
"related_entity_uuid": "<the lot's uuid>",
"public_url": "https://images.example.com/lot-1-1.jpg",
"sort_no": 1,
"submitted_by": "inventory-sync"
}
Condition reports
Send condition_report on the lot (or on its consignment line). The site shows it on the lot page from the next
page load, including during a sale, stored exactly as sent. An empty value never erases a report: it leaves
the one on the site as it is, including a report staff wrote in the back office. GET on a lot returns the report
the site shows.
Auction results
GET /api/v1/bids/auction-results/{auction_uuid} returns every lot that sold, with the hammer price and buyer.
Each result carries our lot_uuid and user_uuid and your lot_external_ref and user_external_ref. An auction
with no sales yet returns an empty list; add per_page and page to page through large auctions.
Errors
| Status | Meaning |
|---|---|
| 400 | X-Client-ID missing, or a uuid in the body does not exist (the message names it) |
| 401 | api_token missing or not valid for this client |
| 403 | Unknown or inactive client ID, or the request comes from an address the client does not allow |
| 404 | No record with that uuid (or it was deleted) |
| 409 | The record already exists; the response carries the existing uuid where there is one |
| 422 | Validation failed: the body lists each field with its messages |
| 429 | More than 100 requests in a minute; wait and retry |
| 500, 503 | Server-side failure; safe to retry later |
A 422 response names each field that failed:
{"consignment_line_uuid": ["The consignment line uuid field is required."]}
Changes in 2026
If you built against an earlier description of this API, these are the changes to check:
- Consignments (June). The endpoints are
/api/v1/consignment-headerand/api/v1/consignment-line(with hyphens). The consignment fields areconsignment_number,consignment_status,valuation_consignmentandvendor_uuid. Creating a lot requiresconsignment_line_uuid; see Adding an item. - Lots (March, October).
total_lot_numberis worked out fromlot_numberandsuffix; there is no need to send it. A decimal lot number such as"12.01"is stored as lot 12 with suffix.01. - Auctions (January to March).
web_statusis one of List, Preview, Publish, Unpublish or Results;auction_numberis optional andarchivedis available. - Images (March, September). Requests no longer take
published. Images come from public http(s) URLs only; replacing an image removes the old files.GET /api/v1/media/{uuid}is available. - Lookups (June).
POST /api/v1/uuidacceptsauctionandlotas well asuser. - Users (June to October).
titleandcompany_nameare available. New accounts are active unless you sendblocked: true, are recorded as individuals unless you sendcompany: true, and are full registrations. - Round trips (September). GET returns what PUT accepts, and links you leave out keep their value.
- Results (September). Each result carries lot and buyer identifiers, ours and yours.
- Condition reports (September, October). Reports reach the lot page and are stored exactly as sent.
Authenticating requests
To authenticate requests, include a query parameter api_token in the request.
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by request to devops@auctionmarketer.co.uk.
Users
Accounts on the site: bidders and vendors.
Create a user
requires authentication
Creates a user account and returns its uuid. An existing email address returns 409 with the existing uuid. The account is recorded as a full registration, so staff can approve it for bidding in the back office.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/user?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"title\": \"Ms\",
\"first_name\": \"Jane\",
\"surname\": \"Smith\",
\"email\": \"jane@example.com\",
\"address1\": \"1 Example Street\",
\"city\": \"Toronto\",
\"county\": \"ON\",
\"post_code\": \"M5V 1A1\",
\"country\": \"CA\",
\"phone_number\": \"4165550123\",
\"is_vendor\": false,
\"vendor_web_account\": false,
\"individual\": true,
\"company\": false,
\"blocked\": false,
\"external_ref\": \"U-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/user"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"title": "Ms",
"first_name": "Jane",
"surname": "Smith",
"email": "jane@example.com",
"address1": "1 Example Street",
"city": "Toronto",
"county": "ON",
"post_code": "M5V 1A1",
"country": "CA",
"phone_number": "4165550123",
"is_vendor": false,
"vendor_web_account": false,
"individual": true,
"company": false,
"blocked": false,
"external_ref": "U-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/user';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'title' => 'Ms',
'first_name' => 'Jane',
'surname' => 'Smith',
'email' => 'jane@example.com',
'address1' => '1 Example Street',
'city' => 'Toronto',
'county' => 'ON',
'post_code' => 'M5V 1A1',
'country' => 'CA',
'phone_number' => '4165550123',
'is_vendor' => false,
'vendor_web_account' => false,
'individual' => true,
'company' => false,
'blocked' => false,
'external_ref' => 'U-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "user created",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (409, email already registered):
{
"message": "user already exists for this email address",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (422, required fields missing):
{
"surname": [
"The surname field is required."
],
"email": [
"The email field is required."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a user
requires authentication
Returns the user in the shape PUT accepts. Flags come back as "1"/"0" or 1/0; treat both as true/false.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"email": "jane@example.com",
"title": "Ms",
"first_name": "Jane",
"surname": "Smith",
"address1": "1 Example Street",
"address2": "",
"city": "Toronto",
"county": "ON",
"post_code": "M5V 1A1",
"phone_number": "4165550123",
"country": "CA",
"company_name": "",
"is_vendor": "1",
"vendor_web_account": "",
"individual": "1",
"blocked": 0,
"external_ref": "U-1024"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a user
requires authentication
Updates the user. By default this is a full replacement: optional fields you leave out are cleared, unless your site is set up to leave omitted fields unchanged. individual and company are only ever changed when you send them. The address updates the billing address; a user without a shipping address gets one from it, and shipping addresses the user added on the site are left alone.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"title\": \"Ms\",
\"first_name\": \"Jane\",
\"surname\": \"Smith\",
\"email\": \"jane@example.com\",
\"address1\": \"1 Example Street\",
\"city\": \"Toronto\",
\"county\": \"ON\",
\"post_code\": \"M5V 1A1\",
\"country\": \"CA\",
\"phone_number\": \"4165550123\",
\"is_vendor\": false,
\"vendor_web_account\": false,
\"individual\": true,
\"company\": false,
\"blocked\": false,
\"external_ref\": \"U-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"title": "Ms",
"first_name": "Jane",
"surname": "Smith",
"email": "jane@example.com",
"address1": "1 Example Street",
"city": "Toronto",
"county": "ON",
"post_code": "M5V 1A1",
"country": "CA",
"phone_number": "4165550123",
"is_vendor": false,
"vendor_web_account": false,
"individual": true,
"company": false,
"blocked": false,
"external_ref": "U-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/user/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'title' => 'Ms',
'first_name' => 'Jane',
'surname' => 'Smith',
'email' => 'jane@example.com',
'address1' => '1 Example Street',
'city' => 'Toronto',
'county' => 'ON',
'post_code' => 'M5V 1A1',
'country' => 'CA',
'phone_number' => '4165550123',
'is_vendor' => false,
'vendor_web_account' => false,
'individual' => true,
'company' => false,
'blocked' => false,
'external_ref' => 'U-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "user updated"
}
Example response (404):
{
"message": "User uuid not found"
}
Example response (422, email used by another account):
{
"message": "User email already used by another user ."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set a user's approval
requires authentication
Sets the account's approval status: approved true marks it approved, false marks it not approved.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/user-approval/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"approved\": true,
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/user-approval/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"approved": true,
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/user-approval/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'approved' => true,
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "user approval updated"
}
Example response (404):
{
"message": "User not found ."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Auctions
Sales. Create the auction before adding its lots.
Create an auction
requires authentication
Creates an auction and returns its uuid.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/auction?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"auction_type\": \"timed\",
\"name\": \"Example name\",
\"description\": \"Example description\",
\"auction_date\": \"2026-11-20\",
\"auction_time\": \"18:00\",
\"timed_phase_out\": 3,
\"timed_lot_spacing\": 30,
\"timed_extension_time\": 30,
\"timed_extension_window\": 30,
\"timed_extension_max\": 30,
\"web_status\": \"List\",
\"buyer_premium_rate\": 25,
\"archived\": false,
\"show_condition_reports\": true,
\"external_ref\": \"A-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/auction"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"auction_type": "timed",
"name": "Example name",
"description": "Example description",
"auction_date": "2026-11-20",
"auction_time": "18:00",
"timed_phase_out": 3,
"timed_lot_spacing": 30,
"timed_extension_time": 30,
"timed_extension_window": 30,
"timed_extension_max": 30,
"web_status": "List",
"buyer_premium_rate": 25,
"archived": false,
"show_condition_reports": true,
"external_ref": "A-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/auction';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'auction_type' => 'timed',
'name' => 'Example name',
'description' => 'Example description',
'auction_date' => '2026-11-20',
'auction_time' => '18:00',
'timed_phase_out' => 3.0,
'timed_lot_spacing' => 30.0,
'timed_extension_time' => 30.0,
'timed_extension_window' => 30.0,
'timed_extension_max' => 30.0,
'web_status' => 'List',
'buyer_premium_rate' => 25.0,
'archived' => false,
'show_condition_reports' => true,
'external_ref' => 'A-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "auction created",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (409, auction_number already used):
{
"message": "auction number already exists",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get an auction
requires authentication
Returns the auction in the shape PUT accepts, so you can change a field and send it back.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"auction_type": "timed",
"auction_number": "A-1024",
"name": "Example jewellery sale",
"description": "Rings, watches and silver",
"auction_date": "2026-11-20",
"auction_time": "18:00",
"viewing_times": null,
"collection": null,
"timed_phase_out": 3,
"timed_lot_spacing": 30,
"timed_extension_time": 30,
"timed_extension_window": 30,
"timed_extension_max": 30,
"buyer_premium_rate": 25,
"archived": 0,
"show_condition_reports": null,
"web_status": "Unpublish",
"external_ref": "A-1024"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update an auction
requires authentication
Send the auction as GET returns it, with your changes. Sending the auction's current web_status leaves the auction and its lots as they are; a different web_status also publishes or unpublishes every lot in the auction.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"auction_type\": \"timed\",
\"name\": \"Example name\",
\"description\": \"Example description\",
\"auction_date\": \"2026-11-20\",
\"auction_time\": \"18:00\",
\"timed_phase_out\": 3,
\"timed_lot_spacing\": 30,
\"timed_extension_time\": 30,
\"timed_extension_window\": 30,
\"timed_extension_max\": 30,
\"web_status\": \"List\",
\"buyer_premium_rate\": 25,
\"archived\": false,
\"show_condition_reports\": true,
\"external_ref\": \"A-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"auction_type": "timed",
"name": "Example name",
"description": "Example description",
"auction_date": "2026-11-20",
"auction_time": "18:00",
"timed_phase_out": 3,
"timed_lot_spacing": 30,
"timed_extension_time": 30,
"timed_extension_window": 30,
"timed_extension_max": 30,
"web_status": "List",
"buyer_premium_rate": 25,
"archived": false,
"show_condition_reports": true,
"external_ref": "A-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'auction_type' => 'timed',
'name' => 'Example name',
'description' => 'Example description',
'auction_date' => '2026-11-20',
'auction_time' => '18:00',
'timed_phase_out' => 3.0,
'timed_lot_spacing' => 30.0,
'timed_extension_time' => 30.0,
'timed_extension_window' => 30.0,
'timed_extension_max' => 30.0,
'web_status' => 'List',
'buyer_premium_rate' => 25.0,
'archived' => false,
'show_condition_reports' => true,
'external_ref' => 'A-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "auction updated"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete an auction
requires authentication
Marks the auction deleted. Its uuid stops resolving: GET, PUT and new lots for it return 404 or 400.
Example request:
curl --request DELETE \
"https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"deleted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"deleted_by": "inventory-sync"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/auction/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'deleted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "auction soft deleted"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Consignments
What a vendor brings in (the consignment header) and each item on it (a consignment line). Lots are created from lines.
Create a consignment header
requires authentication
Creates a consignment (receipt) for a vendor and returns its uuid.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"consignment_number\": \"C-2031\",
\"vendor_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"consignment_status\": \"Consigned\",
\"valuation_consignment\": false,
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"consignment_number": "C-2031",
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_status": "Consigned",
"valuation_consignment": false,
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'consignment_number' => 'C-2031',
'vendor_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'consignment_status' => 'Consigned',
'valuation_consignment' => false,
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment header created",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (400, unknown vendor):
{
"message": "vendor uuid does not exist"
}
Example response (409, consignment_number already used):
{
"message": "consignment header already exists"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a consignment header
requires authentication
Returns the consignment in the shape PUT accepts.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"notes": null,
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_number": "C-2031",
"consignment_status": "Consigned",
"valuation_consignment": 0
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a consignment header
requires authentication
Send the consignment as GET returns it, with your changes.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"consignment_number\": \"C-2031\",
\"vendor_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"consignment_status\": \"Consigned\",
\"valuation_consignment\": false,
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"consignment_number": "C-2031",
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_status": "Consigned",
"valuation_consignment": false,
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'consignment_number' => 'C-2031',
'vendor_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'consignment_status' => 'Consigned',
'valuation_consignment' => false,
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment header updated"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a consignment header
requires authentication
Marks the consignment deleted; its uuid stops resolving. Its lines and lots are left as they are.
Example request:
curl --request DELETE \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"deleted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"deleted_by": "inventory-sync"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-header/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'deleted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment_header soft deleted"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a consignment line
requires authentication
Creates a line (item) on a consignment and returns its uuid. Lots are created against a consignment line.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"consignment_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"parent_consignment_line_uuid\": \"0\",
\"consignment_line_number\": 1,
\"name\": \"Example name\",
\"description\": \"Example description\",
\"condition_report\": \"Good condition, light surface wear.\",
\"vendor_commission\": 15,
\"low_estimate\": 400,
\"high_estimate\": 600,
\"starting_price\": 300,
\"reserve_price\": 350,
\"reserve_status\": \"Discretion\",
\"incurs_vat\": false,
\"bp_enabled\": true,
\"bp_vat\": false,
\"line_status\": \"draft\",
\"auction_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"consignment_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"parent_consignment_line_uuid": "0",
"consignment_line_number": 1,
"name": "Example name",
"description": "Example description",
"condition_report": "Good condition, light surface wear.",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"line_status": "draft",
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'consignment_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'parent_consignment_line_uuid' => '0',
'consignment_line_number' => 1.0,
'name' => 'Example name',
'description' => 'Example description',
'condition_report' => 'Good condition, light surface wear.',
'vendor_commission' => 15.0,
'low_estimate' => 400.0,
'high_estimate' => 600.0,
'starting_price' => 300.0,
'reserve_price' => 350.0,
'reserve_status' => 'Discretion',
'incurs_vat' => false,
'bp_enabled' => true,
'bp_vat' => false,
'line_status' => 'draft',
'auction_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment line created",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (400, unknown consignment):
{
"message": "consignment uuid does not exist"
}
Example response (409, line number already used on the consignment):
{
"message": "consignment line already exists"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a consignment line
requires authentication
Returns the line in the shape PUT accepts. condition_report is the report stored on the line. parent_consignment_line_uuid is null for a top-level line; parent_receipt_line_uuid is an older name kept for existing clients.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"category": null,
"item_reference": null,
"condition_report": "Light surface wear to the shank.",
"vendor_commission": "15.00",
"low_estimate": "400.00",
"high_estimate": "600.00",
"starting_price": "300.00",
"reserve_price": "350.00",
"reserve_status": "Fixed",
"bp_enabled": 1,
"bp_vat": 0,
"line_status": "draft",
"consignment_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"parent_consignment_line_uuid": null,
"parent_receipt_line_uuid": 0,
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_line_number": 1,
"name": "18ct gold diamond ring",
"description": "Brilliant-cut diamond, approx. 0.50ct, size N",
"incurs_vat": 0
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a consignment line
requires authentication
Send the line as GET returns it, with your changes.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"consignment_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"parent_consignment_line_uuid\": \"0\",
\"consignment_line_number\": 1,
\"name\": \"Example name\",
\"description\": \"Example description\",
\"condition_report\": \"Good condition, light surface wear.\",
\"vendor_commission\": 15,
\"low_estimate\": 400,
\"high_estimate\": 600,
\"starting_price\": 300,
\"reserve_price\": 350,
\"reserve_status\": \"Discretion\",
\"incurs_vat\": false,
\"bp_enabled\": true,
\"bp_vat\": false,
\"line_status\": \"draft\",
\"auction_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"consignment_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"parent_consignment_line_uuid": "0",
"consignment_line_number": 1,
"name": "Example name",
"description": "Example description",
"condition_report": "Good condition, light surface wear.",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"line_status": "draft",
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'consignment_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'parent_consignment_line_uuid' => '0',
'consignment_line_number' => 1.0,
'name' => 'Example name',
'description' => 'Example description',
'condition_report' => 'Good condition, light surface wear.',
'vendor_commission' => 15.0,
'low_estimate' => 400.0,
'high_estimate' => 600.0,
'starting_price' => 300.0,
'reserve_price' => 350.0,
'reserve_status' => 'Discretion',
'incurs_vat' => false,
'bp_enabled' => true,
'bp_vat' => false,
'line_status' => 'draft',
'auction_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment line updated"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a consignment line
requires authentication
Marks the line deleted; its uuid stops resolving. A lot created from the line is left as it is: delete it with DELETE /api/v1/lot/{uuid}.
Example request:
curl --request DELETE \
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"deleted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"deleted_by": "inventory-sync"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/consignment-line/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'deleted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "consignment_line soft deleted"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lots
Items in an auction, each created from a consignment line.
Create a lot
requires authentication
Creates a lot on a consignment line and returns its uuid. Create the consignment (POST /api/v1/consignment-header) and its line (POST /api/v1/consignment-line) first: the lot's images and condition report belong to that line. Sending a lot number the auction already has returns 409 with the existing lot's uuid, so a retry never adds a copy.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/lot?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"auction_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"consignment_line_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"lot_number\": 12,
\"name\": \"Example name\",
\"description\": \"Example description\",
\"condition_report\": \"Good condition, light surface wear.\",
\"number_of_items\": 1,
\"withdrawn\": false,
\"vendor_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"buyer_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"vendor_commission\": 15,
\"low_estimate\": 400,
\"high_estimate\": 600,
\"starting_price\": 300,
\"reserve_price\": 350,
\"reserve_status\": \"Discretion\",
\"incurs_vat\": false,
\"bp_enabled\": true,
\"bp_vat\": false,
\"sold_status\": \"On Sale\",
\"external_ref\": \"L-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/lot"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_line_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"lot_number": 12,
"name": "Example name",
"description": "Example description",
"condition_report": "Good condition, light surface wear.",
"number_of_items": 1,
"withdrawn": false,
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"buyer_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"sold_status": "On Sale",
"external_ref": "L-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/lot';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'auction_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'consignment_line_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'lot_number' => 12.0,
'name' => 'Example name',
'description' => 'Example description',
'condition_report' => 'Good condition, light surface wear.',
'number_of_items' => 1.0,
'withdrawn' => false,
'vendor_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'buyer_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'vendor_commission' => 15.0,
'low_estimate' => 400.0,
'high_estimate' => 600.0,
'starting_price' => 300.0,
'reserve_price' => 350.0,
'reserve_status' => 'Discretion',
'incurs_vat' => false,
'bp_enabled' => true,
'bp_vat' => false,
'sold_status' => 'On Sale',
'external_ref' => 'L-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "lot saved",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (400, unknown auction or consignment line):
{
"message": "consignment line uuid does not exist"
}
Example response (409, lot number already used in the auction):
{
"message": "lot already exists",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (409, no vendor for a current auction):
{
"message": "vendor uuid required for a current auction"
}
Example response (422, consignment line missing):
{
"consignment_line_uuid": [
"The consignment line uuid field is required."
]
}
Example response (422, suffix disagrees with a decimal lot number):
{
"suffix": [
"The suffix does not match the decimal part of the lot number."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a lot
requires authentication
Returns the lot in the shape PUT accepts. condition_report is the report the site shows. total_lot_number is worked out from lot_number and suffix.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"lot_number": 1,
"suffix": null,
"total_lot_number": "1",
"name": "18ct gold diamond ring",
"description": "Brilliant-cut diamond, approx. 0.50ct, size N",
"category": null,
"item_reference": null,
"condition_report": "Light surface wear to the shank.",
"withdrawn": 0,
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"hammer_price": null,
"bp_enabled": 1,
"bp_vat": 0,
"paddle_number": null,
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_line_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"buyer_uuid": null,
"video_url": null,
"number_of_items": 1,
"incurs_vat": 1,
"sold_status": "On Sale",
"external_ref": "A-1024"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a lot
requires authentication
Updates the lot. Send the lot as GET returns it, with your changes: the required fields on every update; links (auction, consignment line, vendor, buyer, external_ref) left out or null keep their current value.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"auction_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"consignment_line_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"lot_number\": 12,
\"name\": \"Example name\",
\"description\": \"Example description\",
\"condition_report\": \"Good condition, light surface wear.\",
\"number_of_items\": 1,
\"withdrawn\": false,
\"vendor_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"buyer_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"vendor_commission\": 15,
\"low_estimate\": 400,
\"high_estimate\": 600,
\"starting_price\": 300,
\"reserve_price\": 350,
\"reserve_status\": \"Discretion\",
\"incurs_vat\": false,
\"bp_enabled\": true,
\"bp_vat\": false,
\"sold_status\": \"On Sale\",
\"external_ref\": \"L-1024\",
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"auction_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"consignment_line_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"lot_number": 12,
"name": "Example name",
"description": "Example description",
"condition_report": "Good condition, light surface wear.",
"number_of_items": 1,
"withdrawn": false,
"vendor_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"buyer_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"vendor_commission": 15,
"low_estimate": 400,
"high_estimate": 600,
"starting_price": 300,
"reserve_price": 350,
"reserve_status": "Discretion",
"incurs_vat": false,
"bp_enabled": true,
"bp_vat": false,
"sold_status": "On Sale",
"external_ref": "L-1024",
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'auction_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'consignment_line_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'lot_number' => 12.0,
'name' => 'Example name',
'description' => 'Example description',
'condition_report' => 'Good condition, light surface wear.',
'number_of_items' => 1.0,
'withdrawn' => false,
'vendor_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'buyer_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'vendor_commission' => 15.0,
'low_estimate' => 400.0,
'high_estimate' => 600.0,
'starting_price' => 300.0,
'reserve_price' => 350.0,
'reserve_status' => 'Discretion',
'incurs_vat' => false,
'bp_enabled' => true,
'bp_vat' => false,
'sold_status' => 'On Sale',
'external_ref' => 'L-1024',
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "lot updated"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a lot
requires authentication
Marks the lot deleted, which removes it from the site; its uuid stops resolving.
Example request:
curl --request DELETE \
"https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"deleted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"deleted_by": "inventory-sync"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/lot/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'deleted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "lot soft deleted"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media
Images for lots.
Add an image to a lot
requires authentication
Imports an image from a public URL and attaches it to a lot. Returns the media uuid.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/media?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"media_type\": \"image\",
\"related_entity_type\": \"lot\",
\"related_entity_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"public_url\": \"https:\\/\\/example.com\\/images\\/lot-12-1.jpg\",
\"sort_no\": 1,
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/media"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"media_type": "image",
"related_entity_type": "lot",
"related_entity_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"public_url": "https:\/\/example.com\/images\/lot-12-1.jpg",
"sort_no": 1,
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/media';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'media_type' => 'image',
'related_entity_type' => 'lot',
'related_entity_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'public_url' => 'https://example.com/images/lot-12-1.jpg',
'sort_no' => 1.0,
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "media created",
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (422, not a public http(s) address):
{
"message": "public_url must be a public http or https address"
}
Example response (422, the image could not be downloaded):
{
"message": "Unable to read remote file from url"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get an image
requires authentication
Returns the image's details, using the uuid returned when it was added. In s3_url, replace {{size}} with one of the site's image widths (for example w800) to get that rendition.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"media_type": "image",
"related_entity_type": "lot",
"related_entity_uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"public_url": "https://example.com/images/lot-1.jpg",
"file_name": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b.webp",
"s3_url": "https://example-bucket.s3.eu-west-2.amazonaws.com/tenant/env/lot_images/{{size}}/group-uuid/file.webp",
"sort_no": 1,
"published": true
}
Example response (404):
{
"message": "media not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Replace an image
requires authentication
Replaces the image with the one at public_url and updates its details.
Example request:
curl --request PUT \
"https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"media_type\": \"image\",
\"related_entity_type\": \"lot\",
\"related_entity_uuid\": \"9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f\",
\"public_url\": \"https:\\/\\/example.com\\/images\\/lot-12-1.jpg\",
\"sort_no\": 1,
\"published\": true,
\"submitted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"media_type": "image",
"related_entity_type": "lot",
"related_entity_uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f",
"public_url": "https:\/\/example.com\/images\/lot-12-1.jpg",
"sort_no": 1,
"published": true,
"submitted_by": "inventory-sync"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'media_type' => 'image',
'related_entity_type' => 'lot',
'related_entity_uuid' => '9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f',
'public_url' => 'https://example.com/images/lot-12-1.jpg',
'sort_no' => 1.0,
'published' => true,
'submitted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "media updated"
}
Example response (404):
{
"message": "uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete an image
requires authentication
Removes the image from the lot and deletes its files. An unknown uuid returns 404.
Example request:
curl --request DELETE \
"https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"deleted_by\": \"inventory-sync\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"deleted_by": "inventory-sync"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/media/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'deleted_by' => 'inventory-sync',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"message": "lot_image hard deleted"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Bids and results
Sale results.
Get the results of an auction
requires authentication
This endpoint returns every lot that sold in an auction, with the price it made and the buyer. Lots and buyers carry their uuid and, when you supplied one, your own reference (external_ref); both are null when absent.
Example request:
curl --request GET \
--get "https://ams-api.auctionmarketer.co.uk/api/v1/bids/auction-results/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f?api_token=%7BYOUR_AUTH_KEY%7D&per_page=100&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}"const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/bids/auction-results/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"per_page": "100",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/bids/auction-results/9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
'per_page' => '100',
'page' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"auction_results": [
{
"lot_number": "1",
"hammer_price": 79100,
"user_email": "buyer@example.com",
"lot_uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"lot_external_ref": "L-1024",
"user_uuid": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"user_external_ref": "U-1024"
}
],
"total": 1,
"page": 1,
"per_page": null
}
Example response (404):
{
"message": "auction uuid not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lookups
Find our uuid from your own ID.
Look up a uuid by external reference
requires authentication
Resolves the external_ref a third-party system stored against a record
(via external_ref on the user endpoints) back to the AM uuid.
For users the newest live link wins: if the same reference was linked to more than one account over time, links whose account no longer exists on the site are skipped, and linking a reference to a new account retires its earlier links.
Example request:
curl --request POST \
"https://ams-api.auctionmarketer.co.uk/api/v1/uuid?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-ID: {YOUR_CLIENT_ID}" \
--data "{
\"entity_type\": \"user\",
\"external_ref\": \"U-1024\"
}"
const url = new URL(
"https://ams-api.auctionmarketer.co.uk/api/v1/uuid"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-ID": "{YOUR_CLIENT_ID}",
};
let body = {
"entity_type": "user",
"external_ref": "U-1024"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://ams-api.auctionmarketer.co.uk/api/v1/uuid';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Client-ID' => '{YOUR_CLIENT_ID}',
],
'query' => [
'api_token' => '{YOUR_AUTH_KEY}',
],
'json' => [
'entity_type' => 'user',
'external_ref' => 'U-1024',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (200):
{
"uuid": "9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f"
}
Example response (404):
{
"message": "no uuid found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.