(Step 2) [POST] Create a Remote Payment
POST /remote_api/v1/remote_payments
Authorization: Bearer LOCATION_API_KEY
Content-Type: application/json
{
"deviceId": 125,
"amount": 1099,
"description": "Order 1234",
"paymentType": "CARD",
"stxtType": "DEBIT",
"externalReference": "ORDER-1234",
"currency": "EUR",
"metadata": {"customerId": "42"},
"callbackUrl": "https://merchant.example/payments/callback",
"callbackToken": "secret",
"nameCaisse": "Checkout 1"
}
amount is required and must be positive. Supported paymentType values are CARD/CB, LYZI, and CASH (also ESPECE/ESPECES). It defaults to CARD. currency defaults to EUR.
The response contains id, externalReference, deviceId, createdAt, metadata, the nested payment object and refundDetails. The payment object exposes eligibility flags (isRefundable, isCancellable, isAbortable) and, when applicable, externalPaymentUrl and settlement information.
Main errors: 400 invalid amount/payment type/device, 401 invalid token, 404 unknown device, 409 ambiguous device location or full event queue, 422 inactive location/terminal, disallowed terminal mode or missing Lyzi configuration.