Record an order (no store connected)
https://seolyticize.com /api/v1/tools/record_order Records one order for a business not on Stripe, Shopify or Paddle, so get_seo_revenue counts it: orderId (the site's own; recording it again replaces it, a replay is answered 'unchanged'), amountMinor in the currency's minor unit (4999 = 49.99 USD), currency, at (when paid) and, when the site kept one, visit — the visit token /api/collect gave its server collector while the buyer was on the site, which credits the order to that visit's landing page, source and channel. A refund is an order of its own with refundOf naming the order it refunds. Answers 'log this crypto payment against the visit it came from'. Free.
Parameters
Idempotency-KeystringheaderRequest body
application/json
clientIdstringrequiredorderIdstringrequiredamountMinorintegerrequiredcurrencystringrequiredatstringrequiredvisitstringrefundOfstringcustomerIdstring{
"clientId": "string",
"orderId": "string",
"amountMinor": 0,
"currency": "string",
"at": "2024-01-01T00:00:00Z",
"visit": null,
"refundOf": null,
"customerId": null
}Code samples
cURL
curl -X POST "https://seolyticize.com/api/v1/tools/record_order" \
-H "Authorization: Bearer $SEOLYTICIZE_API_KEY" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"clientId":"string","orderId":"string","amountMinor":0,"currency":"string","at":"2024-01-01T00:00:00Z","visit":null,"refundOf":null,"customerId":null}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
data, and its meta.Example
{
"data": {},
"meta": {
"requestId": "string",
"costMicros": 0,
"cached": true,
"cachedFrom": "string",
"dataAsOf": "string",
"sources": [
"string"
],
"partial": true,
"next": [
{
"tool": "string",
"args": {},
"why": "string"
}
],
"nextCursor": "string",
"dryRun": true
}
}Schema
datarequiredmetaobjectrequiredShow child parameters
requestIdstringrequiredcostMicrosintegerrequiredcachedbooleanrequiredcachedFromstringdataAsOfstringsourcesstring[]partialbooleanrequirednextobject[]requiredShow child parameters
toolstringargsobjectwhystringnextCursorstringdryRunbooleanX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerX-Request-IdstringExample
{
"error": "string",
"code": "string",
"next": "string",
"requestId": "string"
}Schema
errorstringrequiredcodestringnextstringrequestIdstringX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/record_order
WWW-AuthenticatestringSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerRetry-AfterintegerSame as 400 · POST /api/v1/tools/record_order
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-Resetinteger