POST v1/easypassagency/purchase

Request Information

URI Parameters

None.

Body Parameters

AgencyCustomerPurchase
NameDescriptionTypeAdditional information
customer_id

string

None.

fare_instrument_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "customer_id": "sample string 1",
  "fare_instrument_id": 2
}

text/xml

Sample:
<AgencyCustomerPurchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransitMobileApi.Models">
  <customer_id>sample string 1</customer_id>
  <fare_instrument_id>2</fare_instrument_id>
</AgencyCustomerPurchase>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AgencyCustomerPurchase'.

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.