Leepa Africa API

Sections

Theme switcher

Submit Signed Permit Message

Submit Signed Permit message endpoint enables you to submit the signed permit message from your user that gives our smart contract the ability to spend their tokens. Once we confirm the validity of the signed permit message we will process the related purchase session transaction.

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
signed_permitobject

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?