Skip to main content
This endpoint creates a new payment invoice and returns a link to the LigdiCash payment page. It is the first step of the hosted payin flow.

Headers

string
required
The API key of your LigdiCash project.
string
required
Your API TOKEN prefixed with Bearer . Example: Bearer eyJ0eXAiOiJKV1Qi...
string
required
Must be application/json.
string
required
Must be application/json.

Body

object
required
Root object of the request.

Request example

Response

string
"00" if the invoice was created successfully, "01" on error.
string
Identifier of the transaction on the LigdiCash side. To be stored in your database — required to call confirm.
string
On success: the URL of the payment page to open for the customer. On failure: the error sub-code in the form Echec (CodeXX).
string
URL to the documentation of error codes for this endpoint. To consult when response_code is "01".

Response example