Anchor to taxSummaryCreatetax
taxSummaryCreate
mutation
Requires access scope. Also: The caller must be a tax calculations app and the relevant feature must be on.
Creates a tax summary for a given order. If both an order ID and a start and end time are provided, the order ID will be used.
Anchor to Arguments
Arguments
- Anchor to endTimeend•
Time The end time of the range of orders to create the tax summary for.
- Anchor to orderIdorder•
Id The ID of the order to create the tax summary for.
- Anchor to startTimestart•
Time The start time of the range of orders to create the tax summary for.
Was this section helpful?
Anchor to TaxSummaryCreatePayload returnsTaxSummaryCreatePayload returns
- Anchor to enqueuedOrdersenqueued•
Orders A list of orders that were successfully enqueued to create a tax summary.
- Anchor to userErrorsuser•
Errors [TaxSummary non-nullCreate User Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation taxSummaryCreate($endTime: DateTime, $orderId: ID, $startTime: DateTime) {
taxSummaryCreate(endTime: $endTime, orderId: $orderId, startTime: $startTime) {
enqueuedOrders {
# Order fields
}
userErrors {
field
message
}
}
}
Input
{
"endTime": "2019-09-07T15:50:00Z",
"orderId": "gid://shopify/<objectName>/10079785100",
"startTime": "2019-09-07T15:50:00Z"
}
{
"endTime": "2019-09-07T15:50:00Z",
"orderId": "gid://shopify/<objectName>/10079785100",
"startTime": "2019-09-07T15:50:00Z"
}