Skip to main content
POST
/
v1
/
gateway
Create Payment Gateway
curl --request POST \
  --url https://api.lygosapp.com/v1/gateway \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "amount": 5000,
  "shop_name": "Mon Magasin",
  "message": "Paiement pour commande #12345",
  "success_url": "https://monsite.com/paiement-reussi",
  "failure_url": "https://monsite.com/paiement-echoue",
  "order_id": "CMD-2024-001"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "currency": "<string>",
  "shop_name": "<string>",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "creation_date": "2023-11-07T05:31:56Z",
  "link": "<string>",
  "message": "",
  "order_id": "",
  "success_url": "",
  "failure_url": ""
}

Headers

api-key
string | null
required

Body

application/json
amount
integer
required
shop_name
string
required
message
string | null
default:""
success_url
string | null
default:""
failure_url
string | null
default:""
order_id
string | null
default:""

Response

Successful Response

id
string<uuid>
required
amount
integer
required
currency
string
required
shop_name
string
required
user_id
string<uuid>
required
creation_date
string<date-time>
required
message
string | null
default:""
order_id
string | null
default:""
success_url
string | null
default:""
failure_url
string | null
default:""