Create authorization
Updated:
This endpoint will help you create authorization for a specific order.
Endpoint
For the login:password
POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/auth/add
For the IP authorization
POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/auth/add/ip
Path parameters:
Name | Value | Description |
|---|---|---|
Authorization |
| Your personal API key (how to get) |
Request body
Name | Type | Description |
|---|---|---|
orderNumber | String | Order number (NOT order_id) |
ip | String | IP address |
Example
login:password
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/auth/add
{
"orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG"
}IP authorization
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/auth/add/ip
{
"orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG",
"ip":"31.76.116.24"
}Response
login:password
{
"status": "success",
"data": {
"id": "6abe728f351e1e9a962199b8",
"active": true,
"login": "123123",
"password": "123123",
"orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG"
},
"errors": []
}IP authorizations
{
"status": "success",
"data": {
"id": "6abe7271351e1e9a962199b6",
"active": true,
"ip": "31.76.116.24",
"orderNumber": "NS_1789631886643-7D_e_ra7hhT4ZnG"
},
"errors": []
}orderNumber not found or incorrect
{
"status": "error",
"data": null,
"errors": [
{
"message": "Set exists [orderNumber]",
"code": 0,
"customData": null
}
]
}