POST api/Invoices
Request Information
URI Parameters
None.
Body Parameters
Collection of InvoiceName | Description | Type | Additional information |
---|---|---|---|
SalesForce_Id | string |
None. |
|
EXT_Id__c | string |
None. |
|
QueryId | string |
None. |
|
AccountId | string |
None. |
|
Status | string |
None. |
|
Note__c | string |
None. |
|
EffectiveDate | date |
None. |
|
Discount__c | decimal number |
None. |
|
ActualAmount | decimal number |
None. |
|
CustRefNo | string |
None. |
|
LoyaltyPointsUsed | integer |
None. |
|
LoyaltyPointsAmountUsed | decimal number |
None. |
|
orderItems | Collection of OrderItem |
None. |
Request Formats
application/json, text/json
Sample:
[ { "SalesForce_Id": "sample string 1", "EXT_Id__c": "sample string 2", "QueryId": "sample string 3", "AccountId": "sample string 4", "Status": "sample string 5", "Note__c": "sample string 6", "EffectiveDate": "2025-01-22T20:11:56.1653167+00:00", "Discount__c": 8.1, "ActualAmount": 9.1, "CustRefNo": "sample string 10", "LoyaltyPointsUsed": 11, "LoyaltyPointsAmountUsed": 12.1, "orderItems": [ { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" }, { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" } ] }, { "SalesForce_Id": "sample string 1", "EXT_Id__c": "sample string 2", "QueryId": "sample string 3", "AccountId": "sample string 4", "Status": "sample string 5", "Note__c": "sample string 6", "EffectiveDate": "2025-01-22T20:11:56.1653167+00:00", "Discount__c": 8.1, "ActualAmount": 9.1, "CustRefNo": "sample string 10", "LoyaltyPointsUsed": 11, "LoyaltyPointsAmountUsed": 12.1, "orderItems": [ { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" }, { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models"> <Invoice> <AccountId>sample string 4</AccountId> <ActualAmount>9.1</ActualAmount> <CustRefNo>sample string 10</CustRefNo> <Discount__c>8.1</Discount__c> <EXT_Id__c>sample string 2</EXT_Id__c> <EffectiveDate>2025-01-22T20:11:56.1653167+00:00</EffectiveDate> <LoyaltyPointsAmountUsed>12.1</LoyaltyPointsAmountUsed> <LoyaltyPointsUsed>11</LoyaltyPointsUsed> <Note__c>sample string 6</Note__c> <QueryId>sample string 3</QueryId> <SalesForce_Id>sample string 1</SalesForce_Id> <Status>sample string 5</Status> <orderItems> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> </orderItems> </Invoice> <Invoice> <AccountId>sample string 4</AccountId> <ActualAmount>9.1</ActualAmount> <CustRefNo>sample string 10</CustRefNo> <Discount__c>8.1</Discount__c> <EXT_Id__c>sample string 2</EXT_Id__c> <EffectiveDate>2025-01-22T20:11:56.1653167+00:00</EffectiveDate> <LoyaltyPointsAmountUsed>12.1</LoyaltyPointsAmountUsed> <LoyaltyPointsUsed>11</LoyaltyPointsUsed> <Note__c>sample string 6</Note__c> <QueryId>sample string 3</QueryId> <SalesForce_Id>sample string 1</SalesForce_Id> <Status>sample string 5</Status> <orderItems> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> </orderItems> </Invoice> </ArrayOfInvoice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InvoiceName | Description | Type | Additional information |
---|---|---|---|
SalesForce_Id | string |
None. |
|
EXT_Id__c | string |
None. |
|
QueryId | string |
None. |
|
AccountId | string |
None. |
|
Status | string |
None. |
|
Note__c | string |
None. |
|
EffectiveDate | date |
None. |
|
Discount__c | decimal number |
None. |
|
ActualAmount | decimal number |
None. |
|
CustRefNo | string |
None. |
|
LoyaltyPointsUsed | integer |
None. |
|
LoyaltyPointsAmountUsed | decimal number |
None. |
|
orderItems | Collection of OrderItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "SalesForce_Id": "sample string 1", "EXT_Id__c": "sample string 2", "QueryId": "sample string 3", "AccountId": "sample string 4", "Status": "sample string 5", "Note__c": "sample string 6", "EffectiveDate": "2025-01-22T20:11:56.1809195+00:00", "Discount__c": 8.1, "ActualAmount": 9.1, "CustRefNo": "sample string 10", "LoyaltyPointsUsed": 11, "LoyaltyPointsAmountUsed": 12.1, "orderItems": [ { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" }, { "Id": 1, "prodId": "sample string 2", "Quantity": 3, "UnitPrice": 4.1, "Discount__c": 5.1, "whsCode": "sample string 6" } ] }
application/xml, text/xml
Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models"> <AccountId>sample string 4</AccountId> <ActualAmount>9.1</ActualAmount> <CustRefNo>sample string 10</CustRefNo> <Discount__c>8.1</Discount__c> <EXT_Id__c>sample string 2</EXT_Id__c> <EffectiveDate>2025-01-22T20:11:56.1809195+00:00</EffectiveDate> <LoyaltyPointsAmountUsed>12.1</LoyaltyPointsAmountUsed> <LoyaltyPointsUsed>11</LoyaltyPointsUsed> <Note__c>sample string 6</Note__c> <QueryId>sample string 3</QueryId> <SalesForce_Id>sample string 1</SalesForce_Id> <Status>sample string 5</Status> <orderItems> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> <OrderItem> <Discount__c>5.1</Discount__c> <Id>1</Id> <Quantity>3</Quantity> <UnitPrice>4.1</UnitPrice> <prodId>sample string 2</prodId> <whsCode>sample string 6</whsCode> </OrderItem> </orderItems> </Invoice>