/
Add serial number to invoice
Add serial number to invoice
We have to achieve the below-specified invoice i.e. Invoice with IMEI number.
The following steps need to be taken:
Step 1: For printing the IMEI number on the invoice, we will have to update the item master in Unicommerce.
As shown above, Item Detail Fields need to be updated beforehand i.e. add imei in Item Detail Fields.
Note: Also we do not have to get the invoice template updated. This is handled in the default template itself.
Step 2: On receiving order processing request, if we receive the serial number then we will call create Invoice with Details API.
Order processing request:
{
"vendorOrderNumber": "31435",
"customerOrderNumber": "TEST00002",
"connectionId": "123",
"externalWmsChannelId" : "",
"thirdPartyShipping": true,
"serialNo" : "5421036"
}
API URL:
https://vikramteas.unicommerce.com/services/rest/v1/createInvoiceWithDetails
CURL
curl --location 'https://vikramteas.unicommerce.com/services/rest/v1/createInvoiceWithDetails' \
--header 'Authorization: bearer ff83178f-e40b-4001-def-be9afee6e755' \
--header 'facility: Test' \
--header 'Content-Type: application/json' \
--data '{
"saleOrderCode": "SO00010",
"invoice": {
"invoiceItems": [
{
"skuCode": "TestSKU",
"saleOrderItemCodes": [
"TestSKU-0"
],
"saleOrderItems": [
{
"saleOrderItemCode": "TestSKU-0",
"itemDetails": [
{
"name": "imei",
"value": "12345678"
}
]
}
],
"total": "500.00",
"quantity": 1
}
]
}
}'
Sample Request Body
{
"saleOrderCode": "SO00013",
"invoice": {
"invoiceItems": [
{
"skuCode": "TestSKU",
"saleOrderItemCodes": [
"TestSKU-0"
],
"saleOrderItems": [
{
"saleOrderItemCode": "TestSKU-0",
"itemDetails": [
{
"name": "imei",
"value": "98765"
}
]
}
],
"total": "500.00",
"quantity": 1
},
{
"skuCode": "TestSKU01",
"saleOrderItemCodes": [
"TestSKU01-0"
],
"saleOrderItems": [
{
"saleOrderItemCode": "TestSKU01-0",
"itemDetails": [
{
"name": "imei",
"value": "9876"
}
]
}
],
"total": "1000.00",
"quantity": 1
}
]
}
}
Sample Response:
{
"successful": true,
"message": null,
"errors": null,
"warnings": null,
"invoiceCode": "INS0010",
"shippingPackageCode": "TEST00011"
}
, multiple selections available,
Related content
Amazon Generate Invoice
Amazon Generate Invoice
More like this
Order Fullfillment new Flow after IMEI Serial Number
Order Fullfillment new Flow after IMEI Serial Number
More like this
Real-time API: AJIO B2B Invoice, B2C Invoice, and Generate Ship Label
Real-time API: AJIO B2B Invoice, B2C Invoice, and Generate Ship Label
More like this
Unicommerce create order
Unicommerce create order
More like this
Order Processing
Order Processing
More like this
Create order new Api (updated with discussed points)
Create order new Api (updated with discussed points)
More like this