status, role, split configuration).
All requests use the
x-api-key header. See Authentication.
The sandbox base URL is https://api.sandbox.z2pay.com.Concepts
Role
seller (default when creating via API), owner (the company’s primary recipient)
or platform (internal). There is at most 1 owner per company.Link status
new, pending, active, refused or inactive. A recipient must be
eligible to receive payouts before being used in a split.Endpoints
| Method | Route | Description |
|---|---|---|
GET | /recipients | Paginated list of the company’s recipients |
GET | /recipients/owner | Returns the recipient with the owner role |
GET | /recipients/:id | Fetches a recipient by ID |
POST | /recipients | Creates or links a recipient to the company |
PUT | /recipients/:id | Updates a recipient’s data |
POST | /recipients/:id/kyc-link | Generates a KYC link for the recipient to complete their information |
DELETE | /recipients/:id | Unlinks the recipient from the company |
List recipients
email or document. Only merchant-type recipients appear in this listing.
Query parameters
Current page (pagination).
Number of items per page.
Filters by the recipient’s exact email address. Must be a valid email.
Filters by document (CPF/CNPJ). Minimum of 11 characters.
Example
Filter combinations are restrictive: if
email and document are both provided and refer
to different recipients, the list will come back empty.Fetch owner recipient
role: "owner". If the company does not
have an owner defined, the response is null.
Fetch recipient by ID
Recipient ID (prefix
rec_).404 if the recipient is not linked to your company. See
Errors.
Create recipient
role: "seller".
If a merchant recipient with the same document or email already exists, it is reused and its
data is updated with what you send.
Returns status 201. Supports idempotency via the Idempotency-Key header — see
Conventions.
The initial link status depends on the data provided: if both a primary address and a
bank account are filled in, the link starts as
pending; otherwise, it starts as new.Body fields
Recipient’s name. Minimum of 2 characters.
Recipient’s valid email address.
CPF or CNPJ. Minimum of 11 characters.
Recipient type. Values:
individual or company.Recipient’s phone number.
Recipient category. Values:
merchant or platform. Use merchant for the public API.Company type (free text). Relevant when
type = company.Legal company name.
Company founding date.
Annual revenue, in cents (integer).
Legal entity type (free text).
Date of birth. Relevant when
type = individual.Mother’s name.
Profession.
Monthly income, in cents (integer).
Pix key type.
Pix key.
Recipient’s website.
Legal representative data. Fields:
name (string, required), document (string,
required), email (string), motherName (string), birthdate (string),
monthlyIncome (number), profession (string), phone (string),
selfDeclaredRepresentative (boolean).Address. All fields are optional:
address, number, complement, neighborhood,
city, state (max. 2 characters), postalCode, referencePoint.Bank account for payouts. Fields below.
Documents in base64:
identificationDocument, selfie, socialContract (all optional).bankAccount object
Account holder’s name. Minimum of 2 characters.
Account holder’s document. Minimum of 11 characters.
Bank code. Minimum of 1 character.
Bank branch. Minimum of 1 character.
Account number. Minimum of 1 character.
Account holder type (free text).
Bank name.
Account check digit.
Account type (free text).
Example
Update recipient
404 if the recipient is not linked to
your company. Supports idempotency via the Idempotency-Key header.
Recipient ID (prefix
rec_).Generate KYC link
201. Supports idempotency via the Idempotency-Key header. Returns 404
if the recipient is not linked to your company.
Recipient ID (prefix
rec_).URL for the recipient to access the KYC flow.
Link expiration date/time (ISO 8601 with timezone).
Unlink recipient
Idempotency-Key header.
Recipient ID (prefix
rec_).Common errors
404— recipient not linked to your company (onGET /:id,PUT /:idandPOST /:id/kyc-link).401—x-api-keymissing or invalid. See Authentication.400— invalid body (e.g., document with fewer than 11 characters,typeoutside the enum).
See also
Splits
Use recipients as payout destinations in payments.
Settlement
How and when recipients receive their funds.
Customers
Manage payer customers.
Conventions
Idempotency, pagination and formats.

