Specification - Job & Invoice API (Ver 1.3) (1) (1) 1
Specification - Job & Invoice API (Ver 1.3) (1) (1) 1
Software Requirements
Specification
Table of Contents
1. Introduction ..............................................................................................................................2
1.1 Context ........................................................................................................................................ 2
1.2 Project Scope ............................................................................................................................... 2
2. Requirement – POST Job API................................................................................................3
2.1 Context ........................................................................................................................................ 3
2.2 API URL ...................................................................................................................................... 3
2.3 API Data Fields ........................................................................................................................... 3
2.4 API Error Handling ..................................................................................................................... 4
2.5 API Sample .................................................................................................................................. 4
3. Requirement – DELETE Job API ..........................................................................................6
3.1 Context ........................................................................................................................................ 6
3.2 API URL ...................................................................................................................................... 6
3.3 API Data Fields ........................................................................................................................... 6
3.4 API Error Handling ..................................................................................................................... 6
3.5 API Sample .................................................................................................................................. 7
4. Requirement – POST Invoice API .........................................................................................7
4.1 Context ........................................................................................................................................ 7
4.2 API URL ...................................................................................................................................... 7
4.3 API Data Fields ........................................................................................................................... 7
4.4 API Error Handling ..................................................................................................................... 8
4.5 API Sample .................................................................................................................................. 9
5. Requirement – DELETE Invoice API..................................................................................11
5.1 Context ...................................................................................................................................... 11
5.2 API URL .................................................................................................................................... 11
5.3 API Data Fields ......................................................................................................................... 11
5.4 API Error Handling ................................................................................................................... 11
5.5 API Sample ................................................................................................................................ 11
1|Page
Innosys Pte Ltd Specification Ver No.: 1.3
Revision History
Author Date Reason For Changes Version
Kelvin Tan 3 Nov 22 First Version 1.0
Kelvin Tan 8 Dec 22 Add API Sample 1.1
Kelvin Tan 4 Jan 23 Correct to lowercase on sample 1.2
Kelvin Tan 13 May 24 Add samples to each API 1.3
1. Introduction
1.1 Context
Eagletainer is using MRI system for operation and Freight Master for finance. Eagletainer will input the
shipment and invoice in MRI, and would like both system to be integrated so that MRI can pass the shipment
(job) info and invoice info into Freight Master.
2|Page
Innosys Pte Ltd Specification Ver No.: 1.3
2.1 Context
The POST Job API is to submit the job info in order to create a new job, or update a previously submitted job
into Freight Master system. API will check the job_number to determine if the job is created before.
For Production,
https://api.freightmaster.com.sg/radserver/FM/Post_Job
4|Page
Innosys Pte Ltd Specification Ver No.: 1.3
{
"header":{
"client_id": "MRI00001234",
"client_secret": "lAi9B8XalK-D1kbJhakilkA",
"version": "8.1"
},
"job_info":{
"job_number": "SE2212-0001",
"job_type": "SE",
"master_number": "MBL99010001",
"house_number": "HBL99010002",
"customer_code": "ABC001",
"customer_name": "ABC Company Limited",
"shipper_code": "ABC001",
"shipper_name": "ABC Company Limited",
"consignee_code": "DEF001",
"consignee_name": "DEF Company Limited",
"origin_code": "SGSIN",
"destination_code": "USNYC",
"etd": "20221115",
"eta": "20221207",
"gross_weight": "129.3",
"cargo_content_1": "SPARE PARTS",
"container":[
{
"container_number": "OOCL12345678",
"size": "20’"
}
]
}
}
5|Page
Innosys Pte Ltd Specification Ver No.: 1.3
"message": "Value provided exceeded the allowed length"
}]
}
}
3.1 Context
The DELETE Job API is to instruct to delete a previously transmitted job.
For Production,
https://api.freightmaster.com.sg/radserver/FM/Delete_Job
4.1 Context
The POST Job API is to submit the invoice info in order to create a new invoice, or update a previously
submitted invoice into Freight Master system. API will check the invoice_number to determine if the job is
created before.
For Production,
https://api.freightmaster.com.sg/radserver/FM/Post_Invoice
7|Page
Innosys Pte Ltd Specification Ver No.: 1.3
customer_name String 50 M
address1 String 50 O Address line 1
address2 String 50 O Address line 2
address3 String 50 O Address line 3
address4 String 50 O Address line 4
currency_code String 3 M 3 letter currency code
exchange_rate Decimal 24,8 M
invoice_date Date M Date in yyyymmdd format
credit_terms Integer M 0 for COD or Cash terms
Total amount in the mentioned
total_amount Decimal 24,2 O
currency_code
Sub-object of invoice_info, allow 1 or
items Object M
more.
item_code String 16 M Charge item code or ID
description String 100 M Charge description
Singapore’s GST Code
SR – Standard Rated
SR, ZR, OS,
tax_code2 String 4 M ZR – Zero Rated
ES33
OS – Out of Scope
ES33 - Exempted
tax_percentage Decimal 5,2 M Tax percentage, indicate 0 if none.
currency_code String 3 M 3 letter currency code of this charge item
exchange_rate Decimal 24,8 M Exchange rate of this charge item
quantity Decimal 24,8 M
unit_rate Decimal 24,8 M Unit price base on item’s currency
Amount of this item base on invoice’s
item_amount Decimal 24,8 M
currency_code
Tax amount of this item base on invoice’s
tax_amount Decimal 24,8 M
currency_code
2
This is Singapore’s Tax Code. Different company or country may have different Tax Code, please communicate with connecting
party to get their Tax Code.
9|Page
Innosys Pte Ltd Specification Ver No.: 1.3
"total_amount": "150.00",
"items":[
{
"item_code": "SE001",
"description": "FREIGHT CHARGES",
"tax_code": "SR",
"tax_percentage": "8",
"currency_code": "SGD",
"exchange_rate": "1.00000",
"quantity": "1",
"unit_rate": "100",
"item_amount": "100",
"tax_amount": "8"
},
{
"item_code": "SE002",
"description": "FORKLIFT CHARGE",
"tax_code": "SR",
"tax_percentage": "8",
"currency_code": "SGD",
"exchange_rate": "1.00000",
"quantity": "1",
"unit_rate": "50",
"item_amount": "50",
"tax_amount": "4"
}]
}
]
}
10 | P a g e
Innosys Pte Ltd Specification Ver No.: 1.3
5.1 Context
The DELETE Invoice API is to instruct to delete a previously transmitted invoice.
For Production,
https://api.freightmaster.com.sg/radserver/FM/Delete_Invoice
11 | P a g e
Innosys Pte Ltd Specification Ver No.: 1.3
{
"header":{
"client_id": "MRI00001234",
"client_secret": "lAi9B8XalK-D1kbJhakilkA",
"version": "8.1"
},
"invoice_info":[
{
"invoice_number": "INVSE2212-0001"
}
]
}
12 | P a g e