API reference
receipt
The receipt query. Returns Receipt.
receipt(
orderId: ID!
viewKey: String!
): ReceiptArguments
| Name | Type | Description |
|---|---|---|
orderId |
ID! |
|
viewKey |
String! |
Returns
Example
query Receipt($orderId: ID!, $viewKey: String!) {
receipt(orderId: $orderId, viewKey: $viewKey) {
id
createdAt
html
humanOrderCode
refund
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "query { receipt(...) { __typename } }"}'