user_invitations
Resource: user_invitation
This link relationship returns a collection of user invitations. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.
Notes
Permissions depend on who is acting. Listing a store's invitations (/stores/{id}/user_invitations) and creating one require user_invitations_read / user_invitations_write. Listing a user's own invitations (/users/{id}/user_invitations) requires users_read. See the user_invitation resource and the Scopes guide for the full breakdown.
Required Scopes How scopes work →
store_full_access For a store's invitations:
user_invitations_write For a user's own invitations:
users_read users_write Collection Resource
user_invitationActions
Properties (5)
_embedded Object · Read-only Contains fx:user_invitations[] — array of user_invitation resources
total_items String · Read-only Total number of resources in this collection.
returned_items Number · Read-only Number of resources returned in this page.
limit Number · Read-only Maximum number of resources per page.
offset Number · Read-only Number of resources skipped.
Link Relations (5)
self This Collection first First Page of this Collection prev Previous Page of this Collection next Next Page of this Collection last Last Page of this Collection Example Representation
{
"_links": {
"curies": [
{
"name": "fx",
"href": "https://api.foxycart.com/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.foxycart.com/stores/123/user_invitations",
"title": "This Collection"
},
"first": {
"href": "https://api.foxycart.com/stores/123/user_invitations?offset=0",
"title": "First Page of this Collection"
},
"prev": {
"href": "https://api.foxycart.com/stores/123/user_invitations?offset=0",
"title": "Previous Page of this Collection"
},
"next": {
"href": "https://api.foxycart.com/stores/123/user_invitations?offset=20",
"title": "Next Page of this Collection"
},
"last": {
"href": "https://api.foxycart.com/stores/123/user_invitations?offset=20",
"title": "Last Page of this Collection"
}
},
"_embedded": {
"fx:user_invitations": [
{
"_links": {
"curies": [
{
"name": "fx",
"href": "https://api.foxycart.com/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.foxycart.com/user_invitations/456",
"title": "This User Invitation"
},
"fx:store": {
"href": "https://api.foxycart.com/stores/456",
"title": "This Store"
}
},
"store_url": "http://www.example.com/",
"store_name": "Example Store",
"store_email": "john@example.com",
"store_domain": "example",
"first_name": "Mary",
"last_name": "Smith",
"email": "mary@example.com",
"scope": "transactions_read customers_write",
"status": "sent",
"date_created": "2022-12-01T10:07:05-0800",
"date_modified": "2022-12-01T10:07:05-0800"
}
]
},
"total_items": 1,
"returned_items": 1,
"limit": 20,
"offset": 0
}