Skip to main content
POST
Authorize payin
Use this endpoint only when a payin’s provider_action.type is submit_otp. The customer has received a code from the operator; send it here. See Customer actions for the full flow.
  • The payin stays pending. Its final status arrives by webhook or GET /payins/{payin_id}, as for any payin.
  • No Idempotency-Key is needed. A payin accepts one code; sending another after it was accepted returns 409.
  • A wrong code returns 422 and leaves the payin waiting, so the customer can try again.
  • 503 with reason provider_outcome_unknown means the provider did not confirm the code. Fetch the payin before retrying: if provider_action is gone, the code was accepted.

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.

Path Parameters

payin_id
string<uuid>
required

Body

application/json
otp_code
string
required
write-only

The code the customer received after submission. Never returned by the API.

Example:

"654321"

Response

The payin, still pending, with provider_action removed once the code is accepted.

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 October 24, 2026