MENU navbar-image

Introduction

Push auctions, lots, consignments, media and users into an Auction Marketer site, and read results back.

Getting started

Every request needs:

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:

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."
    ]
}
 

Request      

POST api/v1/user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

company_name   string  optional  

Company name.

title   string  optional  

Title, e.g. Mr, Ms, Mrs, Dr. Example: Ms

first_name   string   

First name. Example: Jane

surname   string   

Surname. Example: Smith

email   string   

Email address; also the login. Example: jane@example.com

address1   string   

Address line 1. Example: 1 Example Street

address2   string  optional  

Address line 2.

city   string   

City. Example: Toronto

county   string  optional  

County, province or state (use the code for Canada and the US, e.g. ON). Example: ON

post_code   string   

Postal code. Example: M5V 1A1

country   string   

Country as an ISO 3166-1 alpha-2 code. Example: CA

phone_number   string  optional  

Phone number. Example: 4165550123

is_vendor   boolean   

The account is a vendor (consignor); shows the vendor pages in My Account. Example: false

vendor_web_account   boolean  optional  

Give the vendor a web login. Example: false

individual   boolean  optional  

The account is an individual. Gives the account the standard bidder menu. New accounts are recorded as individual when neither individual nor company is sent. Example: true

company   boolean  optional  

The account is a company. Gives the account the standard bidder menu. Example: false

blocked   boolean  optional  

Block the account from logging in. Defaults to false (an active account). Example: false

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Example: U-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/user/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The user's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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 ."
}
 

Request      

PUT api/v1/user/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

company_name   string  optional  

Company name.

title   string  optional  

Title, e.g. Mr, Ms, Mrs, Dr. Example: Ms

first_name   string   

First name. Example: Jane

surname   string   

Surname. Example: Smith

email   string   

Email address; also the login. Example: jane@example.com

address1   string   

Address line 1. Example: 1 Example Street

address2   string  optional  

Address line 2.

city   string   

City. Example: Toronto

county   string  optional  

County, province or state (use the code for Canada and the US, e.g. ON). Example: ON

post_code   string   

Postal code. Example: M5V 1A1

country   string   

Country as an ISO 3166-1 alpha-2 code. Example: CA

phone_number   string  optional  

Phone number. Example: 4165550123

is_vendor   boolean   

The account is a vendor (consignor); shows the vendor pages in My Account. Example: false

vendor_web_account   boolean  optional  

Give the vendor a web login. Example: false

individual   boolean  optional  

The account is an individual. Gives the account the standard bidder menu. New accounts are recorded as individual when neither individual nor company is sent. Example: true

company   boolean  optional  

The account is a company. Gives the account the standard bidder menu. Example: false

blocked   boolean  optional  

Block the account from logging in. Example: false

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Example: U-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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 ."
}
 

Request      

PUT api/v1/user-approval/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The user's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

approved   boolean   

Approve (true) or withdraw approval (false). Example: true

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

POST api/v1/auction

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

auction_type   string  optional  

Auction type. One of: timed, live. Example: timed

auction_number   string  optional  

Your auction number.

name   string   

Name / title. Example: Example name

description   string  optional  

Description. Example: Example description

auction_date   string   

Auction date. Example: 2026-11-20

auction_time   string   

Auction start time. Example: 18:00

viewing_times   string  optional  

Viewing times.

collection   string  optional  

Collection details.

timed_phase_out   number  optional  

Timed sales: how long a lot stays on show after it has ended. Example: 3

timed_lot_spacing   number  optional  

Timed sales: seconds between one lot's closing time and the next. Example: 30

timed_extension_time   number  optional  

Timed sales: seconds added to a lot when a bid arrives inside the extension window (anti-snipe). Example: 30

timed_extension_window   number  optional  

Timed sales: a bid this many seconds or fewer before a lot closes extends it. Example: 30

timed_extension_max   number  optional  

Timed sales: the most time, in seconds, a lot can have left after an extension. Example: 30

web_status   string  optional  

Web status. One of: List, Preview, Publish, Unpublish, Results. Example: List

buyer_premium_rate   number   

Buyer's premium rate (%). Example: 25

archived   boolean  optional  

The auction is archived. Example: false

show_condition_reports   boolean  optional  

Stored for the auction; BidHarvest front ends currently ignore it. Whether condition reports show is controlled by the site's condition-report settings. Example: true

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Example: A-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/auction/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The auction's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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"
}
 

Request      

PUT api/v1/auction/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

auction_type   string  optional  

Auction type. One of: timed, live. Example: timed

auction_number   string  optional  

Your auction number.

name   string   

Name / title. Example: Example name

description   string  optional  

Description. Example: Example description

auction_date   string   

Auction date. Example: 2026-11-20

auction_time   string   

Auction start time. Example: 18:00

viewing_times   string  optional  

Viewing times.

collection   string  optional  

Collection details.

timed_phase_out   number  optional  

Timed sales: how long a lot stays on show after it has ended. Example: 3

timed_lot_spacing   number  optional  

Timed sales: seconds between one lot's closing time and the next. Example: 30

timed_extension_time   number  optional  

Timed sales: seconds added to a lot when a bid arrives inside the extension window (anti-snipe). Example: 30

timed_extension_window   number  optional  

Timed sales: a bid this many seconds or fewer before a lot closes extends it. Example: 30

timed_extension_max   number  optional  

Timed sales: the most time, in seconds, a lot can have left after an extension. Example: 30

web_status   string  optional  

Web status. One of: List, Preview, Publish, Unpublish, Results. Example: List

buyer_premium_rate   number   

Buyer's premium rate (%). Example: 25

archived   boolean  optional  

The auction is archived. Example: false

show_condition_reports   boolean  optional  

Stored for the auction; BidHarvest front ends currently ignore it. Whether condition reports show is controlled by the site's condition-report settings. Example: true

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Example: A-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

DELETE api/v1/auction/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The auction's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

deleted_by   string   

Who or what deleted it; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

POST api/v1/consignment-header

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

consignment_number   string   

Consignment (receipt) number. Example: C-2031

vendor_uuid   string   

uuid of the vendor (a user). Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

consignment_status   string   

Consignment status as the site uses it, e.g. Consigned or Awaiting Valuation. Example: Consigned

valuation_consignment   boolean   

Valuation consignment. Example: false

notes   string  optional  

Notes.

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/consignment-header/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The consignment's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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"
}
 

Request      

PUT api/v1/consignment-header/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

consignment_number   string   

Consignment (receipt) number. Example: C-2031

vendor_uuid   string  optional  

uuid of the vendor (a user). Leave out (or null) to keep the current one. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

consignment_status   string   

Consignment status as the site uses it, e.g. Consigned or Awaiting Valuation. Example: Consigned

valuation_consignment   boolean   

Valuation consignment. Example: false

notes   string  optional  

Notes.

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

DELETE api/v1/consignment-header/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The consignment's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

deleted_by   string   

Who or what deleted it; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

POST api/v1/consignment-line

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

consignment_uuid   string   

uuid of the consignment (from POST /api/v1/consignment-header). Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

parent_consignment_line_uuid   string  optional  

uuid of the parent line when this line sits under another one. Leave out, null or "0" for a top-level line. Example: 0

consignment_line_number   number   

Line number within the consignment. Example: 1

name   string   

Name / title. Example: Example name

description   string   

Description. Example: Example description

category   string  optional  

Category.

item_reference   string  optional  

Your item reference.

condition_report   string  optional  

Condition report of the line; a new or changed report is also shown on the lot page from the next page load, including during a sale. GET returns the report stored on the line. An empty value leaves the report on the site unchanged. Example: Good condition, light surface wear.

vendor_commission   number   

Vendor commission (%). Example: 15

low_estimate   number   

Low estimate. Example: 400

high_estimate   number   

High estimate. Example: 600

starting_price   number   

Starting price. Example: 300

reserve_price   number   

Reserve price. Example: 350

reserve_status   string  optional  

Reserve status, using the lot's values: Discretion, No Reserve or Fixed. Fixed when left out. Example: Discretion

incurs_vat   boolean   

Tax applies to the hammer price. Example: false

bp_enabled   boolean   

Buyer's premium applies. Example: true

bp_vat   boolean   

Tax applies to the buyer's premium. Example: false

line_status   string   

Line status as the site uses it, e.g. draft, pending, in auction or in package. Example: draft

auction_uuid   string  optional  

uuid of the auction. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/consignment-line/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The line's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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"
}
 

Request      

PUT api/v1/consignment-line/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

consignment_uuid   string   

uuid of the consignment (from POST /api/v1/consignment-header). Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

parent_consignment_line_uuid   string  optional  

uuid of the parent line. Leave out to keep the current parent; null or "0" makes it a top-level line. GET returns it (null for a top-level line). Example: 0

consignment_line_number   number   

Line number within the consignment. Example: 1

name   string   

Name / title. Example: Example name

description   string   

Description. Example: Example description

category   string  optional  

Category.

item_reference   string  optional  

Your item reference.

condition_report   string  optional  

Condition report of the line; a new or changed report is also shown on the lot page from the next page load, including during a sale. GET returns the report stored on the line. An empty value leaves the report on the site unchanged. Example: Good condition, light surface wear.

vendor_commission   number   

Vendor commission (%). Example: 15

low_estimate   number   

Low estimate. Example: 400

high_estimate   number   

High estimate. Example: 600

starting_price   number   

Starting price. Example: 300

reserve_price   number   

Reserve price. Example: 350

reserve_status   string  optional  

Reserve status, using the lot's values: Discretion, No Reserve or Fixed. Fixed when left out. Example: Discretion

incurs_vat   boolean   

Tax applies to the hammer price. Example: false

bp_enabled   boolean   

Buyer's premium applies. Example: true

bp_vat   boolean   

Tax applies to the buyer's premium. Example: false

line_status   string   

Line status as the site uses it, e.g. draft, pending, in auction or in package. Example: draft

auction_uuid   string  optional  

uuid of the auction. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

DELETE api/v1/consignment-line/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The line's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

deleted_by   string   

Who or what deleted it; recorded in the audit log. Example: inventory-sync

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."
    ]
}
 

Request      

POST api/v1/lot

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

auction_uuid   string   

uuid of the auction. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

consignment_line_uuid   string   

uuid of the consignment line (receipt line) the lot belongs to. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

lot_number   number   

Lot number. A sub-lot can be sent as a decimal: 12.01 is stored as lot 12, suffix .01 (send it as a string to keep a trailing zero, as in 12.10). Example: 12

suffix   string  optional  

Lot number suffix, e.g. A for 12A or .01 for sub-lot 12.01.

name   string   

Name / title. Example: Example name

description   string   

Description. Example: Example description

category   string  optional  

Category.

item_reference   string  optional  

Your item reference.

condition_report   string  optional  

Condition report shown on the lot page. Changes show on the next page load, including during a sale. An empty value leaves the report on the site unchanged. Example: Good condition, light surface wear.

video_url   string  optional  

Video URL.

number_of_items   number   

Number of items in the lot. Example: 1

withdrawn   boolean   

The lot is withdrawn from sale. Example: false

vendor_uuid   string  optional  

uuid of the vendor (a user). Required when the auction is dated today or later. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

buyer_uuid   string  optional  

uuid of the buyer (a user). Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

vendor_commission   number   

Vendor commission (%). Example: 15

low_estimate   number   

Low estimate. Example: 400

high_estimate   number   

High estimate. Example: 600

starting_price   number   

Starting price. Example: 300

reserve_price   number   

Reserve price. Example: 350

reserve_status   string   

Reserve status. One of: Discretion, No Reserve, Fixed. Example: Discretion

hammer_price   number  optional  

Hammer price.

incurs_vat   boolean  optional  

Tax applies to the hammer price. True when left out on create. Example: false

bp_enabled   boolean   

Buyer's premium applies. Example: true

bp_vat   boolean   

Tax applies to the buyer's premium. Example: false

paddle_number   string  optional  

Winning paddle number.

sold_status   string  optional  

Sold status. One of: On Sale, Unsold, Sold. Example: On Sale

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Example: L-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/lot/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The lot's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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"
}
 

Request      

PUT api/v1/lot/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

auction_uuid   string  optional  

uuid of the auction. Leave out (or null) to keep the current one. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

consignment_line_uuid   string  optional  

uuid of the consignment line (receipt line) the lot belongs to. Leave out (or null) to keep the current one. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

lot_number   number   

Lot number. A sub-lot can be sent as a decimal: 12.01 is stored as lot 12, suffix .01 (send it as a string to keep a trailing zero, as in 12.10). Example: 12

suffix   string  optional  

Lot number suffix, e.g. A for 12A or .01 for sub-lot 12.01.

name   string   

Name / title. Example: Example name

description   string   

Description. Example: Example description

category   string  optional  

Category.

item_reference   string  optional  

Your item reference.

condition_report   string  optional  

Condition report shown on the lot page. Changes show on the next page load, including during a sale. An empty value leaves the report on the site unchanged. Example: Good condition, light surface wear.

video_url   string  optional  

Video URL.

number_of_items   number   

Number of items in the lot. Example: 1

withdrawn   boolean   

The lot is withdrawn from sale. Example: false

vendor_uuid   string  optional  

uuid of the vendor (a user). Leave out (or null) to keep the current one; required for an auction dated today or later when the lot has no vendor yet. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

buyer_uuid   string  optional  

uuid of the buyer (a user). Leave out (or null) to keep the current one. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

vendor_commission   number   

Vendor commission (%). Example: 15

low_estimate   number   

Low estimate. Example: 400

high_estimate   number   

High estimate. Example: 600

starting_price   number   

Starting price. Example: 300

reserve_price   number   

Reserve price. Example: 350

reserve_status   string   

Reserve status. One of: Discretion, No Reserve, Fixed. Example: Discretion

hammer_price   number  optional  

Hammer price.

incurs_vat   boolean  optional  

Tax applies to the hammer price. True when left out on create. Example: false

bp_enabled   boolean   

Buyer's premium applies. Example: true

bp_vat   boolean   

Tax applies to the buyer's premium. Example: false

paddle_number   string  optional  

Winning paddle number.

sold_status   string  optional  

Sold status. One of: On Sale, Unsold, Sold. An empty value (GET returns one for a provisional sale) leaves the status unchanged. Example: On Sale

external_ref   string  optional  

Your own ID for this record. Store it and you can look up our uuid from it later (POST /api/v1/uuid); results report it back to you. Leave out (or null) to keep the current one. Example: L-1024

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

DELETE api/v1/lot/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The lot's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

deleted_by   string   

Who or what deleted it; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

POST api/v1/media

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

media_type   string  optional  

Media type. One of: image. Example: image

related_entity_type   string  optional  

What the media belongs to. One of: lot. Example: lot

related_entity_uuid   string   

uuid of the lot the image belongs to. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

public_url   string   

Public http(s) URL of the image. It is downloaded and optimised once; posting an image that was already imported returns 409, which is not a failure. Example: https://example.com/images/lot-12-1.jpg

sort_no   number   

Display order of the image on the lot, starting at 1. Example: 1

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/media/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the media record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

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"
}
 

Request      

PUT api/v1/media/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The uuid of the record. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

media_type   string  optional  

Media type. One of: image. Example: image

related_entity_type   string  optional  

What the media belongs to. One of: lot. Example: lot

related_entity_uuid   string   

uuid of the lot the image belongs to. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

public_url   string   

Public http(s) URL of the image. It is downloaded and optimised again, the previous files are removed, and file_name and s3_url change. Example: https://example.com/images/lot-12-1.jpg

sort_no   number   

Display order of the image on the lot, starting at 1. Example: 1

published   boolean  optional  

Show the image on the site. Leave out to keep the current setting. Example: true

submitted_by   string   

Who or what made the change; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

DELETE api/v1/media/{uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

uuid   string   

The image's uuid. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

deleted_by   string   

Who or what deleted it; recorded in the audit log. Example: inventory-sync

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"
}
 

Request      

GET api/v1/bids/auction-results/{auction_uuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

URL Parameters

auction_uuid   string   

The uuid of the auction. Example: 9f1c2d3e-4b5a-4c6d-8e7f-0a1b2c3d4e5f

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

per_page   integer  optional  

Page size. Omit to return every sold lot. Example: 100

page   integer  optional  

Which page to return, when per_page is given. Example: 1

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"
}
 

Request      

POST api/v1/uuid

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

X-Client-ID      

Example: {YOUR_CLIENT_ID}

Query Parameters

api_token   string   

Authentication key. Example: {YOUR_AUTH_KEY}

Body Parameters

entity_type   string  optional  

One of user, auction, lot. Example: user

external_ref   string   

The identifier stored by the external system. Example: U-1024