Skip to content

Instantly share code, notes, and snippets.

View ShayneP's full-sized avatar

Shayne Parmelee ShayneP

View GitHub Profile
mutation {
fulfillmentOrderReschedule(
id: "gid://shopify/FulfillmentOrder/1899851251768",
fulfillAt: "2022-01-01"
)
{
fulfillmentOrder {
fulfillAt
}
userErrors {
mutation {
fulfillmentOrderReschedule(
id: "gid://shopify/FulfillmentOrder/1899851251768",
fulfillAt: "2021-01-01"
)
{
fulfillmentOrder {
fulfillAt
}
userErrors {
{
products(first: 2, query: "status:draft") {
edges {
node {
id
title
status
}
}
}
{
shop {
shopPolicies {
body
type
}
}
}
mutation addDiscount {
orderEditAddLineItemDiscount(
id: "gid://shopify/CalculatedOrder/5678"
lineItemId: "gid://shopify/CalculatedLineItem/121314"
discount: { percentValue: 20, description: "Upsell" }
) {
calculatedOrder {
id
addedLineItems(first: 5) {
edges {
mutation {
discountCodeBulkDelete(
ids: [
"gid://shopify/DiscountCodeNode/417076609046"
"gid://shopify/DiscountCodeNode/417076123144"
"gid://shopify/DiscountCodeNode/417076632452"
"gid://shopify/DiscountCodeNode/417074353452"
"gid://shopify/DiscountCodeNode/417012837128"
"gid://shopify/DiscountCodeNode/417712637123"
"gid://shopify/DiscountCodeNode/412361823821"
{
"data": null,
"errors": [
{
"message": "Access denied for products field.",
"locations": [
{
"line": 2,
"column": 3
}
{
"data": null,
"errors": [
{
"message": "access denied",
"locations": [
{
"line": 2,
"column": 3
}
{
"data": {
"order": {
"id": "gid://shopify/Order/1",
"localizationExtensions": {
"edges": [
{
"node": {
"countryCode": "BR",
"purpose": "TAX",
mutation {
appSubscriptionCreate(
name: "Product Photos PRO"
returnUrl: "https://www.shopify.com"
lineItems: [
{
plan: {
appRecurringPricingDetails: {
price: { amount: 10.00, currencyCode: USD }
interval: ANNUAL