Skip to main content
POST
Send a unit from one person to another

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Idempotency-Key
string
required

A retry with the same key and body returns the first response

Required string length: 1 - 255

Body

application/json
from
string
required

The sender: a usr_… ID or the brand's own ID

Required string length: 1 - 256
to
string
required

The receiver: a usr_… ID or the brand's own ID

Required string length: 1 - 256
unit
string
required

The unit to send: its key

Pattern: ^[a-z][a-z0-9_-]{0,63}$
amount
integer
required

How much to send

Required range: x <= 1000000
reason
string

A note both receipts carry: A thank-you

Required string length: 1 - 280

Response

Send a unit from one person to another

transfer
string
required

The sender's receipt ID, also on the receiver's receipt

Pattern: ^act_[0-7][0-9a-hjkmnp-tv-z]{25}$
receipt
string
required

The receiver's receipt ID

Pattern: ^act_[0-7][0-9a-hjkmnp-tv-z]{25}$
from
object
required

The sender

to
object
required

The receiver

unit
string
required

The unit's key

Pattern: ^[a-z][a-z0-9_-]{0,63}$
amount
integer
required

What was sent

sent_today
integer
required

What the sender has sent of this unit today, with this send

daily_limit
integer
required

What one person may send of it in a day