POST
/
checkout-link
/
generate-checkout-url
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>"
}

Authorizations

Authorization
string
header
required

Authorization header in the form of Bearer <token>, where <token> is a valid JWT from generate token endpoint

Body

application/json

Response

200
application/json
Generate Checkout Link Response

The response is of type object.