# sendReceiptLinkViaSms

> Send a digital receipt to the user that placed an order.

If no phone number is supplied, the phone number that was used to pay with Swish will be used.

Required permission: RestaurantRead

Source: https://docs.gastrogate.io/docs/api/mutations/sendReceiptLinkViaSms

```graphql
sendReceiptLinkViaSms(
  restaurantId: ID!
  orderId: ID!
  phoneNumber: E164
  isRefund: Boolean
): Void
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `orderId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `phoneNumber` | [`E164`](https://docs.gastrogate.io/docs/api/types/E164.md) |  |
| `isRefund` | [`Boolean`](https://docs.gastrogate.io/docs/api/types/Boolean.md) |  |

## Returns

[`Void`](https://docs.gastrogate.io/docs/api/types/Void.md)

## Example

```graphql
mutation SendReceiptLinkViaSms($restaurantId: ID!, $orderId: ID!) {
  sendReceiptLinkViaSms(restaurantId: $restaurantId, orderId: $orderId)
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { sendReceiptLinkViaSms(...) { __typename } }"}'
```
