Developer platform

Sandbox API explorer

Inspect the sandbox checkout request, copy code snippets, and run it with an issued developer API key.

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

API response

Enter an issued sandbox API key and run the request to see the API response.