POST OCR/Upload

Request Information

URI Parameters

None.

Body Parameters

UploadReceiptModel
NameDescriptionTypeAdditional 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": "0e16b111-5f68-4e0c-ad2c-484bbe7d6eae",
  "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

ResultModelOfReceiptDetailModel
NameDescriptionTypeAdditional information
StatusCode

string

None.

StatusMessage

string

None.

Value

ReceiptDetailModel

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": "sample string 1",
  "StatusMessage": "sample string 2",
  "Value": {
    "UpdatedDate": "sample string 1",
    "Retailer": {
      "ID": 1,
      "CityID": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "RetailerSubAccountID": 1
    },
    "Items": [
      {
        "ID": "9abc362c-24c7-41e1-b754-a4e502940e58",
        "ActionID": 2,
        "ProductCode": "sample string 3",
        "ProductName": "sample string 4",
        "ProductGroupCode": "sample string 5",
        "Quantity": 6,
        "QuantityApproved": 7,
        "Point": 8,
        "TotalPoints": 9,
        "Remarks": "sample string 10",
        "Size": "sample string 11"
      },
      {
        "ID": "9abc362c-24c7-41e1-b754-a4e502940e58",
        "ActionID": 2,
        "ProductCode": "sample string 3",
        "ProductName": "sample string 4",
        "ProductGroupCode": "sample string 5",
        "Quantity": 6,
        "QuantityApproved": 7,
        "Point": 8,
        "TotalPoints": 9,
        "Remarks": "sample string 10",
        "Size": "sample string 11"
      }
    ],
    "ID": "6f95732d-0db2-4112-a2a9-1d17d7ecc325",
    "ReceiptCode": "sample string 3",
    "IsNeedReuploadData": true,
    "Code": "sample string 5",
    "TransactionDate": "sample string 6",
    "RetailerID": 1,
    "Images": [
      "sample string 1",
      "sample string 2"
    ],
    "Status": 7,
    "Reason": "sample string 8",
    "MemberID": 9,
    "ProductBefore": "sample string 10"
  }
}