1Fetch Client API

<back to all web services

PlaceOrderFromQuote

The following routes are available for this service:
POST/quote/orderProvide a quoteId to create an order. This will bill the order to your account.
PlaceOrderFromQuote Parameters:
NameParameterData TypeRequiredDescription
ClientReferencebodystringNoOptionally provide your own reference identifier
QuoteIdbodyGuidYesThe quote the order is for
TestbodyboolYesSet this to true to prevent creating an order and billing for it
IsUrgentbodyboolNoIs your account allows Urgent Orders, you can use this flag to indicate when an Order is urgent.
ApiServiceRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringYesThe API Key required for authentication
PlaceOrderFromQuoteResponse Parameters:
NameParameterData TypeRequiredDescription
OrderIdformGuidNoThe ID of the order.
WayBillformstringNoUser friendly waybill number
ApiServiceResponse Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringYesInformation about the response.
HeadingformstringYesHeading or summary of the response.
WasSuccessfulformbooleanYesDid the intended operation for this response complete successfully?

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /quote/order HTTP/1.1 
Host: api.1fetch.co.za 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ClientReference":"String","QuoteId":"00000000-0000-0000-0000-000000000000","Test":false,"IsUrgent":false,"ApiKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"OrderId":"00000000-0000-0000-0000-000000000000","WayBill":"String","Description":"String","Heading":"String","WasSuccessful":false}