curl -X POST " https://api.playground.try.be/shop/appointment-enquiries/abc123/confirm " \
-H " Authorization: Bearer YOUR_API_KEY " \
-H " Accept: application/json " \
-H " Content-Type: application/json " \
-d ' {
"time": "2026-06-15T10:00:00Z"
} ' const response = await fetch ( ' https://api.playground.try.be/shop/appointment-enquiries/abc123/confirm ' , {
method : ' POST ' ,
headers : {
Authorization : ' Bearer YOUR_API_KEY ' ,
' Content-Type ' : ' application/json ' ,
Accept : ' application/json ' ,
},
body : JSON . stringify ( {
" time " : " 2026-06-15T10:00:00Z "
} ) ,
} )
if ( ! response . ok ) {
throw new Error ( ` Trybe API ${ response . status } : ${ await response . text () }` )
}
const data = await response . json () import httpx
response = httpx . post (
" https://api.playground.try.be/shop/appointment-enquiries/abc123/confirm " ,
headers = {
" Authorization " : " Bearer YOUR_API_KEY " ,
" Accept " : " application/json " ,
" Content-Type " : " application/json " ,
},
json = {
" time " : " 2026-06-15T10:00:00Z "
},
)
response . raise_for_status ()
data = response . json () <? php
$ client = new \ GuzzleHttp \ Client ();
$ response = $ client -> request ( ' POST ' , ' https://api.playground.try.be/shop/appointment-enquiries/abc123/confirm ' , [
' headers ' => [
' Authorization ' => ' Bearer YOUR_API_KEY ' ,
' Accept ' => ' application/json ' ,
' Content-Type ' => ' application/json ' ,
],
' json ' => [
' time ' => ' 2026-06-15T10:00:00Z '
],
]);
$ data = json_decode ($ response -> getBody (), true ); package main
import (
" bytes "
" encoding/json "
" net/http "
)
func main () {
payload , _ := json . Marshal ( map [ string ] interface {}{
" time " : " 2026-06-15T10:00:00Z " ,
})
req , _ := http . NewRequest ( " POST " , " https://api.playground.try.be/shop/appointment-enquiries/abc123/confirm " , bytes . NewBuffer ( payload ))
req . Header . Set ( " Authorization " , " Bearer YOUR_API_KEY " )
req . Header . Set ( " Accept " , " application/json " )
req . Header . Set ( " Content-Type " , " application/json " )
resp , err := http . DefaultClient . Do ( req )
if err != nil {
panic ( err )
}
defer resp . Body . Close ()
var data map [ string ] interface {}
json . NewDecoder ( resp . Body ). Decode ( & data )
} 200 401 403 404 422
Results of the availability check for an appointment enquiry
{
" data " : {
" id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" appointment_type_id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" appointment_type_name " : " string " ,
" time_from " : " 2026-01-15T09:30:00+00:00 " ,
" time_to " : " 2026-01-15T09:30:00+00:00 " ,
" status " : " received " ,
" can_confirm " : false ,
" cancellation_reason " : " expired " ,
" order " : {
" id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" order_ref " : " TRY00 " ,
" full_name " : " Jessica Jones "
},
" last_checked_at " : " 2026-01-15T09:30:00+00:00 " ,
" received_at " : " 2026-01-15T09:30:00+00:00 "
}
} {
" message " : " Unauthenticated "
} {
" message " : " This action is unauthorized. "
} {
" message " : " The requested resource could not be found "
} {
" errors " : {},
" message " : " The request didn't pass validation "
}