Purchase packet
AUTHORIZATIONS: access_token
REQUEST BODY SCHEMA: application/json
| payment_method
required
|
string
Enum: "account" "postpaid"
|
| category_id
required
|
integer
|
| size
required
|
integer
Size of the packet. This value should not be equal to 1. |
| type |
string
Enum: "base" "mega"
Packet type. 'base' by default |
| zone_id |
string
Field to specify location zone - it's required for categories with enabled "Regional pricing" feature. (Available in UA) |
Responses
204
Status 204
400
Status 400
RESPONSE SCHEMA: application/json
Array
|
required
|
object
|
OLX Production Server
https://www.olx.ro/api/partner/users/me/packets
POST
/users/me/packets
Request samples
Payload
Content type
application/json
{
"payment_method": "account",
"category_id": 0,
"size": 0,
"type": "base",
"zone_id": "string"
}
Copied to clipboard
Response samples
400
Content type
application/json
[
{
"error": {}
}
]
Copied to clipboard