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=cumque&creditLimit=7.2250942®isterApproval=error" \
--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": "cumque",
"creditLimit": "7.2250942",
"registerApproval": "error",
};
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'=> 'cumque',
'creditLimit'=> '7.2250942',
'registerApproval'=> 'error',
],
]
);
$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/inventore?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/approval/inventore"
);
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/inventore',
[
'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/iste?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/approval/iste"
);
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/iste',
[
'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=assumenda&creditLimit=2.869504®isterApproval=distinctio" \
--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": "assumenda",
"creditLimit": "2.869504",
"registerApproval": "distinctio",
};
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'=> 'assumenda',
'creditLimit'=> '2.869504',
'registerApproval'=> 'distinctio',
],
]
);
$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/autem?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/catalogue_layout/autem"
);
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/autem',
[
'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/nulla?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/catalogue_layout/nulla"
);
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/nulla',
[
'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=occaecati&creditLimit=3318.22®isterApproval=ea" \
--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": "occaecati",
"creditLimit": "3318.22",
"registerApproval": "ea",
};
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'=> 'occaecati',
'creditLimit'=> '3318.22',
'registerApproval'=> 'ea',
],
]
);
$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/voluptatem?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/document/voluptatem"
);
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/voluptatem',
[
'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/voluptatum?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/document/voluptatum"
);
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/voluptatum',
[
'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=libero&sort_no=repudiandae&media_type=1333506.0192482&image=nesciunt" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "sort_no=607.44387518" \
--form "sizes[][]=12" \
--form "watermark_path=veniam" \
--form "watermark_gravity=center" \
--form "watermark_width=5" \
--form "watermark_height=34" \
--form "watermark_x=75" \
--form "watermark_y=75" \
--form "watermark_opacity=5" \
--form "quality=14" \
--form "density=235" \
--form "folder=sed" \
--form "media_type=distinctio" \
--form "image=@/tmp/phpfdm2Cz" const url = new URL(
"http://navapi.localhost/image"
);
const params = {
"api_token": "{YOUR_AUTH_KEY}",
"lot_id": "libero",
"sort_no": "repudiandae",
"media_type": "1333506.0192482",
"image": "nesciunt",
};
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', '607.44387518');
body.append('sizes[][]', '12');
body.append('watermark_path', 'veniam');
body.append('watermark_gravity', 'center');
body.append('watermark_width', '5');
body.append('watermark_height', '34');
body.append('watermark_x', '75');
body.append('watermark_y', '75');
body.append('watermark_opacity', '5');
body.append('quality', '14');
body.append('density', '235');
body.append('folder', 'sed');
body.append('media_type', 'distinctio');
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'=> 'libero',
'sort_no'=> 'repudiandae',
'media_type'=> '1333506.0192482',
'image'=> 'nesciunt',
],
'multipart' => [
[
'name' => 'sort_no',
'contents' => '607.44387518'
],
[
'name' => 'sizes[][]',
'contents' => '12'
],
[
'name' => 'watermark_path',
'contents' => 'veniam'
],
[
'name' => 'watermark_gravity',
'contents' => 'center'
],
[
'name' => 'watermark_width',
'contents' => '5'
],
[
'name' => 'watermark_height',
'contents' => '34'
],
[
'name' => 'watermark_x',
'contents' => '75'
],
[
'name' => 'watermark_y',
'contents' => '75'
],
[
'name' => 'watermark_opacity',
'contents' => '5'
],
[
'name' => 'quality',
'contents' => '14'
],
[
'name' => 'density',
'contents' => '235'
],
[
'name' => 'folder',
'contents' => 'sed'
],
[
'name' => 'media_type',
'contents' => 'distinctio'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpfdm2Cz', '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/repudiandae?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/image/repudiandae"
);
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/repudiandae',
[
'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=officia&ordering=85195.1" \
--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": "officia",
"ordering": "85195.1",
};
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'=> 'officia',
'ordering'=> '85195.1',
],
]
);
$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/ab?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "sort_no=614804.9" \
--form "sizes[][]=9" \
--form "watermark_path=harum" \
--form "watermark_gravity=north" \
--form "watermark_width=0" \
--form "watermark_height=31" \
--form "watermark_x=34" \
--form "watermark_y=30" \
--form "watermark_opacity=7" \
--form "quality=52" \
--form "density=195" \
--form "folder=et" \
--form "media_type=aut" \
--form "image=@/tmp/phpWT9oqA" const url = new URL(
"http://navapi.localhost/image/ab"
);
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', '614804.9');
body.append('sizes[][]', '9');
body.append('watermark_path', 'harum');
body.append('watermark_gravity', 'north');
body.append('watermark_width', '0');
body.append('watermark_height', '31');
body.append('watermark_x', '34');
body.append('watermark_y', '30');
body.append('watermark_opacity', '7');
body.append('quality', '52');
body.append('density', '195');
body.append('folder', 'et');
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/ab',
[
'headers' => [
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'query' => [
'api_token'=> '{YOUR_AUTH_KEY}',
],
'multipart' => [
[
'name' => 'sort_no',
'contents' => '614804.9'
],
[
'name' => 'sizes[][]',
'contents' => '9'
],
[
'name' => 'watermark_path',
'contents' => 'harum'
],
[
'name' => 'watermark_gravity',
'contents' => 'north'
],
[
'name' => 'watermark_width',
'contents' => '0'
],
[
'name' => 'watermark_height',
'contents' => '31'
],
[
'name' => 'watermark_x',
'contents' => '34'
],
[
'name' => 'watermark_y',
'contents' => '30'
],
[
'name' => 'watermark_opacity',
'contents' => '7'
],
[
'name' => 'quality',
'contents' => '52'
],
[
'name' => 'density',
'contents' => '195'
],
[
'name' => 'folder',
'contents' => 'et'
],
[
'name' => 'media_type',
'contents' => 'aut'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpWT9oqA', '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=nisi&tableNo=17.790114&relatedSystemId=et&entryNo=52.144656966&storageType=provident&sortNo=5418.21333&mediaType=assumenda&publicMediaPath=recusandae&code=accusantium&filename=ipsam" \
--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": "nisi",
"tableNo": "17.790114",
"relatedSystemId": "et",
"entryNo": "52.144656966",
"storageType": "provident",
"sortNo": "5418.21333",
"mediaType": "assumenda",
"publicMediaPath": "recusandae",
"code": "accusantium",
"filename": "ipsam",
};
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'=> 'nisi',
'tableNo'=> '17.790114',
'relatedSystemId'=> 'et',
'entryNo'=> '52.144656966',
'storageType'=> 'provident',
'sortNo'=> '5418.21333',
'mediaType'=> 'assumenda',
'publicMediaPath'=> 'recusandae',
'code'=> 'accusantium',
'filename'=> 'ipsam',
],
]
);
$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=inventore&sortNo=3.35" \
--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": "inventore",
"sortNo": "3.35",
};
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'=> 'inventore',
'sortNo'=> '3.35',
],
]
);
$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/ipsum?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/ipsum"
);
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/ipsum',
[
'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/vitae?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/media/vitae"
);
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/vitae',
[
'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\": 20535637.11,
\"customerNo\": \"ducimus\",
\"vendorNo\": \"placeat\",
\"firstName\": \"eligendi\",
\"middleName\": \"ullam\",
\"surname\": \"autem\",
\"companyName\": \"suscipit\",
\"email\": \"fuga\",
\"address\": \"corporis\",
\"address2\": \"est\",
\"city\": \"accusantium\",
\"county\": \"enim\",
\"postCode\": \"aut\",
\"country\": \"iste\",
\"phoneNo\": \"recusandae\",
\"mobileNo\": \"consequatur\",
\"vatNo\": \"asperiores\",
\"accountType\": \"mollitia\",
\"blocked\": false,
\"approved\": true,
\"approvedBy\": \"expedita\",
\"approvedAt\": \"2026-01-08T18:24:42\",
\"vendorApproved\": false,
\"vendorApprovedBy\": \"consequatur\",
\"vendorApprovedAt\": \"2026-01-08T18:24:42\",
\"fromWebSourceCode\": \"rerum\",
\"fromWebSourceName\": \"illo\"
}"
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": 20535637.11,
"customerNo": "ducimus",
"vendorNo": "placeat",
"firstName": "eligendi",
"middleName": "ullam",
"surname": "autem",
"companyName": "suscipit",
"email": "fuga",
"address": "corporis",
"address2": "est",
"city": "accusantium",
"county": "enim",
"postCode": "aut",
"country": "iste",
"phoneNo": "recusandae",
"mobileNo": "consequatur",
"vatNo": "asperiores",
"accountType": "mollitia",
"blocked": false,
"approved": true,
"approvedBy": "expedita",
"approvedAt": "2026-01-08T18:24:42",
"vendorApproved": false,
"vendorApprovedBy": "consequatur",
"vendorApprovedAt": "2026-01-08T18:24:42",
"fromWebSourceCode": "rerum",
"fromWebSourceName": "illo"
};
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' => 20535637.11,
'customerNo' => 'ducimus',
'vendorNo' => 'placeat',
'firstName' => 'eligendi',
'middleName' => 'ullam',
'surname' => 'autem',
'companyName' => 'suscipit',
'email' => 'fuga',
'address' => 'corporis',
'address2' => 'est',
'city' => 'accusantium',
'county' => 'enim',
'postCode' => 'aut',
'country' => 'iste',
'phoneNo' => 'recusandae',
'mobileNo' => 'consequatur',
'vatNo' => 'asperiores',
'accountType' => 'mollitia',
'blocked' => false,
'approved' => true,
'approvedBy' => 'expedita',
'approvedAt' => '2026-01-08T18:24:42',
'vendorApproved' => false,
'vendorApprovedBy' => 'consequatur',
'vendorApprovedAt' => '2026-01-08T18:24:42',
'fromWebSourceCode' => 'rerum',
'fromWebSourceName' => 'illo',
],
]
);
$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\": \"et\"
}"
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": "et"
};
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' => 'et',
],
]
);
$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/laudantium?api_token=%7BYOUR_AUTH_KEY%7D" \
--header "Content-Type: application/xml" \
--header "Accept: application/json"const url = new URL(
"http://navapi.localhost/user/laudantium"
);
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/laudantium',
[
'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: