Charge transaction
Changed onCreates a transaction the customer pays by bank transfer, returning payment instructions instead of a checkout URL. The customer enters the amount themselves, so underpayment and overpayment are possible.
Request
- Base URLhttps://api.kyshi.co
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "dom@yopmail.com",
"firstName": "Dom",
"lastName": "Aba",
"phoneNumber": "2250734567890",
"localCurrency": "XOF",
"reference": "ORDER-100045",
"channels": [
"mobile_money"
],
"amount": 1000,
"amountCurrency": "local",
"metadata": {
"orderId": "ORDER-100045",
"source": "checkout"
},
"redirectUrl": "https://merchant.example.com/payments/return",
"feeBearer": "CUSTOMER",
"taxChargeable": "EXCLUSIVE",
"chargeType": "BANK_TRANSFER",
"expiresAt": "2026-09-30T23:59:59Z"
}Response
Success.
Example response
{
"status": true,
"message": "Success",
"code": 200,
"data": {}
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from
objectto no type for status - warning
removed
subschema #2from the request bodyallOflist - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
added the new optional request property
- info
added
subschema #2to the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking