{ "status": "error", "status_code": 422, "message": "Request failed", "data": { "gateway": ["The gateway field is required."], "currency": ["The currency field is required."] }}
Deposits
Create Deposit (Payin)
Initiate an incoming payment using a payin gateway
Initiate a customer deposit via a supported payin gateway. Optionally pass a quote_id from POST /exchange-rate to lock the rate and amount before redirecting the customer.
POST https://api.yativo.com/api/v1/wallet/deposits/new
Requires Idempotency-Key header. Retrieve available gateways and their IDs with GET /payment-methods/payin?country={iso2}.
A quote ID from POST /exchange-rate (created with method_type: "payin"). When supplied, the locked amount and rate from the quote are used — amount is ignored.
{ "status": "error", "status_code": 422, "message": "Request failed", "data": { "gateway": ["The gateway field is required."], "currency": ["The currency field is required."] }}
After a successful response, redirect the customer to deposit_url to complete payment on the gateway’s hosted page. Once completed, the customer is returned to your redirect_url and a deposit.completed webhook fires.