> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.recurrente.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.recurrente.com/_mcp/server.

# Quote shared Shopify shipping options

POST https://app.recurrente.com/api/shopify_shipping
Content-Type: application/json

Read-only quote using the current account catalogue, destination, merchandise subtotal and currency. Shopify's server supplies verified cart prices. Delivery options are ordered by the merchant; the integration uses the first available delivery option. Provide region when the destination declares requires_region. No checkout or payment is created.

Reference: https://docs.recurrente.com/referencia-api/api-reference/quote-shopify-shipping

## Authentication

- `X-SECRET-KEY` header (required) — Tu clave secreta de API. Una llave de cuenta (`sk_live_...`, `sk_test_...`) opera sobre su propia cuenta y, con `X-ACCOUNT-ID`, sobre sus cuentas conectadas. La llave también fija el ambiente: una `sk_test_` solo lista y resuelve objetos de prueba (`live_mode: false`) y una `sk_live_` solo objetos reales. Un ID del otro ambiente responde `404` (`401` en `/customers`). Una llave de organización (`sk_org_live_...`, `sk_org_test_...`) alcanza todas las cuentas de una organización y solo sirve para leer: saldos, movimientos y reportes. Para operar sobre una cuenta debe nombrarla con `X-ACCOUNT-ID`; omitirlo en una lectura devuelve todas las cuentas de la organización. Cualquier otro endpoint responde `403` con `code: organization_key_unsupported`.

## Request

### Body (application/json)

This endpoint expects an object.

- `country` (string, required)
- `currency` (enum, required)
  - Allowed values: `GTQ`, `USD`
- `subtotal_in_cents` (integer, required)
- `region` (string, optional) — ISO subdivision code (with optional country prefix) or a recognized country-specific name; case, accents, spacing and punctuation are ignored

## Response

### 200

Available options after destination and free-shipping rules

- `options` (list of ShopifyShippingOption, optional)

## Errors

### 400 Bad Request Error

Invalid currency or subtotal

- `any`

## Types

### ShopifyShippingOption

- `id` (string, optional)
- `name` (string, optional)
- `kind` (enum, optional)
  - Allowed values: `delivery`, `pickup`
- `amount_in_cents` (integer, optional)
- `currency` (string, optional)
- `free_from_amount_in_cents` (integer, optional, nullable)
- `minimum_business_days` (integer, optional, nullable)
- `maximum_business_days` (integer, optional, nullable)
- `delivery_on` (date, optional, nullable)

## Examples

**Request**

```json
{
  "country": "string",
  "currency": "GTQ",
  "subtotal_in_cents": 1
}
```

**Response**

```json
{
  "options": [
    {
      "id": "string",
      "name": "string",
      "kind": "delivery",
      "amount_in_cents": 1,
      "currency": "string",
      "free_from_amount_in_cents": 1,
      "minimum_business_days": 1,
      "maximum_business_days": 1,
      "delivery_on": "2023-01-15"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://app.recurrente.com/api/shopify_shipping"

payload = {
    "country": "string",
    "currency": "GTQ",
    "subtotal_in_cents": 1
}
headers = {
    "X-SECRET-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.recurrente.com/api/shopify_shipping';
const options = {
  method: 'POST',
  headers: {'X-SECRET-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"country":"string","currency":"GTQ","subtotal_in_cents":1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.recurrente.com/api/shopify_shipping"

	payload := strings.NewReader("{\n  \"country\": \"string\",\n  \"currency\": \"GTQ\",\n  \"subtotal_in_cents\": 1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-SECRET-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.recurrente.com/api/shopify_shipping")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-SECRET-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"country\": \"string\",\n  \"currency\": \"GTQ\",\n  \"subtotal_in_cents\": 1\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.recurrente.com/api/shopify_shipping")
  .header("X-SECRET-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"country\": \"string\",\n  \"currency\": \"GTQ\",\n  \"subtotal_in_cents\": 1\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.recurrente.com/api/shopify_shipping', [
  'body' => '{
  "country": "string",
  "currency": "GTQ",
  "subtotal_in_cents": 1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-SECRET-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.recurrente.com/api/shopify_shipping");
var request = new RestRequest(Method.POST);
request.AddHeader("X-SECRET-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"country\": \"string\",\n  \"currency\": \"GTQ\",\n  \"subtotal_in_cents\": 1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-SECRET-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "country": "string",
  "currency": "GTQ",
  "subtotal_in_cents": 1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.recurrente.com/api/shopify_shipping")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```