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
sendReceiptLinkViaSms(
restaurantId: ID!
orderId: ID!
phoneNumber: E164
isRefund: Boolean
): VoidArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
orderId |
ID! |
|
phoneNumber |
E164 |
|
isRefund |
Boolean |
Returns
Example
mutation SendReceiptLinkViaSms($restaurantId: ID!, $orderId: ID!) {
sendReceiptLinkViaSms(restaurantId: $restaurantId, orderId: $orderId)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { sendReceiptLinkViaSms(...) { __typename } }"}'