REST API for AP invoice creation | How to create standard invoice in payables by using REST API
How to create Standard AP Invoice by using REST API in fusion.
API LINK :- https://passyour link info.com/fscmRestApi/resources/11.13.18.05/invoices
payload:-
{
"InvoiceNumber": "REST_1003",
"InvoiceCurrency": "INR",
"InvoiceAmount": 200,
"InvoiceDate": "2022-09-10",
"BusinessUnit": "OAL Private Limited",
"Supplier": "Test Supplier App99",
"SupplierSite": "DELHI-APP1099",
"InvoiceGroup": "REST-External",
"Description": "TESTING REST API",
"invoiceInstallments": [
{
"InstallmentNumber": 1,
"DueDate": "2022-09-10",
"GrossAmount": 110
},
{
"InstallmentNumber": 2,
"DueDate": "2022-09-15",
"GrossAmount": 90
}
],
"invoiceLines": [
{
"LineNumber": 1,
"LineAmount": 110,
"DistributionCombination": "11.99999.9999.999.5201217.99.99.9999",
"Description": "TESTING REST LINE-1",
"invoiceDistributions": [{
"DistributionLineNumber": 1,
"DistributionLineType": "Item",
"DistributionAmount": 110,
"DistributionCombination": "11.99999.9999.999.5201217.99.99.9999",
"Description": "TESTING REST LINE-1.1"
}]
},
{
"LineNumber": 2,
"LineAmount": 90,
"DistributionCombination": "11.99999.9999.999.5201218.99.99.9999",
"Description": "TESTING REST LINE-2",
"invoiceDistributions": [{
"DistributionLineNumber": 1,
"DistributionLineType": "Item",
"DistributionAmount": 90,
"DistributionCombination": "11.99999.9999.999.5201218.99.99.9999",
"Description": "TESTING REST LINE-2.1"
}]
}
]
}
"InvoiceNumber": "REST_1003",
"InvoiceCurrency": "INR",
"InvoiceAmount": 200,
"InvoiceDate": "2022-09-10",
"BusinessUnit": "OAL Private Limited",
"Supplier": "Test Supplier App99",
"SupplierSite": "DELHI-APP1099",
"InvoiceGroup": "REST-External",
"Description": "TESTING REST API",
"invoiceInstallments": [
{
"InstallmentNumber": 1,
"DueDate": "2022-09-10",
"GrossAmount": 110
},
{
"InstallmentNumber": 2,
"DueDate": "2022-09-15",
"GrossAmount": 90
}
],
"invoiceLines": [
{
"LineNumber": 1,
"LineAmount": 110,
"DistributionCombination": "11.99999.9999.999.5201217.99.99.9999",
"Description": "TESTING REST LINE-1",
"invoiceDistributions": [{
"DistributionLineNumber": 1,
"DistributionLineType": "Item",
"DistributionAmount": 110,
"DistributionCombination": "11.99999.9999.999.5201217.99.99.9999",
"Description": "TESTING REST LINE-1.1"
}]
},
{
"LineNumber": 2,
"LineAmount": 90,
"DistributionCombination": "11.99999.9999.999.5201218.99.99.9999",
"Description": "TESTING REST LINE-2",
"invoiceDistributions": [{
"DistributionLineNumber": 1,
"DistributionLineType": "Item",
"DistributionAmount": 90,
"DistributionCombination": "11.99999.9999.999.5201218.99.99.9999",
"Description": "TESTING REST LINE-2.1"
}]
}
]
}
Comments
Post a Comment