Skip to main content
POST
Create payin
The API returns a pending resource while provider processing continues asynchronously.

Authorizations

X-Api-Key
string
header
required

Public API key from the merchant dashboard.

X-Api-Secret
string
header
required

Secret shown once when the API key is created.

Headers

Idempotency-Key
string
required

Unique key for this business intent. Reuse only when retrying the same request body.

Body

application/json
quote_id
string<uuid>
required
source
object
required

Payer, source, or recipient details for a quote-backed request. country_code, rail_type, and operator_code are inherited from the quote, so you only need to send them to be explicit. When sent, they must match the quote.

customer_id
string<uuid>

Optional. Defaults to the customer_id used when creating the quote. Required only if the quote was created without a customer.

merchant_reference
string

Your own transaction ID, for example your internal payout reference. Unique per merchant; reusing it returns 409 with reason duplicate_merchant_reference. Returned on the resource and in webhooks, and searchable with GET /payouts?merchant_reference=.

Maximum string length: 255
Example:

"kiipay-tx-000123"

merchant_metadata
object

Free-form key/value data echoed back on the resource and in webhooks. At most 50 keys and 8 KB when encoded.

Example:
otp_code
string
write-only

Required when the route's customer_action.type is otp_before; otherwise omit it. Kept only until the provider call and never returned by the API.

Response

Payin created.

id
string<uuid>
merchant_id
string<uuid>
customer_id
string<uuid>
quote_id
string<uuid>
merchant_reference
string | null

The merchant_reference you sent on creation.

merchant_metadata
object

The merchant_metadata you sent on creation, or an empty object.

send_amount
string
Pattern: ^[0-9]+(\.[0-9]+)?$
Example:

"10000"

send_currency
enum<string>

Supported currencies for payins, payouts, and transfers.

Available options:
XAF,
XOF
Example:

"XAF"

receive_amount
string
Pattern: ^[0-9]+(\.[0-9]+)?$
Example:

"10000"

receive_currency
enum<string>

Supported currencies for payins, payouts, and transfers.

Available options:
XAF,
XOF
Example:

"XAF"

country_code
string
Required string length: 2
Example:

"CM"

rail_type
enum<string>
Available options:
mobile_money,
bank_transfer
operator_code
string
provider_reference
string | null
wallet_impact
object

Which merchant wallet this payment books against and by how much. currency is the wallet in the transaction currency when you hold one, otherwise your default settlement wallet. For transfers, collection_wallet_currency is present when the collection leg credits a different wallet.

pricing
object
history
object[]
created_at
string<date-time>
updated_at
string<date-time>
status
enum<string>
Available options:
created,
pending,
completed,
failed
source
object
provider_action
object

What the customer must do now that the provider accepted the request. It appears shortly after the payin is created, not in the 201 response itself.

Last modified on July 8, 2026