Passer au contenu principal
POST
Collect a payment from a customer

Autorisations

Authorization
string
header
requis

Scoped Bearer token from POST /merchant/api/auth.

Corps

application/json
amount
number<float>
requis

Minimum 100 XOF for a collection.

Plage requise: 100 <= x <= 1000000
Exemple:

5000

payment_method
enum<string>
requis

Mobile-money provider for collections/deposits.

Options disponibles:
OrangeMoney,
Wave,
Moov
customer_phone
string
requis
Exemple:

"+22370000000"

currency
string
défaut:XOF
Exemple:

"XOF"

customer_email
string<email>
reference
string

Your unique idempotency reference. Auto-generated if omitted.

description
string
return_url
string<uri>

Redirect after success (hosted checkout providers).

cancel_url
string<uri>

Redirect after cancel (hosted checkout providers).

fee_bearer
enum<string>

Who pays Kori's collection fee for this payment. Defaults to your dashboard setting (Paramètres → Paiements). merchant: the customer is charged amount and you receive amount minus the fee. customer: the fee is added on top — the customer is charged amount_charged (amount + fee) and you receive exactly amount. Show the customer the total before they pay.

Options disponibles:
merchant,
customer

Réponse

Payment initiated; awaiting customer confirmation.

success
boolean
Exemple:

true

message
string
request_id
string<uuid>
data
object