amazonOffer Arguments input : AmazonOfferInput! A non-null input object containing the required information to fetch the Amazon product offer. Returns OfferResponse.* : OfferResponse! Any requested field from the OfferResponse object. Examples graphql GraphQL query AmazonOffer { amazonOffer( input: { productID: "B08C1W5N87" location: { city: "Berkeley", stateCode: "CA", countryCode: "US" } } ) { subtotal { value currency displayValue } taxes { value currency displayValue } shipping { value currency displayValue } margin { value currency displayValue } total { value currency displayValue } } } Text cURL echo ' { "variables": { "input": { "productID": "B08C1W5N87", "location": { "city": "Beverly Hills", "stateCode": "CA", "countryCode": "US" } } }, "query": "query AmazonOffer($input: AmazonOfferInput!) { amazonOffer(input: $input) { subtotal { value currency displayValue } taxes { value currency displayValue } shipping { value currency displayValue } margin { value currency displayValue } total { value currency displayValue } } }" }' | curl 'https://graphql.api.rye.com/v1/query' \ 1 -u "<YOUR RYE API KEY>:" \ -H 'content-type: application/json' \ --data @- Text Response { "data": { "amazonOffer": { "subtotal": { "value": 2699, "currency": "USD", "displayValue": "$26.99" }, "taxes": { "value": 231, "currency": "USD", "displayValue": "$2.31" }, "shipping": { "value": 399, "currency": "USD", "displayValue": "$3.99" }, "margin": { "value": 0, "currency": "USD", "displayValue": "$0.00" }, "total": { "value": 3329, "currency": "USD", "displayValue": "$33.29" } } } } — title: “order” slug: “order-1” excerpt: “The order query in the schema is designed to fetch information about an order.” hidden: true createdAt: “2023-03-19T18:48:06.639Z” updatedAt: “2023-03-19T19:58:26.389Z” — ## Arguments input : OrderInput! A non-null object containing the required information to query an order. Returns OrderResponse.* : OrderResponse Any requested field from the OrderResponse object. Examples query DemoOrderStates { order( input : { paymentIntentID: "34d66d4c-dc71-4145-a1ed-bfd7b2d0444f"} ) { id states { id state } } } echo ' { "variables": { "input": { "orderID": "34d66d4c-dc71-4145-a1ed-bfd7b2d0444f" } 2 }, "query": "query DemoOrderState($input: OrderInput!) { order(input: $input) { id states { id state } } }" }' | curl 'https://graphql.api.rye.com/v1/query' \ -u "<YOUR RYE API KEY>:" \ -H 'content-type: application/json' \ --data @- Text Response { "data": { "order": { "id": "34d66d4c-dc71-4145-a1ed-bfd7b2d0444f "states": [] } } } — title: “shopifyOffer” slug: “shopifyoffer” ex- cerpt: “Get the subtotal, taxes and shipping costs for a Shopify item. Useful information for a checkout page. A location is required to estimate taxes for the user. The location provided can be a estimate location. Taxes may change when the user provides a shipping address.” hidden: true createdAt: “2023-03-19T18:47:34.522Z” updatedAt: “2023-03-19T19:57:28.955Z” — ## Arguments input : ShopifyOfferInput! A non-null input object containing the required information to fetch the Shopify product offer. Returns OfferResponse.* : OfferResponse! Any requested field from the OfferResponse object. Examples graphql GraphQL query ShopifyOffer { shopifyOffer( input: { variantID: "39949073055831" location: { city: "Beverly Hills", stateCode: "CA", countryCode: "US" } } ) { subtotal { value currency displayValue } taxes { value currency displayValue } shipping { value currency displayValue } margin { value currency displayValue } total { value currency displayValue } } } 3 Text cURL echo ' { "variables": { "input": { "variantID": "39949073055831", "location": { "city": "Beverly Hills", "stateCode": "CA", "countryCode": "US" } } }, "query": "query ShopifyOffer($input: ShopifyOfferInput!) { shopifyOffer(input: $input) { subtotal { value currency displayValue } taxes { value currency displayValue } shipping { value currency displayValue } margin { value currency displayValue } total { value currency displayValue } } }" }' | curl 'https://graphql.api.rye.com/v1/q \ -u "<YOUR RYE API KEY>:" \ -H 'content-type: application/json' \ --data @- Text Response { "data": { "shopifyOffer": { "subtotal": { "value": 1023, "currency": "USD", "displayValue": "$10.23" }, "taxes": { "value": 0, "currency": "USD", "displayValue": "$0.00" }, "shipping": { "value": 0, "currency": "USD", "displayValue": "$0.00" }, "margin": { "value": 0, "currency": "USD", "displayValue": "$0.00" }, "total": { "value": 1023, "currency": "USD", "displayValue": "$10.23" } } } } — title: “Input” slug: “input-2” hid- den: true createdAt: “2023-03-18T21:25:56.964Z” updatedAt: “2023-03- 18T21:25:56.964Z” — — title: “Queries” slug: “queries-3” hidden: true create- dAt: “2023-03-19T18:46:04.171Z” updatedAt: “2023-03-19T18:46:04.171Z” — — title: “AmazonOfferInput” slug: “amazonofferinput” excerpt: “ AmazonOfferInput is an input object type representing an Amazon of- fer.” hidden: true createdAt: “2023-03-18T20:54:56.314Z” updatedAt: “2023-03-19T18:54:08.687Z” — # Fields productID : String! Amazon product ID (ASIN). location : LocationInput! LocationInput object representing the user’s location. ***— title: “ShopifyOfferInput” slug: “shopifyofferinput” excerpt: “ ShopifyOfferInput is an input object type representing the information required to fetch a Shopify offer.” hidden: true createdAt: “2023-03-18T21:20:14.528Z” updatedAt: “2023-03-19T18:54:26.883Z” — # Fields variantID : ID! 4 Shopify product variant ID. location : LocationInput! LocationInput object representing the user’s location. ***— title: “CreateShopifyPaymentIntentInput” slug: “createshopifypay- mentintentinput” excerpt: “ CreateShopifyPaymentIntentInput is an input object type representing the information required to create a Shopify payment intent” hidden: true createdAt: “2023-03-18T20:58:32.015Z” updatedAt: “2023-03-18T20:58:32.015Z” — # Fields variantID : String! Shopify product variant ID. address : AddressInput! AddressInput object representing the shipping address. promoCode : String Promo code to apply to the order (optional). ***— title: “CreateAmazonPaymentIntentInput” slug: “createamazonpay- mentintentinput” excerpt: “ CreateAmazonPaymentIntentInput is an input object type representing the information required to create an Amazon pay- ment intent.” hidden: true createdAt: “2023-03-18T20:58:00.422Z” updatedAt: “2023-03-18T20:58:00.422Z” — # Fields productID : String! Amazon product ID (ASIN). address : AddressInput! AddressInput object representing the shipping address. promoCode : String Promo code to apply to the order (optional). ***— title: “OrderInput” slug: “orderinput” excerpt: “ OrderInput is an input object type representing the information required to create an order.” 5 hidden: true createdAt: “2023-03-18T21:02:00.348Z” updatedAt: “2023-03- 18T21:02:00.348Z” — # Fields paymentIntentID : ID! ID of the payment intent ***— title: “LocationInput” slug: “locationinput” excerpt: “ LocationInput is an input object type representing the user’s location. Used to estimate taxes and shipping costs. Can usually be extracted from the user’s browser, or ip ad- dress.” hidden: true createdAt: “2023-03-18T20:59:20.953Z” updatedAt: “2023- 03-18T20:59:42.543Z” — # Fields city : String Name of the city, district, village, or town. stateCode : String 2-letter state code. countryCode : String 2-letter country code. zip : String 5-digit zip code. ***— title: “Objects” slug: “objects-2” hidden: true createdAt: “2023- 03-19T18:46:18.476Z” updatedAt: “2023-03-19T18:46:18.476Z” — — title: “OrderState” slug: “orderstate” excerpt: “Represents the state of the order.” hidden: true createdAt: “2023-03-19T19:06:45.063Z” updatedAt: “2023-03- 19T19:17:48.549Z” — ## Fields id : ID! A non-null ID representing the unique identifier of the order state. createdAt : Time! A non-null timestamp indicating when the order state was created. 6 state : OrderStateEnum! A non-null enumeration value representing the current state of the order. ***— title: “OrderResponse” slug: “orderresponse” excerpt: “ OrderResponse containing the details of the fetched order.” hidden: true createdAt: “2023-03- 19T19:05:33.628Z” updatedAt: “2023-03-19T19:07:19.043Z” — ## Fields id : ID! A non-null ID representing the unique identifier of the order. states : [OrderState!]! A non-null list of OrderState objects representing the different states of the order. ***— title: “OfferResponse” slug: “offerresponse” excerpt: “ OfferResponse is an object type returned by the shopifyOffer and amazonOffer queries.” hidden: true createdAt: “2023-03-19T18:54:52.161Z” updatedAt: “2023-03- 19T18:58:21.882Z” — ## Fields subtotal : Price! A non-null Price object representing the product’s subtotal. taxes : Price! A non-null Price object representing the total taxes for the product. shipping : Price! A non-null Price object representing the total shipping cost of the product. margin : Price! A non-null Price object representing the product’s margin (the difference be- tween the selling price and the cost of the product). total : Price! A non-null Price object representing the total cost of the product, which is the sum of the subtotal, taxes, and shipping costs. 7 isAvailable : Boolean! A non-null boolean value indicating whether the product is available for pur- chase. ***— title: “CartLine” slug: “cartline” hidden: false createdAt: “2023-03- 19T20:27:58.273Z” updatedAt: “2023-03-20T05:46:02.217Z” — CartLine is a union type that represents a store’s cart line items. A cart’s line items is a collection of items that have been added to a cart. A line item can have one or more of the same items in it. Possible types AmazonCartLine ShopifyCartLine ***— title: “ProductConnection” slug: “productconnection” hidden: false cre- atedAt: “2023-03-19T20:28:45.970Z” updatedAt: “2023-03-19T20:28:45.970Z” — ## Possible types AmazonProduct ShopifyVariant ***— title: “Store” slug: “store” hidden: false createdAt: “2023-03- 16T20:09:09.807Z” updatedAt: “2023-03-19T20:26:30.472Z” — Store is a union type that represents a store from which items can be added to the cart. The purpose of the Store object is to hold the store-specific details and the items added to the cart from that store. Possible types AmazonStore ShopifyStore ***— title: “Unions” slug: “unions” hidden: false createdAt: “2023-03- 19T17:45:44.287Z” updatedAt: “2023-03-19T17:45:44.287Z” — — title: “URL” slug: “url” hidden: false createdAt: “2023-03-19T19:13:19.679Z” updatedAt: 8 “2023-03-19T19:23:05.022Z” — A valid URL with a scheme of http, https.— title: “Time” slug: “time” hidden: false createdAt: “2023-03-19T19:12:50.276Z” updatedAt: “2023-03-19T19:23:00.860Z” — A date with time that follows the RFC3339Nano spec. Example: ‘2022-09-18T23:12:23-06:00’— title: “Market- place” slug: “marketplace” excerpt: “An enumeration value representing online marketplaces / retailers.” hidden: false createdAt: “2023-03-19T19:15:36.895Z” updatedAt: “2023-03-19T19:15:36.895Z” — ## Valid values AMAZON SHOPIFY ***— title: “Country” slug: “country” excerpt: “An enumeration value representing the ISO country code.” hidden: false createdAt: “2023-03- 19T20:17:48.207Z” updatedAt: “2023-03-19T20:17:48.207Z” — ## Valid Values AD • Andorra AE • United Arab Emirates AF • Afghanistan AG • Antigua and Barbuda AI • Anguilla AL • Albania AM • Armenia AO • Angola AQ • Antarctica 9 AR • Argentina AS • American Samoa AT • Austria AU • Australia AW • Aruba AX • Åland Islands AZ • Azerbaijan BA • Bosnia and Herzegovina BB • Barbados BD • Bangladesh BE • Belgium BF • Burkina Faso BG • Bulgaria BH • Bahrain BI • Burundi BJ 10 • Benin BL • Saint Barthélemy BM • Bermuda BN • Brunei Darussalam BO • Bolivia (Plurinational State of) BQ • Bonaire, Sint Eustatius and Saba BR • Brazil BS • Bahamas BT • Bhutan BV • Bouvet Island BW • Botswana BY • Belarus BZ • Belize CA • Canada CC • Cocos (Keeling) Islands CD • Congo, Democratic Republic of the 11 CF • Central African Republic CG • Congo CH • Switzerland CI • Côte d’Ivoire CK • Cook Islands CL • Chile CM • Cameroon CN • China CO • Colombia CR • Costa Rica CU • Cuba CV • Cabo Verde CW • Curaçao CX • Christmas Island CY • Cyprus CZ 12 • Czechia DE • Germany DJ • Djibouti DK • Denmark DM • Dominica DO • Dominican Republic DZ • Algeria EC • Ecuador EE • Estonia EG • Egypt EH • Western Sahara ER • Eritrea ES • Spain ET • Ethiopia FI • Finland FJ • Fiji 13 FK • Falkland Islands (Malvinas) FM • Micronesia (Federated States of) FO • Faroe Islands FR • France GA • Gabon GB • United Kingdom of Great Britain and Northern Ireland GD • Grenada GE • Georgia GF • French Guiana GG • Guernsey GH • Ghana GI • Gibraltar GL • Greenland GM • Gambia GN • Guinea GP 14 • Guadeloupe GQ • Equatorial Guinea GR • Greece GS • South Georgia and the South Sandwich Islands GT • Guatemala GU • Guam GW • Guinea-Bissau GY • Guyana HK • Hong Kong HM • Heard Island and McDonald Islands HN • Honduras HR • Croatia HT • Haiti HU • Hungary ID • Indonesia IE • Ireland 15 IL • Israel IM • Isle of Man IN • India IO • British Indian Ocean Territory IQ • Iraq IR • Iran (Islamic Republic of) IS • Iceland IT • Italy JE • Jersey JM • Jamaica JO • Jordan JP • Japan KE • Kenya KG • Kyrgyzstan KH • Cambodia KI 16 • Kiribati KM • Comoros KN • Saint Kitts and Nevis KP • Korea (Democratic People’s Republic of) KR • Korea, Republic of KW • Kuwait KY • Cayman Islands KZ • Kazakhstan LA • Lao People’s Democratic Republic LB • Lebanon LC • Saint Lucia LI • Liechtenstein LK • Sri Lanka LR • Liberia LS • Lesotho LT • Lithuania 17 LU • Luxembourg LV • Latvia LY • Libya MA • Morocco MC • Monaco MD • Moldova, Republic of ME • Montenegro MF • Saint Martin (French part) MG • Madagascar MH • Marshall Islands MK • North Macedonia ML • Mali MM • Myanmar MN • Mongolia MO • Macao MP 18 • Northern Mariana Islands MQ • Martinique MR • Mauritania MS • Montserrat MT • Malta MU • Mauritius MV • Maldives MW • Malawi MX • Mexico MY • Malaysia MZ • Mozambique NA • Namibia NC • New Caledonia NE • Niger NF • Norfolk Island NG • Nigeria 19 NI • Nicaragua NL • Netherlands NO • Norway NP • Nepal NR • Nauru NU • Niue NZ • New Zealand OM • Oman PA • Panama PE • Peru PF • French Polynesia PG • Papua New Guinea PH • Philippines PK • Pakistan PL • Poland PM 20