Request preview
POST /merchant/checkout-sessions
X-PayMate-Developer-Key: <provided at run time>
Content-Type: application/json
{
"amount": 5,
"currency": "USD",
"endpoint": "/merchant/checkout-sessions",
"merchantReference": "DOCS-DEMO"
}Code snippets
cURL
curl -X POST https://billie-api.kenac.co.zw/api/v1/merchant/checkout-sessions \
-H 'X-PayMate-Developer-Key: $PAYMATE_DEVELOPER_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount":5,"currency":"USD","endpoint":"/merchant/checkout-sessions","merchantReference":"DOCS-DEMO"}'TypeScript
await fetch("https://billie-api.kenac.co.zw/api/v1/merchant/checkout-sessions", {
method: "POST",
headers: {
"X-PayMate-Developer-Key": process.env.PAYMATE_DEVELOPER_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"amount": 5,
"currency": "USD",
"endpoint": "/merchant/checkout-sessions",
"merchantReference": "DOCS-DEMO"
})
});PHP
<?php
$payload = '{"amount":5,"currency":"USD","endpoint":"/merchant/checkout-sessions","merchantReference":"DOCS-DEMO"}';
$headers = [
'X-PayMate-Developer-Key: ' . getenv('PAYMATE_DEVELOPER_KEY'),
'Content-Type: application/json'
];
// Send POST to https://billie-api.kenac.co.zw/api/v1/merchant/checkout-sessions