orders
GET
https://linkyhub.net/api/v3 /orders Scope orders:readSales, newest first. Buyer details only with orders:read_customer. Paginated.
Parameters
statusstringqueryproductIdstringquerysincestringqueryupdatedSincestringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/orders" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
Example
{
"data": [
{}
]
}Schema
dataobject[]requiredHeaders
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /orders/{orderId} Scope orders:readOne order. Buyer details only with orders:read_customer.
Parameters
orderIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/orders/{orderId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /orders/{orderId}/fulfil Scope orders:writeMark a paid order fulfilled (shipped), with optional tracking. Calling it again replaces the tracking.
Parameters
orderIdstringpathrequiredRequest body
application/json
trackingNumberstringcarrierstringe.g. "USPS", "Royal Mail".
trackingUrlstringnotifyBuyerbooleanEmail the buyer that it shipped, with the tracking. Never sent for a test order.
{
"trackingNumber": "string",
"carrier": "string",
"trackingUrl": "string",
"notifyBuyer": true
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/orders/{orderId}/fulfil" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"trackingNumber":"string","carrier":"string","trackingUrl":"string","notifyBuyer":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /orders/{orderId}/resend-receipt Scope orders:writeEmail the buyer their receipt again.
Parameters
orderIdstringpathrequiredCode samples
cURL
curl -X POST "https://linkyhub.net/api/v3/orders/{orderId}/resend-receipt" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /orders/{orderId}/grant-downloads Scope orders:writeGive a buyer more downloads and a fresh 30-day window.
Parameters
orderIdstringpathrequiredRequest body
application/json
extrainteger{
"extra": 0
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/orders/{orderId}/grant-downloads" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"extra":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /orders/{orderId}/refunds Scope orders:readRefunds issued against an order.
Parameters
orderIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/orders/{orderId}/refunds" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /orders/{orderId}/refunds Scope orders:refundRefund an order in full or in part, on the creator’s own payment account. Requires an Idempotency-Key header; repeating it returns the first refund instead of refunding again.
Parameters
orderIdstringpathrequiredIdempotency-KeystringheaderrequiredRequest body
application/json
amountCentsintegerOmitted: everything not yet refunded.
reasonstring{
"amountCents": 0,
"reason": "string"
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/orders/{orderId}/refunds" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"amountCents":0,"reason":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /orders
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated