eventSubscriptions
Version 2024-11-01
Important
The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.
Overview
Fetch list of subscriptionIds for given clientId.
Response
Return type EventSubscriptionConnection
Arguments
Argument | Description |
---|---|
after (String) | After takes optional cursor String for forward pagination along with first index. The size should be greater than or equal to 0 and less than or equal to 6000. |
first (Int) | First takes optional non-negative integer for forward pagination along with after cursor. The size should be greater than or equal to 0 and less than or equal to 1000. |
Examples
Query Event Subscriptions
Request
query {
eventSubscriptions {
edges {
node {
id
}
cursor
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
totalCount
}
}
Response
{
"data": {
"eventSubscriptions": {
"edges": [
{
"node": {
"id": "7c391bed-5023-42b7-baf2-bf76db6de5b1"
},
"cursor": "MA=="
}
],
"pageInfo": {
"startCursor": "MA==",
"endCursor": "MA==",
"hasPreviousPage": false,
"hasNextPage": false
},
"totalCount": 1
}
}
}
Query Event Subscriptions When Subscriptions Do Not Exist
Request
query {
eventSubscriptions {
edges {
node {
id
}
cursor
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
totalCount
}
}
Response
{
"errors": [
{
"message": "You do not have sufficient access to perform this action.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"eventSubscriptions"
],
"extensions": {
"classification": {
"type": "AccessDeniedError",
"errorType": "AccessDeniedException",
"errorCode": 403
}
}
}
],
"data": {
"eventSubscriptions": null
}
}
Updated about 10 hours ago