Leepa Africa API

Sections

Theme switcher

Submit Signed Purchase Message

Submit signed purchase session endpoint allows you to submit signed messages for processing. If the user has already approved our network smart contract to spend their token then we can immediately process the payment. If they need to approve our smart contract we will notifiy you and provide you relevant information to complete the approval process. If token approval does not exist, the response will be permit message typed data.

A short demo on how to sign a message using EIP-712 is available here: CodeSandbox EIP-712 Demo.

Header Parameters

Content-Typestring
API-Keystring Required
Merchant-IDstring Required

Body Parameters

purchase_session_idstring Required

ID of the purchase session

signed_typed_dataobject

Show child attributes

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?