Create a hold token
Rate limits
This endpoint belongs to the priority lane.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/hold-tokens
$seatsioClient->holdTokens->create(); // uses default expiration date for your account
$seatsioClient->holdTokens->create(5); // sets expiration date to 5 minutes in the future
await Client.HoldTokens.CreateAsync(); // uses default expiration date for your account
await Client.HoldTokens.CreateAsync(5); // sets expiration date to 5 minutes in the future
client.holdTokens.create(); // uses default expiration date for your account
client.holdTokens.create(5); // sets expiration date to 5 minutes in the future
client.hold_tokens.create() // uses default expiration date for your account
client.hold_tokens.create(5) // sets expiration date to 5 minutes in the future
client.hold_tokens.create // uses default expiration date for your account
client.hold_tokens.create :expire_in_minutes 5 // sets expiration date to 5 minutes in the future
await client.holdTokens.create(); // uses default expiration date for your account
await client.holdTokens.create(5); // sets expiration date to 5 minutes in the future
holdToken, err := client.HoldTokens.Create() // uses default expiration date for your account
holdToken, err := client.HoldTokens.CreateWithExpiration(5) // sets expiration date to 5 minutes in the future
You can pass in an optional expiresInMinutes
value if the expiration date is different from the default value set for you account:
{
"expiresInMinutes": 30
}
curl -X POST https://api-{region}.seatsio.net/hold-tokens \
-u aSecretKey: \
-H "Content-Type: application/json" \
-d "{'expiresInMinutes': 30}"
{
"holdToken": "wvXbB9MlHt",
"expiresAt": "2017-05-05T10:58:44.715Z",
"expiresInSeconds": 768
}