PayNow

Invites

Get invites

GEThttps://api.paynow.gg/v1/stores/{storeId}/invites

Retrieves all store member invites for the specified store.

Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as Authorization: APIKey TOKEN.
Path parameters
storeIdFlakeIdRequired
Response
200OKInviteDto[]
Show fields
idFlakeIdRequired
created_atstringRequired
When the invite was created.
created_byActorDtoRequired
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
role_idFlakeIdRequired
store_idFlakeIdRequired
tokenstringRequired
The token the invited user redeems to accept the invite.
user_emailstringRequired
The email address the invite was sent to.
accepted_atstringOptional
When the invite was accepted. Unset while the invite is still pending.
accepted_by_userActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
updated_atstringOptional
When the invite was last updated.
updated_byActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer

Failed requests return a PayNowError body. See the error response guide.

curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/invites" \
  -H "Authorization: APIKey TOKEN"
Response200
[
  {
    "id": "411486491630370816",
    "created_at": "2024-01-01T00:00:00Z",
    "created_by": {
      "id": "411486491630370816",
      "type": "anonymous"
    },
    "role_id": "411486491630370816",
    "store_id": "411486491630370816",
    "token": "string",
    "user_email": "string",
    "accepted_at": "2024-01-01T00:00:00Z",
    "accepted_by_user": {
      "id": "411486491630370816",
      "type": "anonymous"
    },
    "updated_at": "2024-01-01T00:00:00Z",
    "updated_by": {
      "id": "411486491630370816",
      "type": "anonymous"
    }
  }
]

Create an invite

POSThttps://api.paynow.gg/v1/stores/{storeId}/invites

Invites a user to join the store with the specified role.

Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as Authorization: APIKey TOKEN.
Path parameters
storeIdFlakeIdRequired
Request body
role_idFlakeIdRequired
user_emailstringRequired
Response
201CreatedInviteDto
Show fields
idFlakeIdRequired
created_atstringRequired
When the invite was created.
created_byActorDtoRequired
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
role_idFlakeIdRequired
store_idFlakeIdRequired
tokenstringRequired
The token the invited user redeems to accept the invite.
user_emailstringRequired
The email address the invite was sent to.
accepted_atstringOptional
When the invite was accepted. Unset while the invite is still pending.
accepted_by_userActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
updated_atstringOptional
When the invite was last updated.
updated_byActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer

Failed requests return a PayNowError body. See the error response guide.

curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/invites" \
  -H "Authorization: APIKey TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "role_id": "411486491630370816",
  "user_email": "string"
}'
Response201
{
  "id": "411486491630370816",
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": {
    "id": "411486491630370816",
    "type": "anonymous"
  },
  "role_id": "411486491630370816",
  "store_id": "411486491630370816",
  "token": "string",
  "user_email": "string",
  "accepted_at": "2024-01-01T00:00:00Z",
  "accepted_by_user": {
    "id": "411486491630370816",
    "type": "anonymous"
  },
  "updated_at": "2024-01-01T00:00:00Z",
  "updated_by": {
    "id": "411486491630370816",
    "type": "anonymous"
  }
}

Get an invite

GEThttps://api.paynow.gg/v1/stores/{storeId}/invites/{inviteId}

Retrieves a single store member invite.

Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as Authorization: APIKey TOKEN.
Path parameters
storeIdFlakeIdRequired
inviteIdFlakeIdRequired
Response
200OKInviteDto
Show fields
idFlakeIdRequired
created_atstringRequired
When the invite was created.
created_byActorDtoRequired
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
role_idFlakeIdRequired
store_idFlakeIdRequired
tokenstringRequired
The token the invited user redeems to accept the invite.
user_emailstringRequired
The email address the invite was sent to.
accepted_atstringOptional
When the invite was accepted. Unset while the invite is still pending.
accepted_by_userActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer
updated_atstringOptional
When the invite was last updated.
updated_byActorDtoOptional
idFlakeIdOptional
typeenumRequired
Possible enum values
  • anonymous
  • user
  • api_key
  • customer
  • game_server
  • internal
  • admin
  • platform
  • global_customer

Failed requests return a PayNowError body. See the error response guide.

curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/invites/{inviteId}" \
  -H "Authorization: APIKey TOKEN"
Response200
{
  "id": "411486491630370816",
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": {
    "id": "411486491630370816",
    "type": "anonymous"
  },
  "role_id": "411486491630370816",
  "store_id": "411486491630370816",
  "token": "string",
  "user_email": "string",
  "accepted_at": "2024-01-01T00:00:00Z",
  "accepted_by_user": {
    "id": "411486491630370816",
    "type": "anonymous"
  },
  "updated_at": "2024-01-01T00:00:00Z",
  "updated_by": {
    "id": "411486491630370816",
    "type": "anonymous"
  }
}

Cancel an invite

DELETEhttps://api.paynow.gg/v1/stores/{storeId}/invites/{inviteId}

Cancels a pending store member invite.

Headers
AuthorizationAPI KeyRequired
Authentication token for this request, sent as Authorization: APIKey TOKEN.
Path parameters
storeIdFlakeIdRequired
inviteIdFlakeIdRequired
Response
204No Content

Failed requests return a PayNowError body. See the error response guide.

curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/invites/{inviteId}" \
  -H "Authorization: APIKey TOKEN"