Offerings catalog

Visit Type

A VisitType represents a configuration for a Visit.

get/shop/visit-types

Show VisitTypes

listVisitTypes

This endpoint retrieves a list of VisitTypes.

Query parameters

  • site_iduuidoptional

    Filter VisitTypes that belong to the given site ID

  • archivedbooleanoptional

    Whether to include archived resources in the response. When true, archived resources are returned; when false or omitted, only non-archived resources are returned.

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

Responses

  • 200

    The response to a request to list VisitTypes

  • 401

    The user is unauthenticated

post/shop/visit-types

Create VisitType

createVisitType

This endpoint creates a new VisitType.

Query parameters

  • site_iduuidoptional

    Filter VisitTypes that belong to the given site ID

Request body

  • namestringrequired

    A name to identify this visit configuration, for internal use.

  • descriptionstringoptional

    A description of this visit configuration, for internal use.

  • offeringsobject[]optional

    An array of offerings which each guest can choose from. Each guest may choose one of the following.

Responses

  • 201

    The response to a request a single VisitType

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/shop/visit-types/{visitTypeId}

Show a VisitType

getVisitType

Use this endpoint to retrieve a VisitType

Path parameters

  • visitTypeIdobject-idoptional

    The unique identifier of the VisitType.

Responses

  • 200

    The response to a request a single VisitType

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/shop/visit-types/{visitTypeId}

Update a VisitType

updateVisitType

Use this endpoint to update an existing VisitType.

Path parameters

  • visitTypeIdobject-idoptional

    The unique identifier of the VisitType.

Request body

  • namestringoptional

    A name to identify this visit configuration, for internal use.

  • descriptionstringoptional

    A description of this visit configuration, for internal use.

  • offeringsobject[]optional

    An array of offerings which each guest can choose from. Each guest may choose one of the following.

  • email_settingsobjectoptional

    Email settings associated with this visit type.

  • integration_settingsobjectoptional

    Integration settings associated with this visit type.

  • rate_codesstring[]optionalnullable

    An array of unique rate codes associated with this visit type. Each code must be unique across all visit types.

Responses

  • 201

    The response to a request a single VisitType

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/shop/visit-types/{visitTypeId}

Archive a VisitType

deleteVisitType

Use this endpoint to archive a VisitType.

Path parameters

  • visitTypeIdobject-idoptional

    The unique identifier of the VisitType.

Responses

  • 204

    VisitType archived

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

post/shop/visit-types/{visitTypeId}/restore

Restore a VisitType

restoreVisitType

Use this endpoint to restore an archived VisitType.

Path parameters

  • visitTypeIdobject-idoptional

    The unique identifier of the VisitType.

Responses

  • 200

    The response to a request a single VisitType

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found