bumps
GET
https://linkyhub.net/api/v3 /bumps Scope discounts:readOrder bumps: discounted add-ons offered at checkout.
Code samples
cURL
curl -X GET "https://linkyhub.net/api/v3/bumps" \
-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.
POST
https://linkyhub.net/api/v3 /bumps Scope discounts:writeOffer one of the creator’s products as a checkout add-on.
Request body
application/json
productIdstringrequiredThe product id.
headlinestringrequireddescriptionstringdiscountPercentintegerrequired{
"productId": "string",
"headline": "string",
"description": "string",
"discountPercent": 0
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/bumps" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"productId":"string","headline":"string","description":"string","discountPercent":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 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 /bumps
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
DELETE
https://linkyhub.net/api/v3 /bumps/{bumpId} Scope discounts:writeDelete an order bump.
Parameters
bumpIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://linkyhub.net/api/v3/bumps/{bumpId}" \
-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 /bumps
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /bumps/{bumpId} Scope discounts:writeSwitch an order bump on or off.
Parameters
bumpIdstringpathrequiredRequest body
application/json
isActivebooleanrequired{
"isActive": true
}Code samples
cURL
curl -X PATCH "https://linkyhub.net/api/v3/bumps/{bumpId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"isActive":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 /bumps
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated