Revoke invitation

Invitation link stops working. Only the owner key with team:manage permission.

DELETE /team/invitations/{id}

Parameters

NameTypeRequiredDescription
id string yes Invitation number (the id field from the response).

Important to know

Request example

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

Response example 200

JSON
{
    "data": {
        "id": "2f9b6d0c8e1a4573b4c2a9e6d8",
        "revoked": 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.
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 →