AnfragePOST /api/v1/merchant/offers
X-API-KEY: flx_live_••••••••
Content-Type: application/json
{
"offer": {
"customer_email": "m.berg@nordholz-buero.de",
"cc_emails": "buchhaltung@nordholz-buero.de",
"items": [{
"name": "MacBook Pro 14\"",
"description": "M3, 16 GB RAM",
"price": "1999,00",
"amount": 2
}]
}
}
Antwort201 Created
{
"token": "OFF-8KD2QP",
"state": "open",
"customer": "m.berg@nordholz-buero.de",
"items": [
{ "name": "MacBook Pro 14\"", "price_in_cents": 199900, "total_quantity": 2 }
]
}
AnfrageGET /api/v1/merchant/offers?page=1
X-API-KEY: flx_live_••••••••
Antwort200 OK
{
"data": [
{ "token": "OFF-8KD2QP", "state": "open" },
{ "token": "OFF-2C8D11", "state": "accepted" }
],
"meta": { "page": 1, "limit": 25, "count": 12, "pages": 1 }
}
AnfrageGET /api/v1/merchant/offers/OFF-8KD2QP
X-API-KEY: flx_live_••••••••
Antwort200 OK
{
"data": {
"token": "OFF-8KD2QP",
"state": "accepted",
"customer": "m.berg@nordholz-buero.de",
"valid_until": "2026-08-01T12:00:00.000Z",
"employee": "Max Mustermann"
}
}
AnfrageGET /api/v1/merchant/contracts
X-API-KEY: flx_live_••••••••
Antwort200 OK
{
"data": [{
"token": "FLEX-9K2QDA",
"state": "active",
"product_name": "MacBook Pro 14\"",
"price_in_cents": 199900,
"plan": "monthly",
"customer": { "email": "m.berg@nordholz-buero.de", "name": "Martin Berg" }
}],
"meta": { "page": 1, "limit": 25, "count": 48, "pages": 2 }
}
AnfrageGET /api/v1/merchant/products?search=MacBook
X-API-KEY: flx_live_••••••••
Antwort200 OK
{
"data": [
{ "token": "PRD-4F9AZ2", "name": "MacBook Pro 14\"" }
],
"meta": { "page": 1, "limit": 25, "count": 1, "pages": 1 }
}