Remove member

Removes a member from the team. Owner cannot be removed, so the last account owner always remains.

DELETE /team/{id}

Parameters

NameTypeRequiredDescription
id string yes Member number (the id field from the team list).

Important to know

Request example

curl -X DELETE https://api.shippickup.com/v1/team/5d3a8e1f6c2b47a9b0e4d7c3a1 \
  -H "Authorization: Bearer $SHIPPICKUP_API_KEY"

Response example 200

JSON
{
    "data": {
        "id": "5d3a8e1f6c2b47a9b0e4d7c3a1",
        "removed": true
    }
}

Possible errors

HTTPCodeDescription
403test_key_cannot_buyTest key does not purchase labels or order pickups, use a live key.
403owner_key_requiredКомандой может управлять только ключ, созданный владельцем аккаунта.
404not_foundObject not found among your account's objects (order, address, invoice, webhook, member, or team invitation), or the order has no active pickup, or the method does not exist. Objects belonging to others appear as non-existent.
409conflictAction is currently not possible for this order (e.g., order cannot be canceled or pickup already ordered). Reason text in error.message.
403insufficient_scopeKey lacks the required permission, specified in error.details.required_scope.
429rate_limitedKey request limit exceeded. Retry after the time specified in the Retry-After header.

Full list of error codes →