Potwierdź kod
verify_phone_codePURPOSE: Exchanges the SMS code from start_phone_verification for a customer_grant (valid 60 minutes) that gives access to this customer's own bookings. WHEN TO USE: Right after the customer types the code from start_phone_verification. WHEN NOT TO USE: Not for the booking code from prepare_booking (that one goes to create_booking). REQUIRED: verification_id, code. SIDE EFFECTS: none besides issuing the grant. Pass customer_grant to get_my_bookings, check_availability(booking_reference), reschedule_booking and cancel_booking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 6-digit code the customer received by SMS | |
| session_id | No | Optional. session_id from the previous result, if you have it. The server also recovers the session from quote_id / slot_id / confirmation_id / customer_grant. | |
| verification_id | Yes | verification_id from start_phone_verification |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| error | No | Stable machine-readable error id when success=false, e.g. missing_required_fields, unsupported_postcode, no_availability | |
| scopes | No | ||
| message | No | ||
| success | Yes | true = operation done / data returned; false = see error | |
| expires_in | No | ||
| session_id | No | ||
| customer_grant | No | ||
| missing_fields | No |