API Requestサンプルクエリ

API Request cURLサンプルクエリ

getShop

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw '{"query":"query { getShop { shop {shopName shopUrl settingOriginalDomain openCondition}}}","variables":{},"operationName":null}' \

sample response

{"data":{"getShop":{"shop":{"shopName":"makeテストショップ","shopUrl":"http://devmakeapp.dev.makeshop.jp/","settingOriginalDomain":"N","openCondition":"N"}}},"extensions":{"date":1692615066517,"serverTimeOffset":540}}

getShopDeliverySetting

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw '{"query":"query getShopDeliverySetting { getShopDeliverySetting { delivery { settingDeliveryMethods { settingName settingDisplay settingShippingFee settingAreaShippingFees { areaName feeByArea } } } } }","variables":{},"operationName":"getShopDeliverySetting"}' \

sample response

{"data":{"getShopDeliverySetting":{"delivery":{"settingDeliveryMethods":[{"settingName":"テスト運輸","settingDisplay":"Y","settingShippingFee":"0xc0000e8858","settingAreaShippingFees":[{"areaName":"北海道","feeByArea":1000},{"areaName":"青 森県","feeByArea":1000},{"areaName":"岩手県","feeByArea":1000},{"areaName":"宮城県","feeByArea":1000},{"areaName":"秋田 県","feeByArea":1000},{"areaName":"山形県","feeByArea":1000},{"areaName":"福島県","feeByArea":1000},{"areaName":"茨城県","feeByArea":1000},{"areaName":"栃木県","feeByArea":1000},{"areaName":"群馬県","feeByArea":1000},{"areaName":"埼玉県","feeByArea":1000},{"areaName":"千葉県","feeByArea":1000},{"areaName":"東京(23区内)","feeByArea":1000},{"areaName":"東京(23区外)","feeByArea":1000},{"areaName":"神奈川県","feeByArea":1000},{"areaName":"新潟県","feeByArea":1000},{"areaName":"富山県","feeByArea":1000},{"areaName":"石川県","feeByArea":1000},{"areaName":"福井県","feeByArea":1000},{"areaName":"山梨 県","feeByArea":1000},{"areaName":"長野県","feeByArea":1000},{"areaName":"岐阜県","feeByArea":1000},{"areaName":"静岡県","feeByArea":1000},{"areaName":"愛知県","feeByArea":1000},{"areaName":"三重県","feeByArea":1000},{"areaName":"滋賀県","feeByArea":1000},{"areaName":"京都府","feeByArea":1000},{"areaName":"大阪府","feeByArea":1000},{"areaName":"兵庫県","feeByArea":1000},{"areaName":"奈良県","feeByArea":1000},{"areaName":"和歌山県","feeByArea":1000},{"areaName":"鳥取県","feeByArea":1000},{"areaName":"島根県","feeByArea":1000},{"areaName":"岡山県","feeByArea":1000},{"areaName":"広島県","feeByArea":1000},{"areaName":"山口県","feeByArea":1000},{"areaName":"徳島県","feeByArea":1000},{"areaName":"香川県","feeByArea":1000},{"areaName":"愛媛県","feeByArea":1000},{"areaName":"高知県","feeByArea":1000},{"areaName":"福岡県","feeByArea":1000},{"areaName":"佐賀県","feeByArea":1000},{"areaName":"長崎県","feeByArea":1000},{"areaName":"熊本県","feeByArea":1000},{"areaName":"大分県","feeByArea":1000},{"areaName":"宮崎県","feeByArea":1000},{"areaName":"鹿児島県","feeByArea":1000},{"areaName":"沖縄県","feeByArea":1000},{"areaName":"離島部","feeByArea":1000},{"areaName":"海外","feeByArea":1000}]}]}}},"extensions":{"date":1692615080888,"serverTimeOffset":540}}

getShopOrderPrint

sample query

curl 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw '{"query":"query getShopOrderPrint { getShopOrderPrint { orderPrint { invoiceNum } }}","variables":{"input":{"page":1,"limit":1000}}}' \

sample response

{"data":{"getShopOrderPrint":{"orderPrint":{"invoiceNum":"T7011001046363"}}},"extensions":{"date":1692616203367,"serverTimeOffset":540}}

getShopSignatureImage

sample query

curl 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw '{"query":"query getShopSignatureImage {getShopSignatureImage {signatureImageUrl } }}","variables":{"input":{"page":1,"limit":1000}}}' \

sample response

{"data":{"getShopSignatureImage":{"getShopSignatureImage":{"signatureImageUrl":"https://..../orderSealImpression651304.jpg"}}},"extensions":{"date":1692616203367,"serverTimeOffset":540}}

searchMember

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchMember($input: SearchMemberRequest\u0021) { searchMember(input: $input) { members { groupId groupName memberId name } } }","variables":{"input":{"page":1,"limit":1000}},"operationName":"searchMember"}' \

sample response

{"data":{"searchMember":{"members":[{"groupId":"","groupName":"","memberId":"dummy0002","name":"メイク剛志"},{"groupId":"","groupName":"","memberId":"dummy0003","name":"メイク英和"},{"groupId":"","groupName":"","memberId":"dummy0004","name":"メイク宗彦"},{"groupId":"","groupName":"","memberId":"dummy0005","name":"メイク亮介"},{"groupId":"","groupName":"","memberId":"dummy0006","name":"メイク昌樹"},{"groupId":"","groupName":"","memberId":"dummy0007","name":"メイク明日香"},{"groupId":"","groupName":"","memberId":"dummy0008","name":"メイク広貴"},{"groupId":"","groupName":"","memberId":"dummy0009","name":"メイクめぐみ"},{"groupId":"","groupName":"","memberId":"dummy0010","name":"メイク大亮"},{"groupId":"","groupName":"","memberId":"dummy0011","name":"メイク貴則"},{"groupId":"","groupName":"","memberId":"dummy0012","name":"メイク洋平"},{"groupId":"","groupName":"","memberId":"dummy0013","name":"メイク理子"},{"groupId":"","groupName":"","memberId":"dummy0014","name":"メイク隆行"},{"groupId":"","groupName":"","memberId":"dummy0015","name":"メイク竜哉"},{"groupId":"","groupName":"","memberId":"dummy0016","name":"メイク徹哉"},{"groupId":"","groupName":"","memberId":"dummy0017","name":"メイ ク慎也"},{"groupId":"","groupName":"","memberId":"dummy0018","name":"メイク高志"},{"groupId":"","groupName":"","memberId":"dummy0019","name":"メイク将人"},{"groupId":"","groupName":"","memberId":"dummy0020","name":"メイク夏海"}]}},"extensions":{"date":1692615099950,"serverTimeOffset":540}}

searchAppPayment

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchAppPayment($input: SearchAppPaymentRequest!) { searchAppPayment(input:$input){ paymentsInfos{ paymentStatus paymentType paymentDate paymentPrice taxRate tax fincodeOrderId paymentsDetails{ amount targetMonth expiration planInfos{ planName fincodePlanId category}}} searchedCount page limit }}","variables":{"input":{"page": 1,"limit":1000}}},"operationName":"searchAppPayment"}' \

sample response

{"data":{"searchAppPayment":{"paymentsInfos":[{"paymentStatus":"CAPTURED","paymentType":"card","paymentDate":"20230314","paymentPrice":600,"taxRate":10,"tax":60,"fincodeOrderId":"o_xxxxxxxxxxxxxxxxxxxxxx","paymentsDetails":[{"amount":600,"targetMonth":"","expiration":null,"planInfos":[{"planName":"サブスク","fincodePlanId":"test_subsc_plan_01","category":"SUBSCRIPTION"}]}]}],"searchedCount":1,"page":1,"limit":1000}},"extensions":{"date":1687496659877,"serverTimeOffset":540}}

searchProduct

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchProduct($input: SearchProductRequest\u0021) { searchProduct(input: $input) { products { uid systemCode productName sellPrice } } }","variables":{"input":{"page":1,"limit":1000}},"operationName":"searchProduct"}' \

sample response

{"data":{"searchProduct":{"products":[{"uid":2,"systemCode":"000000000002","productName":"Tシャツ 定期(購入者指定サイ クル)","sellPrice":2000},{"uid":1,"systemCode":"000000000001","productName":"Tシャツ (商品オプションあり)","sellPrice":1000},{"uid":6,"systemCode":"000000000006","productName":"Tシャツ (オプショングループあり)","sellPrice":1000},{"uid":5,"systemCode":"000000000005","productName":"Tシャツ 定期(毎月1日サイクル)","sellPrice":2000},{"uid":3,"systemCode":"000000000003","productName":"Tシャツ 名入れ","sellPrice":1000},{"uid":4,"systemCode":"000000000004","productName":"Tシャツ カタログ","sellPrice":1000}]}},"extensions":{"date":1692615403876,"serverTimeOffset":540}}

searchProductSubscription

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchProductSubscription($input: SearchProductSubscriptionRequest\u0021){ searchProductSubscription(input: $input) { productSubscriptions { uid customCode systemCode productName subscriptionPrice } } }","variables":{"input":{"page":1,"limit":1000}},"operationName":"searchProductSubscription"}' \

sample response

{"data":{"searchProductSubscription":{"productSubscriptions":[{"uid":2,"customCode":"独自商品コード001","systemCode":"000000000002","productName":"Tシャツ 定期(購入者指定サイクル)","subscriptionPrice":2000},{"uid":5,"customCode":"独自商 品コード001","systemCode":"000000000005","productName":"Tシャツ 定期(毎月1日サイクル)","subscriptionPrice":2000}]}},"extensions":{"date":1692615417470,"serverTimeOffset":540}}

searchOrder

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchOrder($input: SearchOrderRequest\u0021) { searchOrder(input: $input) { orders { systemOrderNumber displayOrderNumber memberId orderDate sumPrice sumPriceOrg excludedSumTax taxCalculationType } } }","variables":{"input":{"startOrderDate":"20221230000000","endOrderDate":"20221231000000","page":1,"limit":1000}},"operationName":"searchOrder"}' \

sample response

{"data":{"searchOrder":{"orders":[{"systemOrderNumber":"20221230121415dummy0060","displayOrderNumber":"P177311167335634718","memberId":"dummy0060","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0070","displayOrderNumber":"P177311160834466638","memberId":"dummy0070","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0139","displayOrderNumber":"P177311143847537287","memberId":"dummy0139","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0267","displayOrderNumber":"P177311161987899229","memberId":"dummy0267","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0277","displayOrderNumber":"P177311154123579257","memberId":"dummy0277","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0346","displayOrderNumber":"P177311137975509239","memberId":"dummy0346","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0474","displayOrderNumber":"P177311155801299710","memberId":"dummy0474","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0484","displayOrderNumber":"P177311145734963682","memberId":"dummy0484","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0518","displayOrderNumber":"P177311169747358287","memberId":"dummy0518","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0681","displayOrderNumber":"P177311146783544836","memberId":"dummy0681","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0691","displayOrderNumber":"P177311140072659343","memberId":"dummy0691","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0725","displayOrderNumber":"P177311164399624588","memberId":"dummy0725","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0863","displayOrderNumber":"P177311171634798231","memberId":"dummy0863","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0888","displayOrderNumber":"P177311141226092915","memberId":"dummy0888","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy0932","displayOrderNumber":"P177311158947025263","memberId":"dummy0932","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy1060","displayOrderNumber":"P177311172683372234","memberId":"dummy1060","orderDate":"2022-12-30 12:14:15","sumPrice":7000,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy1070","displayOrderNumber":"P177311166287055304","memberId":"dummy1070","orderDate":"2022-12-30 12:14:15","sumPrice":34550,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1},{"systemOrderNumber":"20221230121415dummy1139","displayOrderNumber":"P177311150977845563","memberId":"dummy1139","orderDate":"2022-12-30 12:14:15","sumPrice":500,"sumPriceOrg":null,"excludedSumTax":0,"taxCalculationType":1}]}},"extensions":{"date":1692615557231,"serverTimeOffset":540}}

searchOrderSubscription

sample query

curl -X POST 'https://アプリ開発申請のお手続き完了メールにて通知しております' \
  -H 'authorization: Bearer PAT.192a522c36a92af4027a08c59fbeef3dfe74fef22de57edabd323e598080ddeb' \
  -H 'content-type: application/json' \
  -H 'x-api-key: 2215a0c0f32e631a3603a5030daf62eab5bb0ecc3b9171c254d399379ddd8179' \
  -H 'x-timestamp: 1692613424' \
  --data-raw $'{"query":"query searchOrderSubscription($input: SearchOrderSubscriptionRequest\u0021) { searchOrderSubscription(input: $input) { orderSubscriptions { orderInfo { subscriptionProduct { systemCode productName sellPrice { price } } } } } }","variables":{"input":{"page":1,"limit":1000}},"operationName":"searchOrderSubscription"}' \

sample response

{"data":{"searchOrderSubscription":{"orderSubscriptions":[{"orderInfo":{"subscriptionProduct":{"systemCode":"000000000002","productName":"Tシャツ 定期(購入者指定サイクル)","sellPrice":{"price":2000}}}}]}},"extensions":{"date":1692615605462,"serverTimeOffset":540}}