Assign Drop

GET {baseUrl}/drops/assign

Assigns drop to partner

Headers

Name
Type
Description

app_id*

String

app_secret*

String

Request Body

Name
Type
Description

dropIds*

Array<String>

Array of Drop Ids

partnerId*

String

PartnerId

// Sample Request Information
Url: https://sandbox.sendstack.africa/api/v1/drops/assign
Method: POST
Headers: 
 - app_id: "your app_id"
 - app_secret: "your app_secret"

Sample Success Data

//Sample Request Body
{
    "partnerId": "{{partnerId}}",
    "dropIds": ["65b8c2c734d8cd1be099fd45"]
}
//Sample Response Body - 200 OK
{
    "status": true,
    "message": "Drop assigned successfully",
    "data": [
        {}
    ]
}

Sample Error Data

//Sample Request Body
{
    "partnerId": "invalid id",
    "dropIds": ["65b8c2c734d8cd1be099fd45"]
}
//Sample Response Body - 400 Bad Request
{
    "status": false,
    "message": "Invalid partnerId"
}

Last updated