OrderDetails
/rpc#OrderDetailsThe store's orders. Plugins with the store's orders:read grant can read an order's details. A store API key can call it, a read-only one included. Plugins can call this RPC with the invocation token after the store grants orders:read.
Dashboard session cookie (name prefix __Host-sh), set by sign in and managed by the browser.
In: cookie
The store the seller acts on.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "Request"
Correlates the response line with this request.
Value in
- "OrderDetails"
Leave empty; the server prepends the HTTP request headers.
items <= 0Response Body
application/json
printf '%s\n' '{"_tag":"Request","id":"0","tag":"OrderDetails","payload":{"orderId":"<uuid>"},"headers":[]}' | curl -X POST "$NOVINZO_API/rpc" \ -H "Content-Type: application/ndjson" \ -H "Authorization: Bearer $NOVINZO_API_KEY" \ --data-binary @-{ "_tag": "Exit", "requestId": "string", "exit": { "_tag": "Success", "value": { "orderId": "string", "storeUserId": "string", "customerEmail": "string", "ipAddress": "string", "shippingAddress": { "name": "string", "line1": "string", "line2": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string", "phone": "string" }, "status": "draft", "total": { "amountMinorUnits": "string", "currency": "AED" }, "adjustments": [ { "type": "discount", "description": "string", "amount": { "amountMinorUnits": "string", "currency": "AED" }, "variantId": "string" } ], "createdAt": "string", "payment": { "paymentMethod": { "providerId": "stripe", "displayName": "string", "description": "string", "iconUrl": "string", "capabilities": { "canCapture": true, "canRefund": true, "canPartialRefund": true, "requiresManualVerification": true, "notifications": [ "webhook" ], "supportsPreauthorization": true, "hasApiValidation": true, "redeemsVouchers": true } }, "checkoutSessionId": "string", "transactionId": "string", "cryptoInvoice": { "paymentId": "string", "status": "pending", "asset": "btc", "assetLabel": "string", "address": "string", "amountDisplay": "string", "receivedDisplay": "string", "overpaidDisplay": "string", "receivedComparison": "short", "txIds": [ "string" ], "lateSeenAt": "string", "acceptable": true } }, "paymentAcceptable": true, "paymentRecord": { "id": "string", "status": "pending", "amount": { "amountMinorUnits": "string", "currency": "AED" }, "additions": { "amountMinorUnits": "string", "currency": "AED" } }, "manualPaymentProof": { "submittedAt": "string", "transactionId": "string", "notes": "string" }, "items": [ { "id": "string", "productName": "string", "productVariantId": "string", "variantName": "string", "options": [ { "name": "string", "value": "string" } ], "quantity": 1, "unitPrice": { "amountMinorUnits": "string", "currency": "AED" }, "delivery": { "id": "string", "deliveryMethod": "asset", "deliveryDetails": { "_tag": "asset", "url": "string" }, "description": "string", "deliveredKeys": [ { "variantId": "string", "value": "string", "status": "active" } ] }, "webhookDelivery": { "status": "pending", "deliverables": [ "string" ], "message": "string", "failureReason": "string", "attempts": -9007199254740991 }, "pluginDelivery": { "status": "delivering", "attempts": -9007199254740991, "lastAttemptAt": "string", "failureReason": { "_tag": "PluginHttpError", "status": -9007199254740991 } }, "awaitingDelivery": true, "charges": [ { "id": "string", "description": "string", "amount": { "amountMinorUnits": "string", "currency": "AED" } } ], "buyerInputs": [ { "label": "string", "value": "string", "collectedBy": "string" } ], "ships": true, "deliveryReports": [ { "id": "string", "quantity": -9007199254740991, "label": "string", "url": "string", "reportedAt": "string" } ], "oversold": true, "replacements": [ { "id": "string", "variantName": "string", "options": [ { "name": "string", "value": "string" } ], "quantity": -9007199254740991, "status": "held", "holdExpiresAt": "string", "label": "string", "url": "string", "shippedAt": "string" } ], "restockedQuantity": -9007199254740991, "refundedQuantity": -9007199254740991 } ], "renewedSubscriptionId": "string", "startedSubscriptionIds": [ "string" ] } }}OrderAcceptPayment POST
Marking an order paid that its payment provider has not confirmed. Only a seller signed in to the dashboard can call it; store API keys are refused.
OrderDownloadInvoice POST
The store's orders. Plugins with the store's orders:read grant can read an order's details. A store API key can call it, a read-only one included.
