POST Receipt/Upload
Upload Receipt image Format: Image --> please using format Base64 string. TransactionDate --> dd/MM/yyyy HH:mm:ss
Request Information
URI Parameters
None.
Body Parameters
UploadReceiptModelName | Description | Type | Additional information |
---|---|---|---|
Images | Collection of string |
None. |
|
ReceiptCode | string |
None. |
|
TransactionDate | string |
None. |
|
EventCode | string |
None. |
|
RequestDate | string |
None. |
|
Remark | string |
None. |
|
RetailerAddress | string |
None. |
|
Channel | string |
None. |
|
RetailerID | integer |
None. |
|
Details | Collection of UploadReceiptDetail |
None. |
|
poolId | integer |
None. |
|
userId | integer |
None. |
|
userName | string |
None. |
|
fullname | string |
None. |
|
code | string |
None. |
|
ID | globally unique identifier |
None. |
|
MemberID | integer |
None. |
|
MemberName | string |
None. |
|
RetailerCode | string |
None. |
|
StrTransactionDate | string |
None. |
|
StrTransactionTime | string |
None. |
|
TotalAction | integer |
None. |
|
ActionDummy | integer |
None. |
|
ReceiptDetails | Collection of UploadReceiptDetailCMSModel |
None. |
|
IsNeedReuploadData | boolean |
None. |
|
RejectReason | string |
None. |
|
IsError | boolean |
None. |
|
Status | integer |
None. |
|
FilesImages | Collection of HttpPostedFileBase |
None. |
|
CodeGimmick | string |
None. |
|
ClusterID | integer |
None. |
|
ClusterName | string |
None. |
|
StoreCodeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Images": [ "sample string 1", "sample string 2" ], "ReceiptCode": "sample string 1", "TransactionDate": "sample string 2", "EventCode": "sample string 3", "RequestDate": "sample string 4", "Remark": "sample string 5", "RetailerAddress": "sample string 6", "Channel": "sample string 7", "RetailerID": 1, "Details": [ { "ActionID": 1, "Quantity": 2, "ChildID": 1, "ChildId": 3, "Point": 4, "Remarks": "sample string 5" }, { "ActionID": 1, "Quantity": 2, "ChildID": 1, "ChildId": 3, "Point": 4, "Remarks": "sample string 5" } ], "poolId": 8, "userId": 9, "userName": "sample string 10", "fullname": "sample string 11", "code": "sample string 12", "ID": "92a07835-980f-40e6-8a97-d77187929462", "MemberID": 14, "MemberName": "sample string 15", "RetailerCode": "sample string 16", "StrTransactionDate": "sample string 17", "StrTransactionTime": "sample string 18", "TotalAction": 19, "ActionDummy": 1, "ReceiptDetails": [ { "ActionID": 1, "Quantity": 1, "QuantityApproved": 2, "Points": 3, "TotalPoints": 4, "TotalQuantityApprovedPoints": 5, "MaxPoints": 6, "Remarks": "sample string 7", "ErrorMessage": "sample string 8", "ItemPrice": 9.0, "ChildID": 1, "ChildName": "sample string 10" }, { "ActionID": 1, "Quantity": 1, "QuantityApproved": 2, "Points": 3, "TotalPoints": 4, "TotalQuantityApprovedPoints": 5, "MaxPoints": 6, "Remarks": "sample string 7", "ErrorMessage": "sample string 8", "ItemPrice": 9.0, "ChildID": 1, "ChildName": "sample string 10" } ], "IsNeedReuploadData": true, "RejectReason": "sample string 21", "IsError": true, "Status": 23, "FilesImages": null, "CodeGimmick": "sample string 24", "ClusterID": 25, "ClusterName": "sample string 26", "StoreCodeId": 27 }
Response Information
Resource Description
ResultModelOfReceiptModelName | Description | Type | Additional information |
---|---|---|---|
StatusCode | string |
None. |
|
StatusMessage | string |
None. |
|
Value | ReceiptModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "StatusCode": "sample string 1", "StatusMessage": "sample string 2", "Value": { "ID": "74004bd9-653d-4e6c-af93-34f0ea47bab2", "ReceiptCode": "sample string 2", "IsNeedReuploadData": true, "Code": "sample string 4", "TransactionDate": "sample string 5", "RetailerID": 1, "Images": [ "sample string 1", "sample string 2" ], "Status": 6, "Reason": "sample string 7", "MemberID": 8, "ProductBefore": "sample string 9" } }