POST api/Invoice/AddUpdateInvoice
Request Information
URI Parameters
None.
Body Parameters
Invoice| Name | Description | Type | Additional information |
|---|---|---|---|
| InvoiceID | integer |
None. |
|
| PaymentTerms | string |
None. |
|
| AssociatedPersonID | integer |
None. |
|
| AssociatedPersonName | string |
None. |
|
| PersonID | integer |
None. |
|
| CategoryID | integer |
None. |
|
| SubCategoryID | integer |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| Comment | string |
None. |
|
| Latitude | string |
None. |
|
| Longitude | string |
None. |
|
| SecurityCode | string |
None. |
|
| TypeID | integer |
None. |
|
| Cost | string |
None. |
|
| PostID | integer |
None. |
|
| IsInvoicePaid | boolean |
None. |
|
| InvoicePaidDate | date |
None. |
|
| HorseID | integer |
None. |
|
| DateModified | date |
None. |
|
| DateCreated | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"InvoiceID": 1,
"PaymentTerms": "sample string 2",
"AssociatedPersonID": 3,
"AssociatedPersonName": "sample string 4",
"PersonID": 5,
"CategoryID": 6,
"SubCategoryID": 7,
"Title": "sample string 8",
"Description": "sample string 9",
"Comment": "sample string 10",
"Latitude": "sample string 11",
"Longitude": "sample string 12",
"SecurityCode": "sample string 13",
"TypeID": 14,
"Cost": "sample string 15",
"PostID": 16,
"IsInvoicePaid": true,
"InvoicePaidDate": "2025-12-05T20:20:52.9890566-08:00",
"HorseID": 17,
"DateModified": "2025-12-05T20:20:52.9890566-08:00",
"DateCreated": "2025-12-05T20:20:52.9890566-08:00"
}
application/xml, text/xml
Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities"> <DateCreated>2025-12-05T20:20:52.9890566-08:00</DateCreated> <DateModified>2025-12-05T20:20:52.9890566-08:00</DateModified> <AssociatedPersonID>3</AssociatedPersonID> <AssociatedPersonName>sample string 4</AssociatedPersonName> <CategoryID>6</CategoryID> <Comment>sample string 10</Comment> <Cost>sample string 15</Cost> <Description>sample string 9</Description> <HorseID>17</HorseID> <InvoiceID>1</InvoiceID> <InvoicePaidDate>2025-12-05T20:20:52.9890566-08:00</InvoicePaidDate> <IsInvoicePaid>true</IsInvoicePaid> <Latitude>sample string 11</Latitude> <Longitude>sample string 12</Longitude> <PaymentTerms>sample string 2</PaymentTerms> <PersonID>5</PersonID> <PostID>16</PostID> <SecurityCode>sample string 13</SecurityCode> <SubCategoryID>7</SubCategoryID> <Title>sample string 8</Title> <TypeID>14</TypeID> </Invoice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.