POST System/ApplyPromotionCodev2
No documentation available.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| parameter | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"promotionCode": "sample string 1",
"orderData": "sample string 2",
"orderType": 3,
"listPromotionCode": "sample string 4"
}
application/xml, text/xml
Sample:
<PromotionParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.EInvoice.App.Api.Models.Parameter"> <listPromotionCode>sample string 4</listPromotionCode> <orderData>sample string 2</orderData> <orderType>3</orderType> <promotionCode>sample string 1</promotionCode> </PromotionParameter>
application/x-www-form-urlencoded
Sample:
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{
"Success": true,
"Data": "{}",
"NewData": "{}",
"Errors": [
"sample string 1",
"sample string 2",
"sample string 3"
],
"ErrorCode": "sample string 4",
"CustomData": "sample string 5",
"summary": {},
"recordsTotal": 7,
"recordsFiltered": 8,
"ValidateInfo": [
{
"Code": "sample string 1",
"ErrorMessage": "sample string 2",
"ConfirmMessage": "sample string 3"
},
{
"Code": "sample string 1",
"ErrorMessage": "sample string 2",
"ConfirmMessage": "sample string 3"
},
{
"Code": "sample string 1",
"ErrorMessage": "sample string 2",
"ConfirmMessage": "sample string 3"
}
],
"ErrorInfo": [
{
"ErrorCode": "sample string 1",
"Id": "sample string 2",
"IdField": "sample string 3",
"ErrorMessage": "sample string 4",
"EntityType": 0
},
{
"ErrorCode": "sample string 1",
"Id": "sample string 2",
"IdField": "sample string 3",
"ErrorMessage": "sample string 4",
"EntityType": 0
},
{
"ErrorCode": "sample string 1",
"Id": "sample string 2",
"IdField": "sample string 3",
"ErrorMessage": "sample string 4",
"EntityType": 0
}
]
}
application/xml, text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.EInvoice.App.Contract.Result">
<CustomData>sample string 5</CustomData>
<Data xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:string">{}</Data>
<ErrorCode>sample string 4</ErrorCode>
<ErrorInfo>
<ErrorInfo>
<EntityType>MSC_User</EntityType>
<ErrorCode>sample string 1</ErrorCode>
<ErrorMessage>sample string 4</ErrorMessage>
<Id>sample string 2</Id>
<IdField>sample string 3</IdField>
</ErrorInfo>
<ErrorInfo>
<EntityType>MSC_User</EntityType>
<ErrorCode>sample string 1</ErrorCode>
<ErrorMessage>sample string 4</ErrorMessage>
<Id>sample string 2</Id>
<IdField>sample string 3</IdField>
</ErrorInfo>
<ErrorInfo>
<EntityType>MSC_User</EntityType>
<ErrorCode>sample string 1</ErrorCode>
<ErrorMessage>sample string 4</ErrorMessage>
<Id>sample string 2</Id>
<IdField>sample string 3</IdField>
</ErrorInfo>
</ErrorInfo>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
<d2p1:string>sample string 3</d2p1:string>
</Errors>
<NewData xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:string">{}</NewData>
<Success>true</Success>
<ValidateInfo>
<ValidateResult>
<Code>sample string 1</Code>
<ConfirmMessage>sample string 3</ConfirmMessage>
<ErrorMessage>sample string 2</ErrorMessage>
</ValidateResult>
<ValidateResult>
<Code>sample string 1</Code>
<ConfirmMessage>sample string 3</ConfirmMessage>
<ErrorMessage>sample string 2</ErrorMessage>
</ValidateResult>
<ValidateResult>
<Code>sample string 1</Code>
<ConfirmMessage>sample string 3</ConfirmMessage>
<ErrorMessage>sample string 2</ErrorMessage>
</ValidateResult>
</ValidateInfo>
<recordsFiltered>8</recordsFiltered>
<recordsTotal>7</recordsTotal>
<summary />
</ServiceResult>