API reference

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

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

Arguments

Name Type Description
restaurantId ID!
orderId ID!
phoneNumber E164
isRefund Boolean

Returns

Void

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 } }"}'