API - /fscmRestApi/resources/11.13.18.05/draftPurchaseOrders
Operation : POST
On execution this will create PO in Draft Status
Sample REST API call to Create PO in Oracle Fusion
{
"ProcurementBU": "TEST US BU", //Enter BU Name
"RequisitioningBU": "TEST US BU", //Enter BU Name
"RequiredAcknowledgment": "None",
"Description": "REST API Test",
"Buyer": "Buyer Name",
"Supplier": "Supplier Name",
"CurrencyCode": "USD",
"Currency": "US Dollar",
"SupplierSite": "Supplier Site Name",
"BillToLocation": "BL001",
"DefaultShipToLocation": "BL001",
"SupplierCommunicationMethod": "EMAIL",
"SupplierEmailAddress": "TallManufacturing@example.com",
"BuyerManagedTransportFlag": true,
"PayOnReceiptFlag": "N",
"PaymentTerms": "01",
"FOB": null,
"FreightTerms": null,
"NoteToReceiver": "This is a note to Receiver",
"NoteToSupplier": "This is a note to Supplier",
"Carrier": null,
"ServiceLevel": null,
"ModeOfTransport": null,
"lines":[{
"LineNumber":1,
"LineType":"Goods",
"Item":"AS54822",
"CategoryCode":"DEFAULT",
"Category":"Default",
"Description":"Laptop",
"Quantity":1,
"UOM":"Each",
"Price": 397.95,
"schedules":[
{
"ScheduleNumber":1,
"Quantity":1,
"ShipToLocation":"SL001",
"ShipToOrganization": "M01",
"ReceiptCloseTolerancePercent":0,
"InvoiceMatchOptionCode": "P",
"InvoiceMatchOption": "Order",
"EarlyReceiptToleranceDays":0,
"InvoiceCloseTolerancePercent":0,
"LateReceiptToleranceDays":0,
"AccrueAtReceiptFlag":true,
"InspectionRequiredFlag":true,
"ReceiptRequiredFlag":false,
"ReceiptRoutingId": 3,
"ReceiptRouting": "Direct delivery",
"DestinationTypeCode": "INVENTORY",
"MatchApprovalLevelCode": "3-Way",
"MatchApprovalLevel": "3 Way",
"RequestedDeliveryDate": "2023-05-12",
"distributions": [
{
"DistributionNumber": 1,
"DeliverToLocationCode": "DL001",
"Quantity": 1
}
]
}
]
}]
}
"ProcurementBU": "TEST US BU", //Enter BU Name
"RequisitioningBU": "TEST US BU", //Enter BU Name
"RequiredAcknowledgment": "None",
"Description": "REST API Test",
"Buyer": "Buyer Name",
"Supplier": "Supplier Name",
"CurrencyCode": "USD",
"Currency": "US Dollar",
"SupplierSite": "Supplier Site Name",
"BillToLocation": "BL001",
"DefaultShipToLocation": "BL001",
"SupplierCommunicationMethod": "EMAIL",
"SupplierEmailAddress": "TallManufacturing@example.com",
"BuyerManagedTransportFlag": true,
"PayOnReceiptFlag": "N",
"PaymentTerms": "01",
"FOB": null,
"FreightTerms": null,
"NoteToReceiver": "This is a note to Receiver",
"NoteToSupplier": "This is a note to Supplier",
"Carrier": null,
"ServiceLevel": null,
"ModeOfTransport": null,
"lines":[{
"LineNumber":1,
"LineType":"Goods",
"Item":"AS54822",
"CategoryCode":"DEFAULT",
"Category":"Default",
"Description":"Laptop",
"Quantity":1,
"UOM":"Each",
"Price": 397.95,
"schedules":[
{
"ScheduleNumber":1,
"Quantity":1,
"ShipToLocation":"SL001",
"ShipToOrganization": "M01",
"ReceiptCloseTolerancePercent":0,
"InvoiceMatchOptionCode": "P",
"InvoiceMatchOption": "Order",
"EarlyReceiptToleranceDays":0,
"InvoiceCloseTolerancePercent":0,
"LateReceiptToleranceDays":0,
"AccrueAtReceiptFlag":true,
"InspectionRequiredFlag":true,
"ReceiptRequiredFlag":false,
"ReceiptRoutingId": 3,
"ReceiptRouting": "Direct delivery",
"DestinationTypeCode": "INVENTORY",
"MatchApprovalLevelCode": "3-Way",
"MatchApprovalLevel": "3 Way",
"RequestedDeliveryDate": "2023-05-12",
"distributions": [
{
"DistributionNumber": 1,
"DeliverToLocationCode": "DL001",
"Quantity": 1
}
]
}
]
}]
}
No comments:
Post a Comment