Leepa Africa API

Sections

Theme switcher

Request Purchase Message to Sign

Request Message endpoint allows users to create a new message that can be cryptographically signed by your users using signedTypeData methods. This allows you to configure a purchase session and sign that purchase session agreement, or pass that agreement along to your users for them to sign, bypassing the need to use our checkout user interface. If we can't process the request automatically, we'll create a unique payment URL where the payment can be made.

Header Parameters

Content-Typestring
API-Keystring Required
Merchant-IDstring Required

Body Parameters

purchase_session_idstring Required

ID of the purchase session

wallet_addressstring Required

Address of wallet from which payment will be made

product_namestring

Name of the product that is being sold

priceinteger Required

Price of the product

metadataobject

Optional json data (e.g., invoice number, product ID).

Show child attributes

tokenstring

Symbol of the token to be used for payment

recurringboolean

Set as true if used for subscription. Defaults to false

durationstring

Required if recurring is set as true. If user provides a number, it will represent the number of recurring payments

frequencystring

Required if recurring is set as true.

Enum values:
EveryEvery OtherEvery ThirdEvery FourthEvery FifthEvery SixthEvery Seventh
intervalstring

Required if recurring is set a true. Defaults to 0 if recurring is false.

Enum values:
DayWeekMonthYearMinuteHour
chainIdnumber

Chain ID of the blockchain network being used for payment.

Response

200
Object

Response Attributes

dataobject

Show child attributes

statusnumber
401
Object

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

400
Object
Invalid

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

500
Object

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?