Create an Invoice with an Unmatched Line with Project Information

Your accounts payable user wants to create an invoice with one line that has project information.

The supported media type for this operation is:
  • Content-Type: application/vnd.oracle.adf.resourceitem+json

Example URL

Here's an example of the resource URL:

POST

fscmRestApi/resources/11.13.18.05/invoices

cURL Command

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices

Example Request

Here's an example of the request body in JSON format:

{
    "InvoiceNumber": "AND_Unmatched_Project_Invoice1",
    "InvoiceCurrency": "USD",
    "InvoiceAmount": 2212.75,
    "InvoiceDate": "2020-08-01",
    "BusinessUnit": "Vision Operations",
    "Supplier": "Advanced Network Devices",
    "SupplierSite": "FRESNO",
    "InvoiceGroup": "Aug2020",
    "Description": "Office Supplies",
	"invoiceLines": [{
        "LineNumber": 1,
        "LineAmount": 2212.75,
        "DistributionCombination": "01-000-7110-0000-000",
        "TaxClassification": "EXP STD",
		"invoiceLineProjectDff": [{
			"_PROJECT_ID_Display": "BAT-PJCBAT-Proj-02",
			"_TASK_ID_Display": "1.2",
			"_EXPENDITURE_ITEM_DATE": "2020-08-01",
			"_EXPENDITURE_TYPE_ID_Display": "Architects Fees",
			"_ORGANIZATION_ID_Display": "Vision Operations"
		}]
	}]
}

Example Response

Here's an example of the response body in JSON format:

{
  "InvoiceId": 300100208369303,
  "InvoiceNumber": "AND_Unmatched_Project_Invoice1",
  "InvoiceCurrency": "USD",
  "PaymentCurrency": "USD",
  "InvoiceAmount": 2212.75,
  "InvoiceDate": "2020-08-01",
  "BusinessUnit": "Vision Operations",
  "Supplier": "Advanced Network Devices",
  "SupplierNumber": "1013",
  "ProcurementBU": null,
  "SupplierSite": "FRESNO",
  "RequesterId": null,
  "Requester": null,
  "InvoiceGroup": "Aug2020",
  "ConversionRateType": null,
  "ConversionDate": null,
  "ConversionRate": null,
  "AccountingDate": "2020-08-01",
  "Description": "Office Supplies",
  "DeliveryChannelCode": null,
  "DeliveryChannel": null,
  "PayAloneFlag": false,
  "InvoiceSource": null,
  "InvoiceType": null,
  "PayGroup": null,
  "InvoiceReceivedDate": null,
  "PaymentReasonCode": null,
  "PaymentReason": null,
  "PaymentReasonComments": null,
  "RemittanceMessageOne": null,
  "RemittanceMessageTwo": null,
  "RemittanceMessageThree": null,
  "PaymentTerms": null,
  "TermsDate": "2020-08-01",
  "GoodsReceivedDate": null,
  "PaymentMethodCode": "EFT",
  "PaymentMethod": null,
  "SupplierTaxRegistrationNumber": null,
  "FirstPartyTaxRegistrationId": 100000015140353,
  "FirstPartyTaxRegistrationNumber": "SYS12204",
  "LegalEntity": "Vision Operations",
  "LegalEntityIdentifier": null,
  "LiabilityDistribution": "01-000-2210-0000-000",
  "DocumentCategory": null,
  "DocumentSequence": null,
  "VoucherNumber": null,
  "ValidationStatus": null,
  "ApprovalStatus": null,
  "PaidStatus": null,
  "AccountingStatus": null,
  "ApplyAfterDate": null,
  "CanceledFlag": null,
  "AmountPaid": null,
  "BaseAmount": null,
  "PurchaseOrderNumber": null,
  "Party": "Advanced Network Devices",
  "PartySite": "FRESNO",
  "ControlAmount": null,
  "DocumentFiscalClassificationCodePath": null,
  "TaxationCountry": "United States",
  "RoutingAttribute1": null,
  "RoutingAttribute2": null,
  "RoutingAttribute3": null,
  "RoutingAttribute4": null,
  "RoutingAttribute5": null,
  "AccountCodingStatus": null,
  "BudgetDate": "2020-08-01",
  "FundsStatus": null,
  "CanceledDate": null,
  "CanceledBy": null,
  "UniqueRemittanceIdentifier": null,
  "UniqueRemittanceIdentifierCheckDigit": null,
  "CreationDate": "2020-08-11T15:55:10.066+00:00",
  "CreatedBy": "FINUSER1",
  "LastUpdatedBy": "FINUSER1",
  "LastUpdateDate": "2020-08-11T15:55:11.243+00:00",
  "LastUpdateLogin": "ABC6E6521786ACABE0532988F40A73AE",
  "invoiceLines": [
    {
      "LineNumber": 1,
      "LineAmount": 2212.75,
      "AccountingDate": "2020-08-01",
      "UOM": null,
      "TaxRateName": null,
      "LineType": null,
      "AssetBook": null,
      "TrackAsAssetFlag": false,
      "BaseAmount": null,
      "Description": "Office Supplies",
      "IncomeTaxRegion": null,
      "Item": null,
      "ItemDescription": null,
      "LineSource": null,
      "Quantity": null,
      "DistributionCombination": "01-000-7110-0000-000",
      "AssetCategory": "",
      "UnitPrice": null,
      "ProrateAcrossAllItemsFlag": null,
      "LandedCostEnabled": null,
      "DiscardedFlag": false,
      "CanceledFlag": false,
      "IncomeTaxType": "INDE/P",
      "TaxRateCode": null,
      "TaxRate": null,
      "TaxClassification": "EXP STD",
      "GenerateDistributions": "Y",
      "BudgetDate": "2020-08-01",
      "FundsStatus": null,
      "ApprovalStatus": null,
      "DistributionSet": null,
      "Withholding": null,
      "ShipToLocationCode": null,
      "ShipToLocation": null,
      "ShipToCustomerLocation": null,
      "TaxControlAmount": null,
      "AssessableValue": 2212.75,
      "ProductType": null,
      "ProductCategory": null,
      "ProductCategoryCodePath": null,
      "UserDefinedFiscalClassification": null,
      "UserDefinedFiscalClassificationCode": null,
      "IntendedUse": null,
      "IntendedUseCode": null,
      "ProductFiscalClassification": null,
      "ProductFiscalClassificationCode": null,
      "ProductFiscalClassificationType": null,
      "TransactionBusinessCategory": null,
      "TransactionBusinessCategoryCodePath": "PURCHASE_TRANSACTION",
      "Requester": null,
      "PurchasingCategory": null,
      "MatchType": "NOT_MATCHED",
      "MatchOption": null,
      "MatchBasis": null,
      "PurchaseOrderNumber": null,
      "PurchaseOrderLineNumber": null,
      "PurchaseOrderScheduleLineNumber": null,
      "ReceiptNumber": null,
      "ReceiptLineNumber": null,
      "ConsumptionAdviceNumber": null,
      "ConsumptionAdviceLineNumber": null,
      "FinalMatchFlag": null,
      "MultiperiodAccountingStartDate": null,
      "MultiperiodAccountingEndDate": null,
      "MultiperiodAccountingAccrualAccount": "",
      "CreatedBy": "FINUSER1",
      "CreationDate": "2020-08-11T15:55:11.093+00:00",
      "LastUpdateDate": "2020-08-11T15:55:11.094+00:00",
      "LastUpdatedBy": "FINUSER1",
      "LastUpdateLogin": "ABC6E6521786ACABE0532988F40A73AE",
      "RequesterId": null,
      "PrepaymentNumber": null,
      "PrepaymentLineNumber": null,
      "PrepaymentIncludedonInvoiceFlag": null,
      "invoiceLineProjectDff": [
        {
          "InvoiceId": 300100208369303,
          "LineNumber": 1,
          "__FLEX_Context": "AP_Invoice_Line",
          "__FLEX_Context_DisplayValue": "AP: Invoice Line",
          "_PROJECT_ID": 100000019394078,
          "_PROJECT_ID_Display": "BAT-PJCBAT-Proj-02",
          "_TASK_ID": 100000019394095,
          "_TASK_ID_Display": "1.2",
          "_EXPENDITURE_ITEM_DATE": "2020-08-01",
          "_EXPENDITURE_TYPE_ID": 10120,
          "_EXPENDITURE_TYPE_ID_Display": "Architects Fees",
          "_ORGANIZATION_ID": 204,
          "_ORGANIZATION_ID_Display": "Vision Operations",
          "_CONTRACT_ID": null,
          "_CONTRACT_ID_Display": null,
          "_RESERVED_ATTRIBUTE1": null,
          "_RESERVED_ATTRIBUTE1_Display": null,
          "_BILLABLE_FLAG": null,
          "_BILLABLE_FLAG_Display": null,
          "_CAPITALIZABLE_FLAG": null,
          "_CAPITALIZABLE_FLAG_Display": null,
          "_WORK_TYPE_ID": null,
          "_WORK_TYPE_ID_Display": null,
          "links": [
            {
              "rel": "self",
              "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceLineProjectDff/00020000000EACED00057708000110F086511E970000000AACED0005770400000001",
              "name": "invoiceLineProjectDff",
              "kind": "item",
              "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
              }
            },
            {
              "rel": "canonical",
              "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceLineProjectDff/00020000000EACED00057708000110F086511E970000000AACED0005770400000001",
              "name": "invoiceLineProjectDff",
              "kind": "item"
            },
            {
              "rel": "parent",
              "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001",
              "name": "invoiceLines",
              "kind": "item"
            }
          ]
        }
      ],
      "links": [
        {
          "rel": "self",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001",
          "name": "invoiceLines",
          "kind": "item",
          "properties": {
            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
          }
        },
        {
          "rel": "canonical",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001",
          "name": "invoiceLines",
          "kind": "item"
        },
        {
          "rel": "parent",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303",
          "name": "invoices",
          "kind": "item"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceDistributions",
          "name": "invoiceDistributions",
          "kind": "collection"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceLineDff",
          "name": "invoiceLineDff",
          "kind": "collection"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceLineGdf",
          "name": "invoiceLineGdf",
          "kind": "collection"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines/00020000000EACED00057708000110F086511E970000000AACED0005770400000001/child/invoiceLineProjectDff",
          "name": "invoiceLineProjectDff",
          "kind": "collection"
        }
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303",
      "name": "invoices",
      "kind": "item",
      "properties": {
        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
      }
    },
    {
      "rel": "canonical",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303",
      "name": "invoices",
      "kind": "item"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/appliedPrepayments",
      "name": "appliedPrepayments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/attachments",
      "name": "attachments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/availablePrepayments",
      "name": "availablePrepayments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceDff",
      "name": "invoiceDff",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceGdf",
      "name": "invoiceGdf",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceInstallments",
      "name": "invoiceInstallments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100208369303/child/invoiceLines",
      "name": "invoiceLines",
      "kind": "collection"
    }
  ]
}