---
title: "Send an SMS message for a membership"
method: POST
path: "/shop/memberships/{membershipId}/sms"
tags: ["Memberships"]
---

# Send an SMS message for a membership

`POST /shop/memberships/{membershipId}/sms`

This endpoint sends an SMS message to a membership's lead member.
Currently supports sending billing details request messages.

## Request body

- object
  - `message_type` 'billing_details_request', required — The type of message to send.
  - `always_send` boolean — If true, send the SMS even if the membership already has a payment method. Defaults to false.

## Response `200`

The SMS message was successfully sent

- object
  - `data` MembershipSmsMessageSummary, required
    - `id` string, object-id, required — The ID of the SMS message.
    - `organisation_id` string, uuid, required — The ID of the organisation the SMS message is associated with.
    - `site_id` string, uuid, required — The ID of the site the SMS message is associated with.
    - `customer_id` string, uuid, required — The ID of the customer the SMS message was sent to.
    - `membership_id` string, uuid — The ID of the membership the SMS message is associated with.
    - `from` string, required — The sender of the SMS message.
    - `to` string, required — The recipient of the SMS message. This is a valid mobile number.
    - `message` string, required — The contents of the SMS message.
    - `message_type` 'billing_details_request', required — The type of message the SMS message is.
    - `message_delivered` boolean, required — Whether the SMS message was successfully delivered.
    - `created_at` string, date-time, required — The date and time the SMS message was created.
    - `sent_at` string, date-time — The date and time the SMS message was sent.

## Other responses

- `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

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
