Skip to main content
POST
Create a PIN

Authorizations

Authorization
string
header
required

Send your key as Authorization: Bearer <key>. Sandbox keys start art_test_ro_ (read) or art_test_rw_ (write). A key only works in its own environment, and a key with an IP allowlist only works from those addresses.

Body

application/json
amount_cents
integer
required

The rand amount your customer pays, in cents (R1,850.00 = 185000). Must be within your limits.

Required range: x >= 1
partner_ref
string

Your own reference, such as an order id. Echoed in deposit.* webhooks.

Required string length: 1 - 128

Response

The PIN was created and is unpaid.

collection_id
string

Artery's id for the PIN, eight digits.

pin
string

The 20-digit Easypay number your customer pays.

amount_cents
integer

Rand amount in cents.

currency
enum<string>
Available options:
ZAR
status
enum<string>
Available options:
UNPAID,
PAID,
EXPIRED,
VOIDED
is_reusable
boolean
min_amount_cents
integer | null

Reusable PINs only.

max_amount_cents
integer | null

Reusable PINs only.

label
string | null

Reusable PINs only.

total_collected_cents
integer
payment_count
integer
created_at
string<date-time>
expires_at
string<date-time>
paid_at
string<date-time> | null
partner_ref
string | null
rate_lock
object | null

The rate and fee locked for this PIN until it expires.