POST
/
api
/
REST
/
create-order
curl --request POST \
  --url https://sandbox.payblis.com/api/REST/create-order \
  --header 'Content-Type: <content-type>' \
  --header 'X-Merchant-Key: <api-key>' \
  --header 'X-Payblis-Signature: <x-payblis-signature>' \
  --data '{
  "amount": "19.99",
  "RefOrder": "ORDER-123",
  "Customer_Email": "customer@example.com",
  "Customer_Name": "Doe",
  "Customer_FirstName": "John",
  "country": "France",
  "userIP": "127.0.0.1",
  "lang": "en",
  "store_name": "Example Store",
  "urlOK": "https://your-domain.com/success",
  "urlKO": "https://your-domain.com/failed",
  "ipnURL": "https://your-domain.com/ipn",
  "cardHolderName": "JOHN DOE",
  "cardno": "4556557955726624",
  "expMonth": "12",
  "expYear": "2025",
  "CVN": "123"
}'
{
  "success": true,
  "status": "success",
  "transaction_id": "PAYB-123456",
  "ref_order": "ORDER-123",
  "amount": "19.99"
}

Authorizations

X-Merchant-Key
string
header
required

Headers

X-Merchant-Key
string
required

Your merchant key

X-Payblis-Signature
string
required

HMAC-SHA256 signature

Content-Type
string
default:application/json
required

Must be application/json

Body

application/json

Order details

The body is of type object.

Response

200
application/json

Successful response

The response is of type object.