ApexERPHost

<back to all web services

BlockLoyaltyCardPoints

Requires Authentication
The following routes are available for this service:
PUT/LoyaltyCards/Transactions
PUT/LoyaltyCards/{Number}/Transactions/{TransactionId}
BlockLoyaltyCardPoints Parameters:
NameParameterData TypeRequiredDescription
TransactionIdpathGuidNo
CardNumberbodystringNo
PointsbodydecimalNo
SourcebodystringNo
BlockLoyaltyCardPointsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
CardInfoformLoyaltyCardNo
ResultformboolNo
LoyaltyCard Parameters:
NameParameterData TypeRequiredDescription
CardIdformstringNo
NumberformstringNo
PasswordformstringNo
CreateDateformDateTimeNo
ActivationDateformDateTime?No
PointsformdecimalNo
DiscountformdecimalNo
StatusformintNo
CardTypeformintNo
SuspendedformboolNo
IssuerformLoyaltyCardIssuerNo
OwnerformPersonNo
AvaliablePointsformdecimalNo
LoyaltyCardIssuer Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CodeformstringNo
NameformstringNo
IssuerTypeformintNo
SuspendedformboolNo
CityIdformstringNo
Person Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
SnformstringNo
FirstNameformstringNo
SecondNameformstringNo
LastNameformstringNo
FullNameformstringNo
DateOfBirthformDateTime?No
SexformintNo
UnIdformGuidNo

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.

PUT /LoyaltyCards/Transactions HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TransactionId":"00000000000000000000000000000000","CardNumber":"String","Points":0,"Source":"String"}
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"}},"CardInfo":{"CardId":"String","Number":"String","Password":"String","CreateDate":"\/Date(-62135596800000-0000)\/","ActivationDate":"\/Date(-62135596800000-0000)\/","Points":0,"Discount":0,"Status":0,"CardType":0,"Suspended":false,"Issuer":{"Id":0,"Code":"String","Name":"String","IssuerType":0,"Suspended":false,"CityId":"String"},"Owner":{"Id":0,"Sn":"String","FirstName":"String","SecondName":"String","LastName":"String","FullName":"String","DateOfBirth":"\/Date(-62135596800000-0000)\/","Sex":0,"UnId":"00000000000000000000000000000000"},"AvaliablePoints":0},"Result":false}