Generate Checkout Link

POST /third-parties/checkout-link/generate-checkout-url

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescriptionRequired

orderReference

string

Your Order Reference, shouldn't include special characters such as !@#$%^&*()_+-=[]{};':"\|,.<>/?~]

true

orderCurrency

"TZS" | "USD"

Order Currency

true

totalPrice

number

Total Price

true if no added order items

orderItems

array of objects

An array of items, where each item includes name, price, and quantity fields.

true if total price is not added

customerName

string

Customer full name

false

customerEmail

string

Customer email

false

customerPhone

string

Customer phone number

false

Object structure of orderItems

FieldDypeDescription

name

string

The name of the item.

price

number

The price of the item.

quantity

number

The quantity of the item ordered.

Response

{
  checkoutLink: "https://checkout.clickpesa.com/{reference}"
}

Last updated