Skip to main content

Archive referral-agent link

POST 

/v1/partnership/referral-agent-links/:agent_link_id/archive

Archive an active referral-agent link. Archiving deactivates the associated rebate group. When an active reward-share agreement exists, it ends on the following day and is replaced with a zero-reward-share agreement.

Required scopes:

  • write: partnership.all.

Runtime restrictions:

  • The referral-agent link must belong to the partner associated with the API key.
  • Only a link with status ACTIVE can be archived.

Rules:

  • Archiving deactivates the rebate group associated with the referral-agent link.
  • A current reward-share agreement, when present, ends on the following day; a subsequent agreement has zero reward share.

Rate limits:

  • This operation counts toward the shared limit of 600 requests per 60 seconds per partner, across all of the partner's API keys and all Partnership API operations.
  • An additional limit of 60 requests per 60 seconds applies to this operation. Both limits apply.

Consistency and recovery notes:

  • The operation is not idempotent. After a timeout or connection failure, retrieve the link and confirm its status before retrying; a successfully archived link is no longer eligible for this operation.

Possible errors:

  • Throttled
  • ServiceTransportError
  • Error
  • AuthenticationFailed
  • PermissionDenied
  • ValidationError
  • NotFound

Request​

Responses​

Referral-agent link archived successfully.