Skip to main content
POST
Transfer Z$ to a user or a company

Authorizations

X-API-Key
string
header
required

Per-company partner API key (zupy_pk_…). Validated by Zupy against the company integration key hash (Story 14.x); send it on every request as the X-API-Key header. Scoped read-write to the owning company's data.

Body

Body of a transfer: at least one person identifier OR company_id, never both. To a person, the same optional user data as a credit (it only fills what is empty), and optionally the action the transfer records (action_id, quantity); with company_id both are refused.

amount
string<decimal>
required

Z$ to send, > 0, at most 2 decimals.

Pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
external_reference
string
required

The partner's own id for this transfer. Same reference + same data = the same transfer.

Maximum string length: 200
reason
string | null

Why you send it, up to 200 characters. Required without an action (blank or only spaces is refused). With an action — action_id, or the default action Zupy may set up for your company — it may be omitted and becomes the action's name. Shown in the user's history and search, and in the statement of the company that receives it.

Maximum string length: 200
action_id
integer | null

The action this transfer records: the same code as GET /partner/actions/ and the credit. Only to a person. The amount is still amount: nothing is computed from the action. Another company's or unknown → 404 action-not-found; paused, ended or outside its dates → 422 action-not-creditable.

Required range: x >= 1
quantity
string<decimal> | null

Informative units of the action (e.g. litres), > 0, at most 6 decimals. Only with action_id.

Pattern: ^-?\d{0,18}(?:\.\d{0,6})?$
phone
string | null
Maximum string length: 32
email
string<email> | null
cpf
string | null
Maximum string length: 20
wallet_address
string | null
Maximum string length: 64
name
string | null
Maximum string length: 255
birth_date
string<date> | null

ISO YYYY-MM-DD. Fills the person's birth date only when it is empty.

gender
enum<string> | null

Fills the person's gender only when it is empty.

Available options:
male,
female,
non_binary,
other,
prefer_not_to_say,
null
address
object | null

Added as an address sent by your company; the customer's own address is never touched.

company_id
string | null

Send to a company instead of a person (exclusive with the person identifiers).

Maximum string length: 64

Response

A transfer your partner account made.

id
string<uuid>
required
external_reference
string
required
amount
string<decimal>
required
Pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
reason
string
required
customer_id
string | null
required
destination_company_id
string | null
required

The company you sent to (null for a user).

credited_company_id
string | null
required

The company whose wallet received: the parent, when the destination is a branch.

status
string
required
read-only

settling: the Z$ is already spendable and its on-chain record is pending; settled: recorded on-chain; settlement_failed: the on-chain record failed for good; unknown: contact Zupy support. For a transfer to a company, settlement_failed is not final while Zupy re-sends the last leg: it goes back to settling, then settled.

created_at
string<date-time>
required
action_id
integer | null
required

The action the transfer records, or null.

action_name
string | null
required
read-only

The action's name, the same text as in the credit, or null.

quantity
string<decimal> | null
required

The informative quantity (6 decimals), or null.

Pattern: ^-?\d{0,18}(?:\.\d{0,6})?$
unit
string | null
required
read-only

The action's unit at the time, or null.