Initialise payment link
Changed onCreates a hosted checkout URL for one customer and one amount. Create links server-side: a link created in the browser is a link whose amount the customer can change.
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
{
"customer": {
"firstName": "Dom",
"lastName": "Aba",
"email": "dom@yopmail.com",
"customerCode": "CUS-100045",
"phoneNumber": "2348012345678",
"integrationId": "int_7f2f9170",
"metadata": "{\"orderId\":\"ORDER-100045\"}",
"riskAction": "default",
"internationalFormatPhone": "+2348012345678"
},
"expiresAt": "2026-02-01T23:59:59Z",
"localCurrency": "NGN",
"description": "Invoice",
"metadata": [
{
"name": "Website design",
"amount": 100,
"quantity": 1
}
],
"feeBearer": "CUSTOMER",
"taxChargeable": "EXCLUSIVE"
}Response
Success.
Example response
{
"status": true,
"message": "Success",
"code": 200,
"data": {}
}Changes
- breaking
added to the
request propertyallOflist - breaking
the
request property type changed fromobjectto no type - breaking
the response's body type changed from
objectto no type for status - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - 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
the
request property format was generalized fromdate-timeto no format - 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