POST api/v1/promotions/created-coupon
Request Information
URI Parameters
None.
Body Parameters
GraphCreatedCouponParamName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Created | boolean |
None. |
|
BranchApplies | Collection of GraphBranchApplyCreatedCoupon |
None. |
|
Version |
Phiên bản |
string |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "Id": "7f07e2d8-2cd1-4017-b9b4-4829404f61a2", "Created": true, "BranchApplies": [ { "Id": "b7c0cd28-4d92-4ead-b890-c6381f08fa7f", "Created": true }, { "Id": "b7c0cd28-4d92-4ead-b890-c6381f08fa7f", "Created": true } ], "Version": "sample string 2" }
application/xml, text/xml
Sample:
<GraphCreatedCouponParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO"> <Version>sample string 2</Version> <BranchApplies> <GraphBranchApplyCreatedCoupon> <BranchID>b7c0cd28-4d92-4ead-b890-c6381f08fa7f</BranchID> <IsCreatedCouponCode>true</IsCreatedCouponCode> </GraphBranchApplyCreatedCoupon> <GraphBranchApplyCreatedCoupon> <BranchID>b7c0cd28-4d92-4ead-b890-c6381f08fa7f</BranchID> <IsCreatedCouponCode>true</IsCreatedCouponCode> </GraphBranchApplyCreatedCoupon> </BranchApplies> <IsCreatedCouponCode>true</IsCreatedCouponCode> <PromotionID>7f07e2d8-2cd1-4017-b9b4-4829404f61a2</PromotionID> </GraphCreatedCouponParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GraphServiceActionResultName | Description | Type | Additional information |
---|---|---|---|
Code |
Mã HTTP trả về cho client |
HttpStatusCode |
None. |
ErrorType |
Loại lỗi |
GrapAPIServiceErrorType |
None. |
ErrorMessage |
Thông tin lỗi |
string |
None. |
Data |
Dữ liệu trả về cho client |
Object |
None. |
Total |
Tổng số bản ghi trên grid |
integer |
None. |
Success |
Thực thi Service thành công |
boolean |
None. |
PrimaryKeyValue |
Trả về ID của đối tượng khi cất thành công Phục vụ cho việc cập nhật ID của record trên grid sau khi thêm đối tượng |
Object |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "Code": 100, "ErrorType": 0, "ErrorMessage": "sample string 1", "Data": {}, "Total": 3, "Success": true, "PrimaryKeyValue": {} }
application/xml, text/xml
Sample:
<GraphServiceActionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO"> <ActionType>Login</ActionType> <Code>Continue</Code> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <ErrorType>None</ErrorType> <PrimaryKeyValue /> <ServerExceptionTraceMessage>sample string 6</ServerExceptionTraceMessage> <Success>true</Success> <Total>3</Total> </GraphServiceActionResult>