By calling the URL endpoint with the GET method, this endpoint returns a quotation JSON object for the specific ID defined in the URL parameter.
Example:
Get the JSON object for the Quotation whose ID is E918L8AX3QUJS89C (call URL https://api.erpag.com/quotation?id=E918L8AX3QUJS89C with GET method)
Result:
{
"quotation": {
"quotation": "QT-000001",
"documentDate": "12/15/2023 3:30:28 PM"
},
"customer": {
"key": "0001",
"customer": "Acme ltd",
"eMail": "[email protected]",
"taxIdentificationNumber": "",
"termsOfPayment": "Due on receipt"
},
"billingAddress": {
"address1": "W Torrino Ave",
"address2": "",
"city": "Las Vegas",
"stateProvince": "NV",
"zipCode": "89101",
"country": ""
},
"shippingAddress": {
"name": "",
"address1": "Las Vegas blv",
"address2": "",
"city": "Las Vegas",
"stateProvince": "NV",
"zipCode": "89201",
"country": ""
},
"items": [
{
"productsAndServices": {
"sku": "0001",
"description": "Item 01",
"eanUpc": ""
},
"defaultUom": {
"quantity": 12,
"uom": "pcs"
},
"discountPercent": 0,
"price": 1000,
"taxPercent": 20,
"productType": ""
}
],
"taxes": [
{
"taxRates": {
"description": "Tax",
"taxBase": 12000,
"rate": 20,
"tax": 200
}
}
]
}Note: Access to this API endpoint is allowed only for selected API User account using the API key and API password in the request header with the key name “Authorization” and key value “Basic base64encoded(api_key:api_password)“, or URL parameters ApiKey and ApiSecret for example https://api.erpag.com/quotation?ApiKey=key_056a9spfg1qubg34e409ee233d&ApiSecret=sec_IKJ4Sc2G8jHfr3sHbxQwEfev-Az-1YaF
BLOCKLY SCRIPT