Archive a quote
PUT
/api/tenant/{tenantId}/Quotes/{id}/archive
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://api.nimles.com/e-commerce/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Quotes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"fields\": { \"additionalProperty\": { \"value\": \"example\", \"valueType\": \"example\" } }, \"accessibility\": \"example\", \"message\": \"example\", \"notifyCustomer\": true, \"assignToUserId\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"byBuyer\": true, \"bySeller\": true }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://api.nimles.com/e-commerce/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Quotes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fields":{"additionalProperty":{"value":"example","valueType":"example"}},"accessibility":"example","message":"example","notifyCustomer":true,"assignToUserId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","byBuyer":true,"bySeller":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.nimles.com/e-commerce/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Quotes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "message": "example", "notifyCustomer": true, "assignToUserId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "byBuyer": true, "bySeller": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
tenantId
required
string format: uuid
Your tenant id.
Request Body
Section titled “Request Body”Media typeapplication/json
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
message
string
notifyCustomer
boolean
assignToUserId
string format: uuid
byBuyer
boolean
bySeller
boolean
Example generated
{ "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "message": "example", "notifyCustomer": true, "assignToUserId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "byBuyer": true, "bySeller": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
fields
object
key
additional properties
string
data
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
relations
Array<object>
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
name
string
entityId
required
string format: uuid
entityType
required
string
relationType
required
string
tenantId
string format: uuid
resourceGroupId
string format: uuid
creatorId
string format: uuid
createdDate
string format: date-time
version
integer format: int32
lastModified
string format: date-time
head
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
parentQuoteId
string format: uuid
cartId
string format: uuid
quoteRequestId
string format: uuid
categoryId
string format: uuid
discountId
string format: uuid
deliveryOptionId
string format: uuid
paymentOptionId
string format: uuid
paymentId
string format: uuid
relationshipId
string format: uuid
assignedToUserId
string format: uuid
deliveryDate
string format: date-time
submittedDate
string format: date-time
archivedByBuyer
boolean
archivedBySeller
boolean
totalVat
number format: double
externalQuoteNumber
string
quoteNumber
integer format: int32
discountCode
string
discountType
string
discountValue
number format: double
totalGrossDiscount
number format: double
totalGrossPrice
number format: double
totalNetDiscount
number format: double
totalNetPrice
number format: double
buyer
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
organizationId
string format: uuid
userId
string format: uuid
siteId
string format: uuid
customerType
string
identityNumber
string
organizationName
string
firstName
string
lastName
string
email
string
phoneNumber
string
deliveryAddress
object
coAddress
string
state
string
country
string
name
string
firstName
string
lastName
string
street
string
postalCode
string
city
string
billingAddress
object
coAddress
string
state
string
country
string
name
string
firstName
string
lastName
string
street
string
postalCode
string
city
string
useDeliveryAddress
boolean
seller
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
organizationId
string format: uuid
userId
string format: uuid
siteId
string format: uuid
deliveryType
string
paymentType
string
quoteStatus
string
message
string
currency
string
lines
Array<object>
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
productId
string format: uuid
variantId
string format: uuid
categoryId
string format: uuid
productGroupId
string format: uuid
connectedQuoteLineId
string format: uuid
connectedQuoteItemId
string format: uuid
parentQuoteLineId
string format: uuid
additionalName
string
scheduleId
string format: uuid
scheduleDateTime
string format: date-time
sku
string
name
string
description
string
quoteItemType
string
quantity
number format: double
unitNetPrice
number format: double
unitGrossPrice
number format: double
totalNetPrice
number format: double
totalGrossPrice
number format: double
productUnitPrice
number format: double
vatRate
integer format: int32
discount
integer format: int32
fileIds
Array<string>
imageIds
Array<string>
children
Array<object> recursive
productProperties
Array<object>
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
productPropertyId
string format: uuid
stringValues
Array<string>
numberValues
Array<number>
locations
Array<object>
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
address
object
coAddress
string
state
string
country
string
name
string
firstName
string
lastName
string
street
string
postalCode
string
city
string
latitude
number format: double
longitude
number format: double
radius
integer format: int32
locationIndex
integer format: int32
quoteEvents
Array<object>
object
fields
object
key
additional properties
object
value
required
valueType
string
accessibility
string
id
string format: uuid
userId
string format: uuid
username
string
eventType
string
status
string
clientIpAddress
string
action
string
message
string
createdDate
string format: date-time
Example generated
{ "data": { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "relations": [ { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "entityId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "entityType": "example", "relationType": "example" } ], "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "resourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "creatorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "createdDate": "2026-04-15T12:00:00Z", "version": 1, "lastModified": "2026-04-15T12:00:00Z", "head": { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "parentQuoteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "cartId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "quoteRequestId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "categoryId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "discountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "deliveryOptionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "paymentOptionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "paymentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "relationshipId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "assignedToUserId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "deliveryDate": "2026-04-15T12:00:00Z", "submittedDate": "2026-04-15T12:00:00Z", "archivedByBuyer": true, "archivedBySeller": true, "totalVat": 1, "externalQuoteNumber": "example", "quoteNumber": 1, "discountCode": "example", "discountType": "example", "discountValue": 1, "totalGrossDiscount": 1, "totalGrossPrice": 1, "totalNetDiscount": 1, "totalNetPrice": 1, "buyer": { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "customerType": "example", "identityNumber": "example", "organizationName": "example", "firstName": "example", "lastName": "example", "email": "example", "phoneNumber": "example", "deliveryAddress": { "coAddress": "example", "state": "example", "country": "example", "name": "example", "firstName": "example", "lastName": "example", "street": "example", "postalCode": "example", "city": "example" }, "billingAddress": { "coAddress": "example", "state": "example", "country": "example", "name": "example", "firstName": "example", "lastName": "example", "street": "example", "postalCode": "example", "city": "example" }, "useDeliveryAddress": true }, "seller": { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "deliveryType": "example", "paymentType": "example", "quoteStatus": "example", "message": "example", "currency": "example" }, "lines": [ { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "productId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "variantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "categoryId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "productGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "connectedQuoteLineId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "connectedQuoteItemId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "parentQuoteLineId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "additionalName": "example", "scheduleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "scheduleDateTime": "2026-04-15T12:00:00Z", "sku": "example", "name": "example", "description": "example", "quoteItemType": "example", "quantity": 1, "unitNetPrice": 1, "unitGrossPrice": 1, "totalNetPrice": 1, "totalGrossPrice": 1, "productUnitPrice": 1, "vatRate": 1, "discount": 1, "fileIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "imageIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "children": [], "productProperties": [ { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "productPropertyId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "stringValues": [ "example" ], "numberValues": [ 1 ] } ] } ], "locations": [ { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "address": { "coAddress": "example", "state": "example", "country": "example", "name": "example", "firstName": "example", "lastName": "example", "street": "example", "postalCode": "example", "city": "example" }, "latitude": 1, "longitude": 1, "radius": 1, "locationIndex": 1 } ], "quoteEvents": [ { "fields": { "additionalProperty": { "value": "example", "valueType": "example" } }, "accessibility": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "username": "example", "eventType": "example", "status": "example", "clientIpAddress": "example", "action": "example", "message": "example", "createdDate": "2026-04-15T12:00:00Z" } ] }}No Content: done, with no item to return.
Unauthorized: no bearer token, or one that is expired or not for this API.
Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.
Media typeapplication/json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Not found: no such item in the tenant.
Media typeapplication/problem+json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Conflict: the item kept changing under concurrent writes; read it again and retry.
Media typeapplication/problem+json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Unprocessable: the body or the change is invalid. The errors are keyed by member.
Media typeapplication/problem+json
A validation problem: the messages by member (or by JSON Pointer for a patch).
object
errors
object
key
additional properties
Array<string>
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "errors": { "additionalProperty": [ "example" ] }, "status": 1, "title": "example", "type": "example"}