This API operation rejects and re-invites the user of an expired PhoneChat booking.
POST
/v1/PhoneChat/ReInvite
Property | Type | Description |
---|---|---|
BookingID |
integer | Required. The ID of the booking you want to reject. |
Reason |
string | The reason for rejecting the booking. If no reason is supplied, a default reason will be used. |
This endpoint has a couple of prerequisites which affects the current PhoneChat Booking.
Property | Type | Description |
---|---|---|
Status |
string | The Status must be Pending . |
SessionDate |
datetime | The SessionDate cannot be in the future. |
Parameters can be passed to this operation using the HTTP POST method with serialized JSON in the request body.
The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.
An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.
This endpoint requires the following scope:
Scope |
---|
account_phonechat_bookings |
Property | Type | Description |
---|---|---|
BookingID |
integer | The ID of the booking. |
Duration |
integer | The amount of minutes planned for this session |
Credits |
decimal | The amount of credits offered by the client, or agreed upon by both parties if this is an accepted booking. |
Status |
string | The current status of the booking. This can be Pending , Accepted , Rejected , Confirmed or Cancelled . |
Method |
integer | The method used for calling. This can be 1 if the client wants to be called by the booked user (logged in user), 2 if the client will call you him/herself, or 3 if skype will be used. |
PhoneNumber |
string | The phone number provided by the candidate. Note: This will be null if the provided Method does not require a phone number. |
SkypeName |
string | The skype name provided by the candidate. Note: This will be null if the provided Method does not require a skype name. |
CreateDate |
datetime | The date at which the booking has been created. |
SessionDate |
datetime | The date at which the booked session is planned to happen. |
AcceptBy |
datetime | The date until which you have to accept the booking. |
AcceptedDate |
datetime | The date at which the booked session was accepted. This will be null if the booking was never accepted. |
ConfirmedDate |
datetime | The date at which the booked session was confirmed. This will be null if the booking was never confirmed. |
CancelledDate |
datetime | The date at which the booked session was cancelled. This will be null if the booking was never cancelled. |
CancelledReason |
string | The reason provided for cancelling the booking. This will be null if the booking was never cancelled. |
CancelledBy |
string | The nickname of the user who cancelled the booking. This will be null if the booking was never cancelled. |
RejectedReason |
string | The reason provided for rejecting the booking. This will be null if the booking was never rejected. |
LastUpdated |
datetime | The date at which the booking has been most recently updated. |
Comments |
string | The comment text left behind by the client when creating the booking. |
ActionCandidate |
string | A brief message containing the action the user needs to do. This will be null if there are no possible actions. |
Client |
aws:PhoneChatBookingUser | The user who made the booking. |
The following example returns a successfully rejected PhoneChat Booking.