GET api/Contract?customerId={customerId}
Retrieves contract by customer id
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| customerId | The customer's id |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Description": "sample string 2",
"Number": "sample string 3",
"EndDateTime": "2025-12-03T08:50:39.6953427-05:00",
"StartDateTime": "2025-12-03T08:50:39.6953427-05:00",
"Agents": [
1,
2,
3
],
"ProviderId": 6,
"CustomerId": 7,
"id": 1
}
application/xml, text/xml
Sample:
<contracts_page_item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
<id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
<Agents xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
<d2p1:long>3</d2p1:long>
</Agents>
<CustomerId>7</CustomerId>
<Description>sample string 2</Description>
<EndDateTime>2025-12-03T08:50:39.6953427-05:00</EndDateTime>
<Name>sample string 1</Name>
<Number>sample string 3</Number>
<ProviderId>6</ProviderId>
<StartDateTime>2025-12-03T08:50:39.6953427-05:00</StartDateTime>
</contracts_page_item>
