Create an Invoice with Automatic Receipt Method
A customer goes to your web store and places an order for a computer monitor. The invoice is paid with an automatic receipt method.
Example URL
Here's an example of the resource URL:
POST
fscmRestApi/resources/11.13.18.05/receivablesInvoices
cURL Command
curl --user <username>:<password> -X POST -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" --data @invoice_with_automatic_receipt_method_payload.json https://<host>:<port>/fscmRestApi/resources/<version>/receivablesInvoices
Example Request
Here's an example of the request body in JSON format::
{
"AccountingDate": "2018-12-19",
"BillToCustomerNumber": "1008",
"BusinessUnit": "Vision Operations",
"TransactionDate": "2018-12-19",
"TransactionNumber": "Aito02",
"FirstPartyRegistrationNumber" : "4567890",
"ThirdPartyRegistrationNumber" : null,
"PaymentTerms": "Immediate",
"ReceiptMethod": "ACH",
"TransactionSource": "AR_Trans Source_08",
"TransactionType": "Invoice_35",
"receivablesInvoiceLines": [
{
"Description": "Monitor",
"Quantity": 10,
"UnitSellingPrice": 15
}
]
}
Example Response
Here's an example of the response body in JSON format:
{
"CustomerTransactionId": 300100170996493,
"DueDate": null,
"ConversionDate": null,
"ConversionRate": null,
"InvoiceCurrencyCode": "USD",
"SpecialInstructions": null,
"CrossReference": null,
"DocumentNumber": null,
"TransactionNumber": "Aito02",
"TransactionDate": "2018-12-19",
"TransactionType": "Invoice_35",
"TransactionSource": "AR_Trans Source_08",
"BillToCustomerNumber": "1008",
"BillToSite": "Foster City (OPS)",
"Comments": null,
"InternalNotes": null,
"PaymentTerms": "Immediate",
"LegalEntityIdentifier": "USSYS12030",
"ConversionRateType": null,
"PurchaseOrder": null,
"PurchaseOrderDate": null,
"PurchaseOrderRevision": null,
"FirstPartyRegistrationNumber": "4567890",
"ThirdPartyRegistrationNumber": null,
"InvoicingRule": null,
"ShipToCustomerName": "Total Internet",
"ShipToCustomerNumber": "1008",
"BillingDate": null,
"BusinessUnit": "Vision Operations",
"InvoiceStatus": null,
"AccountingDate": "2018-12-19",
"ShipToSite": null,
"PayingCustomerName": null,
"PayingCustomerSite": null,
"BillToCustomerName": null,
"FreightAmount": null,
"Carrier": null,
"ShipDate": null,
"ShippingReference": null,
"BillToContact": null,
"ShipToContact": null,
"PrintOption": null,
"CreatedBy": "AR_MGR_OPERATIONS",
"CreationDate": "2018-12-19T06:40:06.003+00:00",
"LastUpdatedBy": "AR_MGR_OPERATIONS",
"LastUpdateDate": "2018-12-19T06:40:06.420+00:00",
"PayingCustomerAccount": null,
"SoldToPartyNumber": null,
"RemitToAddress": null,
"DefaultTaxationCountry": null,
"EnteredAmount": null,
"InvoiceBalanceAmount": null,
"Prepayment": null,
"Intercompany": null,
"DocumentFiscalClassification": null,
"BankAccountNumber": null,
"CreditCardAuthorizationRequestIdentifier": null,
"CreditCardExpirationDate": null,
"CreditCardIssuerCode": null,
"CreditCardTokenNumber": null,
"CreditCardVoiceAuthorizationCode": null,
"CreditCardErrorCode": null,
"CreditCardErrorText": null,
"CardHolderLastName": null,
"CardHolderFirstName": null,
"ReceiptMethod": "ACH",
"SalesPersonNumber": null,
"StructuredPaymentReference": null,
"receivablesInvoiceLines": [
{
"CustomerTransactionLineId": 300100170996494,
"LineNumber": 1,
"Description": "Monitor",
"Quantity": 10,
"UnitSellingPrice": 15,
"TaxClassificationCode": null,
"SalesOrder": null,
"AccountingRuleDuration": null,
"RuleEndDate": null,
"RuleStartDate": null,
"AccountingRule": null,
"Warehouse": null,
"MemoLine": null,
"UnitOfMeasure": null,
"ItemNumber": null,
"AllocatedFreightAmount": null,
"AssessableValue": null,
"SalesOrderDate": null,
"LineAmount": null,
"CreatedBy": "AR_MGR_OPERATIONS",
"CreationDate": "2018-12-19T06:40:06.237+00:00",
"LastUpdatedBy": "AR_MGR_OPERATIONS",
"LastUpdateDate": "2018-12-19T06:40:06.427+00:00",
"TransacationBusinessCategory": null,
"UserDefinedFiscalClassification": null,
"ProductFiscalClassification": null,
"ProductCategory": null,
"ProductType": null,
"LineIntendedUse": null,
"LineAmountIncludesTax": null,
"TaxInvoiceDate": null,
"TaxInvoiceNumber": null,
"TaxExemptionCertificateNumber": null,
"TaxExemptionHandling": null,
"TaxExemptionReason": null,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494",
"name": "receivablesInvoiceLines",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494",
"name": "receivablesInvoiceLines",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493",
"name": "receivablesInvoices",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/memoLines",
"name": "memoLines",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/warehouses",
"name": "warehouses",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/itemNumbers",
"name": "itemNumbers",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/productCategories",
"name": "productCategories",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/userDefinedFiscClasses",
"name": "userDefinedFiscClasses",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/exemptReasonCodes",
"name": "exemptReasonCodes",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/taxExemptHandlingStatuses",
"name": "taxExemptHandlingStatuses",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/transactionBizCategories",
"name": "transactionBizCategories",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/productFiscClassifications",
"name": "productFiscClassifications",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/accountingRules",
"name": "accountingRules",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/unitOfMeasures",
"name": "unitOfMeasures",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/lov/productTypes",
"name": "productTypes",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/child/receivablesInvoiceLineGdf",
"name": "receivablesInvoiceLineGdf",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/child/receivablesInvoiceLineTaxLines",
"name": "receivablesInvoiceLineTaxLines",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/child/receivablesInvoiceLineDFF",
"name": "receivablesInvoiceLineDFF",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/child/attachments",
"name": "attachments",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines/300100170996494/child/receivablesInvoiceLineTransactionDFF",
"name": "receivablesInvoiceLineTransactionDFF",
"kind": "collection"
}
]
}
],
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493",
"name": "receivablesInvoices",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493",
"name": "receivablesInvoices",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/transactionSources",
"name": "transactionSources",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/businessUnits",
"name": "businessUnits",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/PaymentTermsVA",
"name": "PaymentTermsVA",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/thirdPartyTaxRegistrationNumbers",
"name": "thirdPartyTaxRegistrationNumbers",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/invoiceStatuses",
"name": "invoiceStatuses",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/shipToCustomers",
"name": "shipToCustomers",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/billToCustomers",
"name": "billToCustomers",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/legalEntities",
"name": "legalEntities",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/invoicingRules",
"name": "invoicingRules",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/billToSites",
"name": "billToSites",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/taxationCountries",
"name": "taxationCountries",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/firstPartyTaxRegistrationNumbers",
"name": "firstPartyTaxRegistrationNumbers",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/lov/transactionTypes",
"name": "transactionTypes",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceLines",
"name": "receivablesInvoiceLines",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceTransactionDFF",
"name": "receivablesInvoiceTransactionDFF",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceGdf",
"name": "receivablesInvoiceGdf",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceInstallments",
"name": "receivablesInvoiceInstallments",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/receivablesInvoiceDFF",
"name": "receivablesInvoiceDFF",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/attachments",
"name": "attachments",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/receivablesInvoices/300100170996493/child/notes",
"name": "notes",
"kind": "collection"
}
]
}