axFuelService

<back to all web services

GetCompanyDiscounts

Requires Authentication
The following routes are available for this service:
GET/CompanyDiscounts
GetCompanyDiscounts Parameters:
NameParameterData TypeRequiredDescription
DiscountIdqueryintNo
GetCompanyDiscountsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformList<Company>No
Company Parameters:
NameParameterData TypeRequiredDescription
idformintNo
rs_codeformstringNo
nameformstringNo
name_enformstringNo
addressformstringNo
address_phformstringNo
phoneformstringNo
faxformstringNo
emailformstringNo
webformstringNo
noteformstringNo
spendformboolNo
company_idformintNo
accformstringNo
withoutvatformboolNo
discounts_idformint?No
discounts_dateformDateTime?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /CompanyDiscounts HTTP/1.1 
Host: axfuel.apex.ge 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Result":[{"id":0,"rs_code":"String","name":"String","name_en":"String","address":"String","address_ph":"String","phone":"String","fax":"String","email":"String","web":"String","note":"String","spend":false,"company_id":0,"acc":"String","withoutvat":false,"discounts_id":0,"discounts_date":"\/Date(-62135596800000-0000)\/"}]}