Featyred 8

Alien Studio
Featyred 8

Alien Studio
Rreth pozicionit
Here’s what POST /api/v1/pok/orders/sync actually returns.
Response shape
{
"success": true,
"data": {
"invoiceId": "<invoice_id>",
"invoiceNumber": "<invoice_number>",
"invoiceStatus": "paid",
"updated": true,
"order": { ... }
}
}
Important detail: the status field is data.invoiceStatus, not data.status.
Comparison with what you mentioned
|
Shape |
Supported? |
|
{ success: true, { invoiceId, status: "paid" } } |
❌ No – backend uses invoiceStatus, not status |
|
{ success: true, { { status: "paid" } } } |
❌ No – no nested data.data |
|
{ success: true, { invoiceId, invoiceStatus: "paid" } } |
✅ Yes – this is what the backend returns |
Suggested getSyncStatusFromResponse logic
For the backend response above, you can use:
// Check: data.invoiceStatus === "paid"
syncData?.success && syncData?.data?.invoiceStatus === 'paid'
Pikat kryesore
Përfitime
Kualifikime dhe Aftësi të Kërkuara
Përmbledhje
Statistikat
Informacioni i kompanisë

Marketing Agency
- Pozicione aktive
- 16 pozicione
- Website
- alienstudio.al/
- NIPT
- L92110501A