POST
/
checkout-link
/
generate-checkout-url
cURL
curl --request POST \
  --url https://api.clickpesa.com/third-parties/checkout-link/generate-checkout-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "totalPrice": "<string>",
  "orderReference": "<string>",
  "orderCurrency": "TZS",
  "customerName": "<string>",
  "customerEmail": "<string>",
  "customerPhone": "<string>",
  "checksum": "<string>"
}'
{
  "checkoutLink": "<string>",
  "clientId": "<string>"
}

Authorizations

Authorization
string
header
required

Authorization header containing the JWT access token returned from the generate token endpoint. The token already includes the Bearer prefix. Example: Authorization: Bearer eyJhbGciOi...

Body

application/json
totalPrice
string
required

Your order amount

orderReference
string
required

Your unique Order reference

orderCurrency
enum<string>
required

Your order payment currency to receive in(e.g., TZS, USD)

Available options:
TZS,
USD
customerName
string

Your customer name

customerEmail
string

Your customer email

customerPhone
string

Your customer phone number, starting with country code and without the plus sign, e.g., 255712345678

checksum
string

If enabled, this is the generated checksum of the payload. Refer to the documentation for more details.

Response

Generate Checkout Link Response

Hosted Checkout Link

clientId
string

Application Client ID associated with the checkoutLink