Index | Conventions

api/v1/quotecreate

Path: api/v1/quotecreate

This endpoint supports the following methods:
POST

Summary: Creates a new quote

Query Parameters

ParameterOptionalDescription
QueueSet to true, 1, or t to queue the request via the Jim2 eBusiness Queue. If specified the response will be 202 Accepted and the B2B request number will be returned.
Leave out, or set to false, 0, or f to process the request immediately.
SubmitRefIdA unique reference ID for the request. This is used to prevent duplicate requests when the Queue parameter is also passed. If a SubmitRefId is passed via this query parameter and within the request content (see submitRefId in JSON content) then the two values must be the same. A check for duplication due to re-processing on the B2B queue is NOT performed unless the SubmitRefId is included in the request body (ie not passing the SubmitRefId in the message body allows an item on the B2B queue to be reprocessed and potentially creating a duplicate object).
The Queue parameter must also be specified if SubmitRefId is specified.
Note that the SubmitRefId must be unique to Jim2, so if multiple systems are making calls care must be taken to avoid clashes in SubmitRefIds between systems.

Request content

AttributeTypeRequiredDescription
accountMgrobjectSee the accountMgr section below.
branchstringThe branch code. Branches must be enabled.
calcPricesFromTaxPaidbooleanDefault is according Tools->Options Job, Calc Tax Total From.
commentsarray of objectSee the comments section below.
customanyA free-form JSON object carrying additional data for custom processing. Used where custom processing is required and additional data must be passed to that custom processing.
customerobjectThe customer the quote is for.
See the customer section below.
custRefNostringThe customer's reference for the quote.
dateRequiredstringThe date due for the new Quote. Must be in ISO date format - eg "2020-01-31"
dateValidstringThe date the Quote is valid till. Must be in ISO date format - eg "2020-01-31"
faultDescstringThe fault description.
footerstringFree-text footer shown at the bottom of the quote.
fromobjectSee the from section below.
glDeptstringThe GL department code. GL departments must be enabled.
headerstringFree-text header shown at the top of the quote.
invoiceDescstringThe description shown on the invoice.
itemCodestringThe item code.
itemDescstringThe item description.
ourRefstringOur reference for the quote.
paysTaxbooleanFlag to indicate if the customer is to pay GST. Should normally be left to default (set by customer CardFile)
probabilitystringThe probability (as a percentage) of winning the quote.
projectCodestringThe code of the project (contract) to associate the quote with.
quoteTypestringThe Quote type. If omitted the Quote type will be Normal. Can be set to Back Order or TASK.
serialNostringThe item's serial number.
shipAddressobjectSee the shipAddress section below.
shipAttnstringThe ship-to contact (attention) name.
shipEmailstringThe ship-to contact email address.
shipPhonestringThe ship-to contact phone number.
shipToobjectSee the shipTo section below.
shipViastringThe carrier or method the goods are shipped via.
statusstringThe status for the Quote. This status must be valid per workflow from Booked.
stockLinesarray of objectSee the stockLines section below.
subBranchstringThe sub-branch code. Sub-branches must be enabled. Note that in the UI sub-branches may be renamed.
submitRefIDstringA unique reference for the create request. This reference must be unique for each object and can be used to ensure duplicate objects are not created when re-trying API calls. Note this reference must be unique in Jim2, so if multiple systems are creating objects care must be taken to avoid clashes between the different system's submit ref id. Refer also to the SubmitRefId url query parameter for relevant endpoints.

accountMgr

Attributes of the accountMgr object.

AttributeTypeRequiredDescription
cardCodestringcardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).
cardNointegercardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).

comments

Attributes of each element in the comments array.

AttributeTypeRequiredDescription
commentstringThe comment text.

customer

Attributes of the customer object.

AttributeTypeRequiredDescription
cardCodestringcardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).
cardNointegercardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).

from

Attributes of the from object.

AttributeTypeRequiredDescription
cardCodestringcardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).
cardNointegercardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).

shipAddress

Attributes of the shipAddress object.

AttributeTypeRequiredDescription
addressLine1stringThe ship-to street address. Multiple lines can be included, separated by new lines.
addressLine2stringAn optional second line of the ship-to street address (see addressLine1).
countrystringThe ship-to country.
customerNamestringcustomer name as first line.
isAddressResidentialbooleanis this a residential address?
postcodestringThe ship-to post code.
statestringThe ship-to state.
suburbstringThe ship-to suburb.

shipTo

Attributes of the shipTo object.

AttributeTypeRequiredDescription
cardCodestringcardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).
cardNointegercardCode or cardNo are required. If both are supplied that must be consitent with each other (ie match what is stored within Jim2).

stockLines

Attributes of each element in the stockLines array.

AttributeTypeRequiredDescription
qtynumberThe quantity of the stock to add to the quote.
recommendbooleanDefault is true. Indicates if this stock line is to be ticked as recommended.
stockCodestringThe Jim2 stock code (the Jim2 user is buying the stock)
stockDescriptionstringThe stock description. Only required if the default stock description needs to be overridden. It is recommended this be set for special stock.
unitPriceTFnumberThe price ex. If no price is required then Jim2's default Job pricing will be used. However, only one of unitPriceTF or unitPriceTP can be provided. It is recommended to specify unitPriceTP if calcPriceFromTaxPaid is true.
unitPriceTPnumberThe price inc. If no price is required then Jim2's default Job pricing will be used. However, only one of PriceTF or PriceTP can be provided.It is recommended to specify unitPriceTF if calcPriceFromTaxPaid is false.
unitQtynumberThe number of base units contained in each unit of measure (eg 12 for a box of 12). If omitted, 1 is used.

Response content

AttributeTypeDescription
quoteNointegerThe number of the created quote.

Example POST

Path: /api/v1/quotecreate

Request:

{
    "submitRefID": "QUOTE-REQ-0001",
    "quoteType": "Normal",
    "customer": {
        "cardCode": "CUST.1"
    },
    "shipTo": {
        "cardCode": "CUST.1"
    },
    "from": {
        "cardCode": "CUST.1"
    },
    "dateRequired": "2026-07-15",
    "dateValid": "2026-07-31",
    "status": "Booked",
    "accountMgr": {
        "cardCode": "STAFF.AM"
    },
    "branch": "SYD",
    "subBranch": "SYD-NORTH",
    "glDept": "SALES",
    "probability": "50",
    "custRefNo": "PO-44821",
    "ourRef": "QUOTE-REF-01",
    "serialNo": "SN-12345",
    "shipAttn": "Receiving Dock",
    "shipAddress": {
        "customerName": "Acme Corporation Pty Ltd",
        "isAddressResidential": false,
        "addressLine1": "12 Industrial Ave",
        "addressLine2": "Building B",
        "suburb": "Chatswood",
        "state": "NSW",
        "postcode": "2067",
        "country": "Australia"
    },
    "shipVia": "Courier Express",
    "shipPhone": "02 9999 0000",
    "shipEmail": "dispatch@acme.example",
    "projectCode": "PRJ-001",
    "paysTax": true,
    "calcPricesFromTaxPaid": false,
    "itemCode": "WIDGET-1",
    "itemDesc": "Widget assembly",
    "faultDesc": "Quote for replacement unit.",
    "invoiceDesc": "Supply and fit widget assembly.",
    "header": "Thank you for your enquiry.",
    "footer": "Prices valid for 30 days.",
    "comments": [
        {
            "comment": "Initial quote note."
        }
    ],
    "stockLines": [
        {
            "stockCode": "WIDGET-1",
            "stockDescription": "Widget assembly (special)",
            "unitQty": 1,
            "qty": 2,
            "unitPriceTF": 100.00,
            "recommend": true
        }
    ],
    "custom": {
        "externalRef": "EXT-12345"
    }
}

Response:

This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.

{
    "quoteNo": 2
}