salesInvoice
POST {{url}}/{{environment}}/api/v2.0/companies({{companyId}})/salesInvoices?tenant={{tenant}}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
tenant | string |
Request Body
{"externalDocumentNumber"=>"", "invoiceDate"=>"2022-12-15", "postingDate"=>"2022-12-15", "dueDate"=>"2022-12-15", "customerPurchaseOrderReference"=>"", "customerId"=>"{{customerId}}", "billToCustomerId"=>"{{customerId}}", "shipToName"=>"Trey Research", "shipToContact"=>"Helen Ray", "sellToAddressLine1"=>"153 Thomas Drive", "sellToAddressLine2"=>"", "sellToCity"=>"Chicago", "sellToCountry"=>"US", "sellToState"=>"IL", "sellToPostCode"=>"61236", "shipToAddressLine1"=>"153 Thomas Drive", "shipToAddressLine2"=>"", "shipToCity"=>"Chicago", "shipToCountry"=>"US", "shipToState"=>"IL", "shipToPostCode"=>"61236", "currencyId"=>"00000000-0000-0000-0000-000000000000", "currencyCode"=>"USD", "paymentTermsId"=>"{{paymentTermId}}", "shipmentMethodId"=>"00000000-0000-0000-0000-000000000000", "salesperson"=>"JO", "discountAmount"=>0, "phoneNumber"=>"", "email"=>"helen.ray@contoso.com"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"@odata.context":"http://bcserver:7048/BC/api/v2.0/$metadata#companies(a19eca60-4a86-ed11-aad5-000d3a38ed32)/salesInvoices/$entity","@odata.etag":"W/\"JzE5Ozg5Mjg0MDE1MzQyMTkyOTQzMTkxOzAwOyc=\"","id":"d270a469-6d88-ed11-af3b-84c6463dfe3c","number":"102222","externalDocumentNumber":"","invoiceDate":"2022-12-15","postingDate":"2022-12-15","dueDate":"2022-12-15","customerPurchaseOrderReference":"","customerId":"4353076f-4a86-ed11-aad5-000d3a38ed32","customerNumber":"10000","customerName":"Adatum Corporation","billToName":"Adatum Corporation","billToCustomerId":"4353076f-4a86-ed11-aad5-000d3a38ed32","billToCustomerNumber":"10000","shipToName":"Trey Research","shipToContact":"Helen Ray","sellToAddressLine1":"153 Thomas Drive","sellToAddressLine2":"","sellToCity":"Chicago","sellToCountry":"US","sellToState":"IL","sellToPostCode":"61236","billToAddressLine1":"153 Thomas Drive","billToAddressLine2":"","billToCity":"Chicago","billToCountry":"US","billToState":"IL","billToPostCode":"61236","shipToAddressLine1":"153 Thomas Drive","shipToAddressLine2":"","shipToCity":"Chicago","shipToCountry":"US","shipToState":"IL","shipToPostCode":"61236","currencyId":"ea15f968-4a86-ed11-aad5-000d3a38ed32","shortcutDimension1Code":"","shortcutDimension2Code":"MEDIUM","currencyCode":"USD","orderId":"00000000-0000-0000-0000-000000000000","orderNumber":"","paymentTermsId":"7a15f968-4a86-ed11-aad5-000d3a38ed32","shipmentMethodId":"00000000-0000-0000-0000-000000000000","salesperson":"JO","pricesIncludeTax":false,"remainingAmount":0,"discountAmount":0,"discountAppliedBeforeTax":false,"totalAmountExcludingTax":0,"totalTaxAmount":0,"totalAmountIncludingTax":0,"status":"Draft","lastModifiedDateTime":"2022-12-30T18:11:46.403Z","phoneNumber":"","email":"helen.ray@contoso.com"}