POST api/BuyPackages/Buy
Request Information
URI Parameters
None.
Body Parameters
BuyPackageDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| accountId | integer |
Required Range: inclusive between 220 and 2147483647 |
|
| type | string |
Required |
|
| period | integer |
Required Range: inclusive between 1 and 2147483647 |
|
| expiryDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"accountId": 1,
"type": "sample string 2",
"period": 3,
"expiryDate": "2026-04-12T18:01:28.3824946+03:00"
}
text/plain, application/octet-stream
Sample:
{"accountId":1,"type":"sample string 2","period":3,"expiryDate":"2026-04-12T18:01:28.3824946+03:00"}
application/xml, text/xml
Sample:
<BuyPackageDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Modules.BuyPackages.DTO"> <accountId>1</accountId> <expiryDate>2026-04-12T18:01:28.3824946+03:00</expiryDate> <period>3</period> <type>sample string 2</type> </BuyPackageDTO>
multipart/form-data, application/form-data
Sample:
<BuyPackageDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Modules.BuyPackages.DTO"><accountId>1</accountId><expiryDate>2026-04-12T18:01:28.3824946+03:00</expiryDate><period>3</period><type>sample string 2</type></BuyPackageDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/plain, application/octet-stream, application/xml, text/xml, multipart/form-data, application/form-data
Sample:
Sample not available.