Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
http://navapi.localhost
Authenticating requests
Authenticate requests to this API's endpoints by sending 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.
Approvals
APIs for post an registration and credit limit approval
Post an registration and credit limit approval.
requires authentication
This endpoint allows you to update a user's credit limit in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/approval?api_token=%7BYOUR_AUTH_KEY%7D&websiteId=eveniet&creditLimit=104303.699286®isterApproval=nulla" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/approval"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"websiteId": "eveniet",
"creditLimit": "104303.699286",
"registerApproval": "nulla",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/approval',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'websiteId'=> 'eveniet',
'creditLimit'=> '104303.699286',
'registerApproval'=> 'nulla',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update credit limit
requires authentication
This endpoint allows you to update a user's credit limit in the AM system.
Example request:
curl --request PUT \
"http://navapi.localhost/approval/est?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/approval/est"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://navapi.localhost/approval/est',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Undefined
requires authentication
Example request:
curl --request DELETE \
"http://navapi.localhost/approval/est?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/approval/est"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/approval/est',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Catalogue layout management
APIs for managing catalogue layouts
Post an registration and credit limit approval.
requires authentication
This endpoint allows you to update a user's credit limit in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/catalogue_layout?api_token=%7BYOUR_AUTH_KEY%7D&websiteId=quaerat&creditLimit=1980261.083®isterApproval=harum" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/catalogue_layout"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"websiteId": "quaerat",
"creditLimit": "1980261.083",
"registerApproval": "harum",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/catalogue_layout',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'websiteId'=> 'quaerat',
'creditLimit'=> '1980261.083',
'registerApproval'=> 'harum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update
requires authentication
Example request:
curl --request PUT \
"http://navapi.localhost/catalogue_layout/error?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/catalogue_layout/error"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://navapi.localhost/catalogue_layout/error',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Undefined
requires authentication
Example request:
curl --request DELETE \
"http://navapi.localhost/catalogue_layout/nobis?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/catalogue_layout/nobis"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/catalogue_layout/nobis',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Document management
APIs for managing documents
Post an registration and credit limit approval.
requires authentication
This endpoint allows you to update a user's credit limit in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/document?api_token=%7BYOUR_AUTH_KEY%7D&websiteId=non&creditLimit=434.352797717®isterApproval=voluptatem" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/document"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"websiteId": "non",
"creditLimit": "434.352797717",
"registerApproval": "voluptatem",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/document',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'websiteId'=> 'non',
'creditLimit'=> '434.352797717',
'registerApproval'=> 'voluptatem',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
PUT document/{id}
requires authentication
Example request:
curl --request PUT \
"http://navapi.localhost/document/rerum?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/document/rerum"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://navapi.localhost/document/rerum',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Undefined
requires authentication
Example request:
curl --request DELETE \
"http://navapi.localhost/document/et?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/document/et"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/document/et',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Image management for Non-NAV clients
APIs for managing images
Post an image.
requires authentication
This endpoint allows you to add an image to the AM system linked to a lot.
Example request:
curl --request POST \
"http://navapi.localhost/image?api_token=%7BYOUR_AUTH_KEY%7D&lot_id=autem&sort_no=sint&media_type=5655.86&image=quas" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "sort_no=93143.218381" \
--form "sizes[][]=4" \
--form "watermark_path=quo" \
--form "watermark_gravity=south" \
--form "watermark_width=25" \
--form "watermark_height=55" \
--form "watermark_x=90" \
--form "watermark_y=62" \
--form "watermark_opacity=0" \
--form "quality=60" \
--form "density=542" \
--form "folder=tenetur" \
--form "media_type=aut" \
--form "image=@/tmp/phpxdce1g" const url = new URL(
"http://navapi.localhost/image"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"lot_id": "autem",
"sort_no": "sint",
"media_type": "5655.86",
"image": "quas",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('sort_no', '93143.218381');
body.append('sizes[][]', '4');
body.append('watermark_path', 'quo');
body.append('watermark_gravity', 'south');
body.append('watermark_width', '25');
body.append('watermark_height', '55');
body.append('watermark_x', '90');
body.append('watermark_y', '62');
body.append('watermark_opacity', '0');
body.append('quality', '60');
body.append('density', '542');
body.append('folder', 'tenetur');
body.append('media_type', 'aut');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/image',
[
'headers' => [
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'lot_id'=> 'autem',
'sort_no'=> 'sint',
'media_type'=> '5655.86',
'image'=> 'quas',
],
'multipart' => [
[
'name' => 'sort_no',
'contents' => '93143.218381'
],
[
'name' => 'sizes[][]',
'contents' => '4'
],
[
'name' => 'watermark_path',
'contents' => 'quo'
],
[
'name' => 'watermark_gravity',
'contents' => 'south'
],
[
'name' => 'watermark_width',
'contents' => '25'
],
[
'name' => 'watermark_height',
'contents' => '55'
],
[
'name' => 'watermark_x',
'contents' => '90'
],
[
'name' => 'watermark_y',
'contents' => '62'
],
[
'name' => 'watermark_opacity',
'contents' => '0'
],
[
'name' => 'quality',
'contents' => '60'
],
[
'name' => 'density',
'contents' => '542'
],
[
'name' => 'folder',
'contents' => 'tenetur'
],
[
'name' => 'media_type',
'contents' => 'aut'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpxdce1g', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Soft delete an image.
requires authentication
This endpoint allows you to soft delete an image in the AM system.
Example request:
curl --request DELETE \
"http://navapi.localhost/image/et?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/image/et"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/image/et',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update sort order.
requires authentication
This endpoint allows to bulk update the sort order of images in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/image/sort?api_token=%7BYOUR_AUTH_KEY%7D&imageId=fugiat&ordering=2583.6702" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/image/sort"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"imageId": "fugiat",
"ordering": "2583.6702",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/image/sort',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'imageId'=> 'fugiat',
'ordering'=> '2583.6702',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update an image.
requires authentication
This endpoint allows you to update an image in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/image/dolorem?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "sort_no=3245.2" \
--form "sizes[][]=13" \
--form "watermark_path=repellat" \
--form "watermark_gravity=southwest" \
--form "watermark_width=84" \
--form "watermark_height=14" \
--form "watermark_x=0" \
--form "watermark_y=27" \
--form "watermark_opacity=35" \
--form "quality=16" \
--form "density=243" \
--form "folder=aspernatur" \
--form "media_type=accusantium" \
--form "image=@/tmp/phpFpofyO" const url = new URL(
"http://navapi.localhost/image/dolorem"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('sort_no', '3245.2');
body.append('sizes[][]', '13');
body.append('watermark_path', 'repellat');
body.append('watermark_gravity', 'southwest');
body.append('watermark_width', '84');
body.append('watermark_height', '14');
body.append('watermark_x', '0');
body.append('watermark_y', '27');
body.append('watermark_opacity', '35');
body.append('quality', '16');
body.append('density', '243');
body.append('folder', 'aspernatur');
body.append('media_type', 'accusantium');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/image/dolorem',
[
'headers' => [
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
'multipart' => [
[
'name' => 'sort_no',
'contents' => '3245.2'
],
[
'name' => 'sizes[][]',
'contents' => '13'
],
[
'name' => 'watermark_path',
'contents' => 'repellat'
],
[
'name' => 'watermark_gravity',
'contents' => 'southwest'
],
[
'name' => 'watermark_width',
'contents' => '84'
],
[
'name' => 'watermark_height',
'contents' => '14'
],
[
'name' => 'watermark_x',
'contents' => '0'
],
[
'name' => 'watermark_y',
'contents' => '27'
],
[
'name' => 'watermark_opacity',
'contents' => '35'
],
[
'name' => 'quality',
'contents' => '16'
],
[
'name' => 'density',
'contents' => '243'
],
[
'name' => 'folder',
'contents' => 'aspernatur'
],
[
'name' => 'media_type',
'contents' => 'accusantium'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpFpofyO', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Media management from NAV
APIs for managing media from NAV
Post an image.
requires authentication
This endpoint allows you to add an image to the AM system linked to a lot.
Example request:
curl --request POST \
"http://navapi.localhost/media?api_token=%7BYOUR_AUTH_KEY%7D&systemId=aspernatur&tableNo=24.606628&relatedSystemId=voluptatum&entryNo=5.9465703&storageType=mollitia&sortNo=264.17310958&mediaType=minus&publicMediaPath=voluptas&code=dignissimos&filename=cum" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"systemId": "aspernatur",
"tableNo": "24.606628",
"relatedSystemId": "voluptatum",
"entryNo": "5.9465703",
"storageType": "mollitia",
"sortNo": "264.17310958",
"mediaType": "minus",
"publicMediaPath": "voluptas",
"code": "dignissimos",
"filename": "cum",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/media',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'systemId'=> 'aspernatur',
'tableNo'=> '24.606628',
'relatedSystemId'=> 'voluptatum',
'entryNo'=> '5.9465703',
'storageType'=> 'mollitia',
'sortNo'=> '264.17310958',
'mediaType'=> 'minus',
'publicMediaPath'=> 'voluptas',
'code'=> 'dignissimos',
'filename'=> 'cum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update sort order.
requires authentication
This endpoint allows to bulk update the sort order of images in the AM system.
Example request:
curl --request POST \
"http://navapi.localhost/media/sort?api_token=%7BYOUR_AUTH_KEY%7D&systemId=beatae&sortNo=1173.3" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/sort"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"systemId": "beatae",
"sortNo": "1173.3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/media/sort',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
'systemId'=> 'beatae',
'sortNo'=> '1173.3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
POST media/delete
requires authentication
Example request:
curl --request POST \
"http://navapi.localhost/media/delete?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/delete"
);
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",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/media/delete',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Update an image.
requires authentication
This endpoint allows you to update an image in the AM system.
Example request:
curl --request PUT \
"http://navapi.localhost/media/doloremque?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/doloremque"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://navapi.localhost/media/doloremque',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Soft delete an image.
requires authentication
This endpoint allows you to soft delete an image in the AM system.
Example request:
curl --request DELETE \
"http://navapi.localhost/media/reiciendis?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/reiciendis"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/media/reiciendis',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
User management
APIs for managing images
Post a user record
requires authentication
This endpoint allows you to create a new AM user record or update an existing one
Example request:
curl --request POST \
"http://navapi.localhost/user?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/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",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'http://navapi.localhost/user',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
PUT user
requires authentication
Example request:
curl --request PUT \
"http://navapi.localhost/user?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json" \
--data "{
\"websiteID\": 25118.53112,
\"customerNo\": \"debitis\",
\"vendorNo\": \"expedita\",
\"firstName\": \"cupiditate\",
\"middleName\": \"ad\",
\"surname\": \"qui\",
\"companyName\": \"sequi\",
\"email\": \"sed\",
\"address\": \"nesciunt\",
\"address2\": \"commodi\",
\"city\": \"laudantium\",
\"county\": \"at\",
\"postCode\": \"doloremque\",
\"country\": \"suscipit\",
\"phoneNo\": \"omnis\",
\"mobileNo\": \"ratione\",
\"vatNo\": \"pariatur\",
\"accountType\": \"qui\",
\"blocked\": false,
\"approved\": false,
\"approvedBy\": \"eos\",
\"approvedAt\": \"2026-01-08T18:24:07\",
\"vendorApproved\": false,
\"vendorApprovedBy\": \"ut\",
\"vendorApprovedAt\": \"2026-01-08T18:24:07\",
\"fromWebSourceCode\": \"nesciunt\",
\"fromWebSourceName\": \"quia\"
}"
const url = new URL(
"http://navapi.localhost/user"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
let body = {
"websiteID": 25118.53112,
"customerNo": "debitis",
"vendorNo": "expedita",
"firstName": "cupiditate",
"middleName": "ad",
"surname": "qui",
"companyName": "sequi",
"email": "sed",
"address": "nesciunt",
"address2": "commodi",
"city": "laudantium",
"county": "at",
"postCode": "doloremque",
"country": "suscipit",
"phoneNo": "omnis",
"mobileNo": "ratione",
"vatNo": "pariatur",
"accountType": "qui",
"blocked": false,
"approved": false,
"approvedBy": "eos",
"approvedAt": "2026-01-08T18:24:07",
"vendorApproved": false,
"vendorApprovedBy": "ut",
"vendorApprovedAt": "2026-01-08T18:24:07",
"fromWebSourceCode": "nesciunt",
"fromWebSourceName": "quia"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'http://navapi.localhost/user',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
'json' => [
'websiteID' => 25118.53112,
'customerNo' => 'debitis',
'vendorNo' => 'expedita',
'firstName' => 'cupiditate',
'middleName' => 'ad',
'surname' => 'qui',
'companyName' => 'sequi',
'email' => 'sed',
'address' => 'nesciunt',
'address2' => 'commodi',
'city' => 'laudantium',
'county' => 'at',
'postCode' => 'doloremque',
'country' => 'suscipit',
'phoneNo' => 'omnis',
'mobileNo' => 'ratione',
'vatNo' => 'pariatur',
'accountType' => 'qui',
'blocked' => false,
'approved' => false,
'approvedBy' => 'eos',
'approvedAt' => '2026-01-08T18:24:07',
'vendorApproved' => false,
'vendorApprovedBy' => 'ut',
'vendorApprovedAt' => '2026-01-08T18:24:07',
'fromWebSourceCode' => 'nesciunt',
'fromWebSourceName' => 'quia',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Get a user record
requires authentication
This endpoint allows you to get AM user record details via the email address
Example request:
curl --request GET \
--get "http://navapi.localhost/user?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"non\"
}"
const url = new URL(
"http://navapi.localhost/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",
};
let body = {
"email": "non"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'http://navapi.localhost/user',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
'json' => [
'email' => 'non',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
{
"message": "Server Error"
}
Received response:
Request failed with error:
Undefined
requires authentication
Example request:
curl --request DELETE \
"http://navapi.localhost/user/velit?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/user/velit"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/xml",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'http://navapi.localhost/user/velit',
[
'headers' => [
'Content-Type' => 'application/xml',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error: