POST Suppliapi/Invoices/SendInvoice

Request Information

URI Parameters

None.

Body Parameters

InvoiceInfo
NameDescriptionTypeAdditional information
header

invoicesHeader

None.

list_details

Collection of invoicesDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "header": {
    "invoicesHeaderId": 1,
    "invoicesNumber": "sample string 2",
    "genTipoDocumentoId": 3,
    "orderTypeId": 4,
    "orderSourceId": 5,
    "orderStatusId": 6,
    "orderProcessId": 7,
    "warehouseId": 1,
    "impOrderId": 1,
    "qouteId": 1,
    "accountId": 8,
    "contactId": 9,
    "accountRepId": 10,
    "accountTermId": 1,
    "orderDate": "2021-08-05T19:09:07.9698574-06:00",
    "shipDate": "2021-08-05T19:09:07.9698574-06:00",
    "refNumber": "sample string 12",
    "accountName": "sample string 13",
    "accountRepName": "sample string 14",
    "contactName": "sample string 15",
    "customerPO": "sample string 16",
    "addressLine": "sample string 17",
    "addressLine2": "sample string 18",
    "addressLine3": "sample string 19",
    "city": "sample string 20",
    "state": "sample string 21",
    "country": "sample string 22",
    "postalCode": "sample string 23",
    "longitude": 1.1,
    "latitude": 1.1,
    "freightAmount": 1.0,
    "shippingAmount": 1.0,
    "taxAmount1": 1.0,
    "taxAmount2": 1.0,
    "miscAmount1": 1.0,
    "miscAmount2": 1.0,
    "discountAmount": 1.0,
    "totalAmount": 1.0,
    "totalGrossWeight": 1.0,
    "memo": "sample string 24",
    "emailTo": "sample string 25",
    "faxTo": "sample string 26",
    "toPrint": true,
    "toFax": true,
    "toEmail": true,
    "void": true,
    "tenantId": 31,
    "updatedById": 1,
    "createdById": 32,
    "modifyDateTime": "2021-08-05T19:09:07.9728423-06:00",
    "insertDateTime": "2021-08-05T19:09:07.9728423-06:00",
    "pendingAmount": 1.0
  },
  "list_details": [
    {
      "invoicesDetailId": 1,
      "invoicesHeaderId": 2,
      "itemStatusId": 3,
      "impOrderDetailId": 1,
      "itemId": 4,
      "itemUMId": 1,
      "warehouseLocationId": 1,
      "itemCode": "sample string 5",
      "upcCode": "sample string 6",
      "lotNo": "sample string 7",
      "serialNo": "sample string 8",
      "lineNumber": 9,
      "itemName": "sample string 10",
      "quantity": 11.0,
      "qtySent": 1.0,
      "price": 12.0,
      "discount": 1.0,
      "miscAmount": 1.0,
      "totalAmount": 13.0,
      "packSize": 1,
      "itemUMCode": "sample string 14",
      "unitWeight": 1.0,
      "grossWeight": 1.0,
      "memo": "sample string 15",
      "isCredit": true,
      "void": true,
      "tenantId": 18,
      "updatedById": 1,
      "createdById": 19,
      "modifyDateTime": "2021-08-05T19:09:07.9768872-06:00",
      "insertDateTime": "2021-08-05T19:09:07.9768872-06:00"
    },
    {
      "invoicesDetailId": 1,
      "invoicesHeaderId": 2,
      "itemStatusId": 3,
      "impOrderDetailId": 1,
      "itemId": 4,
      "itemUMId": 1,
      "warehouseLocationId": 1,
      "itemCode": "sample string 5",
      "upcCode": "sample string 6",
      "lotNo": "sample string 7",
      "serialNo": "sample string 8",
      "lineNumber": 9,
      "itemName": "sample string 10",
      "quantity": 11.0,
      "qtySent": 1.0,
      "price": 12.0,
      "discount": 1.0,
      "miscAmount": 1.0,
      "totalAmount": 13.0,
      "packSize": 1,
      "itemUMCode": "sample string 14",
      "unitWeight": 1.0,
      "grossWeight": 1.0,
      "memo": "sample string 15",
      "isCredit": true,
      "void": true,
      "tenantId": 18,
      "updatedById": 1,
      "createdById": 19,
      "modifyDateTime": "2021-08-05T19:09:07.9768872-06:00",
      "insertDateTime": "2021-08-05T19:09:07.9768872-06:00"
    }
  ]
}

application/xml, text/xml

Sample:
<InvoiceInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SuppliAppi.Areas.Payments.Models">
  <header xmlns:d2p1="http://schemas.datacontract.org/2004/07/SuppliModel">
    <d2p1:accountId>8</d2p1:accountId>
    <d2p1:accountName>sample string 13</d2p1:accountName>
    <d2p1:accountRepId>10</d2p1:accountRepId>
    <d2p1:accountRepName>sample string 14</d2p1:accountRepName>
    <d2p1:accountTermId>1</d2p1:accountTermId>
    <d2p1:addressLine>sample string 17</d2p1:addressLine>
    <d2p1:addressLine2>sample string 18</d2p1:addressLine2>
    <d2p1:addressLine3>sample string 19</d2p1:addressLine3>
    <d2p1:city>sample string 20</d2p1:city>
    <d2p1:contactId>9</d2p1:contactId>
    <d2p1:contactName>sample string 15</d2p1:contactName>
    <d2p1:country>sample string 22</d2p1:country>
    <d2p1:createdById>32</d2p1:createdById>
    <d2p1:customerPO>sample string 16</d2p1:customerPO>
    <d2p1:discountAmount>1</d2p1:discountAmount>
    <d2p1:emailTo>sample string 25</d2p1:emailTo>
    <d2p1:faxTo>sample string 26</d2p1:faxTo>
    <d2p1:freightAmount>1</d2p1:freightAmount>
    <d2p1:genTipoDocumentoId>3</d2p1:genTipoDocumentoId>
    <d2p1:impOrderId>1</d2p1:impOrderId>
    <d2p1:insertDateTime>2021-08-05T19:09:07.9728423-06:00</d2p1:insertDateTime>
    <d2p1:invoicesHeaderId>1</d2p1:invoicesHeaderId>
    <d2p1:invoicesNumber>sample string 2</d2p1:invoicesNumber>
    <d2p1:latitude>1.1</d2p1:latitude>
    <d2p1:longitude>1.1</d2p1:longitude>
    <d2p1:memo>sample string 24</d2p1:memo>
    <d2p1:miscAmount1>1</d2p1:miscAmount1>
    <d2p1:miscAmount2>1</d2p1:miscAmount2>
    <d2p1:modifyDateTime>2021-08-05T19:09:07.9728423-06:00</d2p1:modifyDateTime>
    <d2p1:orderDate>2021-08-05T19:09:07.9698574-06:00</d2p1:orderDate>
    <d2p1:orderProcessId>7</d2p1:orderProcessId>
    <d2p1:orderSourceId>5</d2p1:orderSourceId>
    <d2p1:orderStatusId>6</d2p1:orderStatusId>
    <d2p1:orderTypeId>4</d2p1:orderTypeId>
    <d2p1:pendingAmount>1</d2p1:pendingAmount>
    <d2p1:postalCode>sample string 23</d2p1:postalCode>
    <d2p1:qouteId>1</d2p1:qouteId>
    <d2p1:refNumber>sample string 12</d2p1:refNumber>
    <d2p1:shipDate>2021-08-05T19:09:07.9698574-06:00</d2p1:shipDate>
    <d2p1:shippingAmount>1</d2p1:shippingAmount>
    <d2p1:state>sample string 21</d2p1:state>
    <d2p1:taxAmount1>1</d2p1:taxAmount1>
    <d2p1:taxAmount2>1</d2p1:taxAmount2>
    <d2p1:tenantId>31</d2p1:tenantId>
    <d2p1:toEmail>true</d2p1:toEmail>
    <d2p1:toFax>true</d2p1:toFax>
    <d2p1:toPrint>true</d2p1:toPrint>
    <d2p1:totalAmount>1</d2p1:totalAmount>
    <d2p1:totalGrossWeight>1</d2p1:totalGrossWeight>
    <d2p1:updatedById>1</d2p1:updatedById>
    <d2p1:void>true</d2p1:void>
    <d2p1:warehouseId>1</d2p1:warehouseId>
  </header>
  <list_details xmlns:d2p1="http://schemas.datacontract.org/2004/07/SuppliModel">
    <d2p1:invoicesDetail>
      <d2p1:createdById>19</d2p1:createdById>
      <d2p1:discount>1</d2p1:discount>
      <d2p1:grossWeight>1</d2p1:grossWeight>
      <d2p1:impOrderDetailId>1</d2p1:impOrderDetailId>
      <d2p1:insertDateTime>2021-08-05T19:09:07.9768872-06:00</d2p1:insertDateTime>
      <d2p1:invoicesDetailId>1</d2p1:invoicesDetailId>
      <d2p1:invoicesHeaderId>2</d2p1:invoicesHeaderId>
      <d2p1:isCredit>true</d2p1:isCredit>
      <d2p1:itemCode>sample string 5</d2p1:itemCode>
      <d2p1:itemId>4</d2p1:itemId>
      <d2p1:itemName>sample string 10</d2p1:itemName>
      <d2p1:itemStatusId>3</d2p1:itemStatusId>
      <d2p1:itemUMCode>sample string 14</d2p1:itemUMCode>
      <d2p1:itemUMId>1</d2p1:itemUMId>
      <d2p1:lineNumber>9</d2p1:lineNumber>
      <d2p1:lotNo>sample string 7</d2p1:lotNo>
      <d2p1:memo>sample string 15</d2p1:memo>
      <d2p1:miscAmount>1</d2p1:miscAmount>
      <d2p1:modifyDateTime>2021-08-05T19:09:07.9768872-06:00</d2p1:modifyDateTime>
      <d2p1:packSize>1</d2p1:packSize>
      <d2p1:price>12</d2p1:price>
      <d2p1:qtySent>1</d2p1:qtySent>
      <d2p1:quantity>11</d2p1:quantity>
      <d2p1:serialNo>sample string 8</d2p1:serialNo>
      <d2p1:tenantId>18</d2p1:tenantId>
      <d2p1:totalAmount>13</d2p1:totalAmount>
      <d2p1:unitWeight>1</d2p1:unitWeight>
      <d2p1:upcCode>sample string 6</d2p1:upcCode>
      <d2p1:updatedById>1</d2p1:updatedById>
      <d2p1:void>true</d2p1:void>
      <d2p1:warehouseLocationId>1</d2p1:warehouseLocationId>
    </d2p1:invoicesDetail>
    <d2p1:invoicesDetail>
      <d2p1:createdById>19</d2p1:createdById>
      <d2p1:discount>1</d2p1:discount>
      <d2p1:grossWeight>1</d2p1:grossWeight>
      <d2p1:impOrderDetailId>1</d2p1:impOrderDetailId>
      <d2p1:insertDateTime>2021-08-05T19:09:07.9768872-06:00</d2p1:insertDateTime>
      <d2p1:invoicesDetailId>1</d2p1:invoicesDetailId>
      <d2p1:invoicesHeaderId>2</d2p1:invoicesHeaderId>
      <d2p1:isCredit>true</d2p1:isCredit>
      <d2p1:itemCode>sample string 5</d2p1:itemCode>
      <d2p1:itemId>4</d2p1:itemId>
      <d2p1:itemName>sample string 10</d2p1:itemName>
      <d2p1:itemStatusId>3</d2p1:itemStatusId>
      <d2p1:itemUMCode>sample string 14</d2p1:itemUMCode>
      <d2p1:itemUMId>1</d2p1:itemUMId>
      <d2p1:lineNumber>9</d2p1:lineNumber>
      <d2p1:lotNo>sample string 7</d2p1:lotNo>
      <d2p1:memo>sample string 15</d2p1:memo>
      <d2p1:miscAmount>1</d2p1:miscAmount>
      <d2p1:modifyDateTime>2021-08-05T19:09:07.9768872-06:00</d2p1:modifyDateTime>
      <d2p1:packSize>1</d2p1:packSize>
      <d2p1:price>12</d2p1:price>
      <d2p1:qtySent>1</d2p1:qtySent>
      <d2p1:quantity>11</d2p1:quantity>
      <d2p1:serialNo>sample string 8</d2p1:serialNo>
      <d2p1:tenantId>18</d2p1:tenantId>
      <d2p1:totalAmount>13</d2p1:totalAmount>
      <d2p1:unitWeight>1</d2p1:unitWeight>
      <d2p1:upcCode>sample string 6</d2p1:upcCode>
      <d2p1:updatedById>1</d2p1:updatedById>
      <d2p1:void>true</d2p1:void>
      <d2p1:warehouseLocationId>1</d2p1:warehouseLocationId>
    </d2p1:invoicesDetail>
  </list_details>
</InvoiceInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.