ApexERPHost

<back to all web services

GetCouponXReceipts

Requires Authentication
The following routes are available for this service:
GET/CouponXReceipts/
GET/CouponXReceipts/CouponType/{coupon_type}
GET/CouponXReceipts/CouponStatus/{coupon_status}
GET/CouponXReceipts/CouponCode/{coupon_code}
GET/CouponXReceipts/PosNum/{pos_num}
GET/CouponXReceipts/OpDateScope/{opdate_start}/{opdate_end}
GET/CouponXReceipts/OpDateScope/{opdate_start}/{opdate_end}/PosNum/{pos_num}
GET/CouponXReceipts/CouponType/{coupon_type}/CouponStatus/{coupon_status}/OpDateStart/{opdate_start}/OpDateEnd/{opdate_end}/PosNum/{pos_num}
GetCouponXReceipts Parameters:
NameParameterData TypeRequiredDescription
coupon_typepathint?No
coupon_statuspathint?No
opdate_startpathDateTime?No
opdate_endpathDateTime?No
coupon_codepathstringNo
pos_numpathint?No
GetCouponXReceiptsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
CouponXReceiptsformList<CouponXReceipts>No
CouponXReceipts Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CodeformstringNo
CouponTypeformintNo
ExpirationDateformDateTimeNo
VoidedformboolNo
UsedformboolNo
UseTimeformDateTime?No
DataformCouponDataNo
CouponStatusformint?No
ActivateIdformGuid?No
SpendIdformGuid?No
activate_opdateformDateTime?No
activate_batch_numformint?No
activate_pos_numformint?No
activate_receipt_numformint?No
spend_opdateformDateTime?No
spend_batch_numformint?No
spend_pos_numformint?No
spend_receipt_numformint?No
CouponData Parameters:
NameParameterData TypeRequiredDescription
ProdsformList<CouponProd>No
CouponProd Parameters:
NameParameterData TypeRequiredDescription
ProdIdformstringNo
IsServiceformintNo
TypeformintNo
SCountformdecimalNo
ValueTypeformintNo
ValueformdecimalNo

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 /CouponXReceipts/ HTTP/1.1 
Host: apex.nikoratrade.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"}},"CouponXReceipts":[{"Id":0,"Code":"String","CouponType":0,"ExpirationDate":"\/Date(-62135596800000-0000)\/","Voided":false,"Used":false,"UseTime":"\/Date(-62135596800000-0000)\/","Data":{"Prods":[{"ProdId":"String","IsService":0,"Type":0,"SCount":0,"ValueType":0,"Value":0}]},"CouponStatus":0,"ActivateId":"00000000000000000000000000000000","SpendId":"00000000000000000000000000000000","activate_opdate":"\/Date(-62135596800000-0000)\/","activate_batch_num":0,"activate_pos_num":0,"activate_receipt_num":0,"spend_opdate":"\/Date(-62135596800000-0000)\/","spend_batch_num":0,"spend_pos_num":0,"spend_receipt_num":0}]}