POST api/ms/payment/package
สร้างคำสั่งซื้อ Package
Request Information
URI Parameters
None.
Body Parameters
m_payment_package_create_request| Name | Description | Type | Additional information |
|---|---|---|---|
| package_id | integer |
None. |
|
| month_amount | integer |
None. |
|
| product_amount | integer |
None. |
|
| total_price | decimal number |
None. |
|
| promotion_id | integer |
None. |
|
| discount_price | decimal number |
None. |
|
| grand_price | decimal number |
None. |
|
| AddressId | integer |
None. |
|
| redirect_url | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"package_id": 1,
"month_amount": 2,
"product_amount": 3,
"total_price": 4.0,
"promotion_id": 1,
"discount_price": 1.0,
"grand_price": 5.0,
"AddressId": 6,
"redirect_url": "sample string 7"
}
application/xml, text/xml
Sample:
<m_payment_package_create_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Modules.Models.Mainsystem"> <AddressId>6</AddressId> <discount_price>1</discount_price> <grand_price>5</grand_price> <month_amount>2</month_amount> <package_id>1</package_id> <product_amount>3</product_amount> <promotion_id>1</promotion_id> <redirect_url>sample string 7</redirect_url> <total_price>4</total_price> </m_payment_package_create_request>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.