# Orders

> For AI agents: the index of these docs is at https://shippified.net/docs/llms.txt (every page it lists has a Markdown version like this one).

## List orders with filtering + pagination.

**`GET https://shippified.net/api/orders`** — List orders with filtering + pagination.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no |  |
| `offset` | query | integer | no |  |
| `status` | query | string | no |  |
| `store` | query | string | no |  |
| `source` | query | string | no |  |
| `carrier` | query | string | no |  |
| `hasTracking` | query | boolean | no |  |
| `from` | query | string | no |  |
| `to` | query | string | no |  |
| `q` | query | string | no |  |

### Responses

**200** — OK

```json
{}
```

### Code samples

**cURL**

```curl
curl -X GET "https://shippified.net/api/orders"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders', {
  method: 'GET',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "GET",
    "https://shippified.net/api/orders",
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "https://shippified.net/api/orders", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders"))
    .GET()
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Manually create an order. Auto-tracks when trackingNumber + supported carrier (UPS/FedEx/DHL/DHL Express); otherwise updates are manual.

**`POST https://shippified.net/api/orders`** — Manually create an order. Auto-tracks when trackingNumber + supported carrier (UPS/FedEx/DHL/DHL Express); otherwise updates are manual.

### Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `itemSummary` | string | yes |  |
| `store` | string | no |  |
| `storeLabel` | string | no |  |
| `orderNumber` | string | no |  |
| `trackingNumber` | string | no |  |
| `carrier` | string | no |  |
| `total` | string | no |  |
| `costCents` | integer | no |  |
| `salePriceCents` | integer | no |  |
| `quantity` | integer | no |  |
| `productUrl` | string | no |  |
| `imageUrl` | string | no |  |
| `sku` | string | no |  |
| `size` | string | no |  |
| `receivedAt` | string | no |  |
| `emailSourceId` | string | no |  |

```json
{
  "itemSummary": "string",
  "store": "target",
  "storeLabel": "string",
  "orderNumber": "string",
  "trackingNumber": "string",
  "carrier": "string",
  "total": "string",
  "costCents": 0,
  "salePriceCents": 0,
  "quantity": 0,
  "productUrl": "string",
  "imageUrl": "string",
  "sku": "string",
  "size": "string",
  "receivedAt": "2024-01-01T00:00:00Z",
  "emailSourceId": "string"
}
```

### Responses

**201** — Created (or merged into an existing order with the same orderNumber).

```json
{
  "order": {
    "id": "ord_mpvu9uim_aeh5t",
    "userId": "string",
    "source": "discord",
    "storeLabel": "string",
    "store": "string",
    "itemSummary": "string",
    "orderNumber": "string",
    "total": "string",
    "salePriceCents": 0,
    "costCents": 0,
    "trackingNumber": "string",
    "carrier": "string",
    "shippingAddress": {
      "name": "string",
      "line1": "string",
      "line2": "string",
      "city": "string",
      "region": "string",
      "postalCode": "string",
      "country": "string"
    },
    "status": "ordered",
    "estimatedDelivery": "string",
    "actualDelivery": "string",
    "receivedAt": "2024-01-01T00:00:00Z",
    "createdAt": "2024-01-01T00:00:00Z"
  },
  "merged": true
}
```

**400** — Missing itemSummary.

### Code samples

**cURL**

```curl
curl -X POST "https://shippified.net/api/orders" \
  -H "Content-Type: application/json" \
  -d '{"itemSummary":"string","store":"target","storeLabel":"string","orderNumber":"string","trackingNumber":"string","carrier":"string","total":"string","costCents":0,"salePriceCents":0,"quantity":0,"productUrl":"string","imageUrl":"string","sku":"string","size":"string","receivedAt":"2024-01-01T00:00:00Z","emailSourceId":"string"}'
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"itemSummary":"string","store":"target","storeLabel":"string","orderNumber":"string","trackingNumber":"string","carrier":"string","total":"string","costCents":0,"salePriceCents":0,"quantity":0,"productUrl":"string","imageUrl":"string","sku":"string","size":"string","receivedAt":"2024-01-01T00:00:00Z","emailSourceId":"string"}),
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "POST",
    "https://shippified.net/api/orders",
    headers={
    "Content-Type": "application/json",
    },
    json={"itemSummary": "string", "store": "target", "storeLabel": "string", "orderNumber": "string", "trackingNumber": "string", "carrier": "string", "total": "string", "costCents": 0, "salePriceCents": 0, "quantity": 0, "productUrl": "string", "imageUrl": "string", "sku": "string", "size": "string", "receivedAt": "2024-01-01T00:00:00Z", "emailSourceId": "string"},
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("POST", "https://shippified.net/api/orders", strings.NewReader(`{"itemSummary":"string","store":"target","storeLabel":"string","orderNumber":"string","trackingNumber":"string","carrier":"string","total":"string","costCents":0,"salePriceCents":0,"quantity":0,"productUrl":"string","imageUrl":"string","sku":"string","size":"string","receivedAt":"2024-01-01T00:00:00Z","emailSourceId":"string"}`))
	req.Header.Set("Content-Type", "application/json")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"itemSummary":"string","store":"target","storeLabel":"string","orderNumber":"string","trackingNumber":"string","carrier":"string","total":"string","costCents":0,"salePriceCents":0,"quantity":0,"productUrl":"string","imageUrl":"string","sku":"string","size":"string","receivedAt":"2024-01-01T00:00:00Z","emailSourceId":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"itemSummary":"string","store":"target","storeLabel":"string","orderNumber":"string","trackingNumber":"string","carrier":"string","total":"string","costCents":0,"salePriceCents":0,"quantity":0,"productUrl":"string","imageUrl":"string","sku":"string","size":"string","receivedAt":"2024-01-01T00:00:00Z","emailSourceId":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders"))
    .header("Content-Type", "application/json")
    .method("POST", BodyPublishers.ofString("{\"itemSummary\":\"string\",\"store\":\"target\",\"storeLabel\":\"string\",\"orderNumber\":\"string\",\"trackingNumber\":\"string\",\"carrier\":\"string\",\"total\":\"string\",\"costCents\":0,\"salePriceCents\":0,\"quantity\":0,\"productUrl\":\"string\",\"imageUrl\":\"string\",\"sku\":\"string\",\"size\":\"string\",\"receivedAt\":\"2024-01-01T00:00:00Z\",\"emailSourceId\":\"string\"}"))
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Re-run parsing on every order that has stored source messages, with the current templates. User-entered values and carrier data are kept.

**`POST https://shippified.net/api/orders/reparse`** — Re-run parsing on every order that has stored source messages, with the current templates. User-entered values and carrier data are kept.

### Responses

**200** — { reparsed, changed, merged, removed, skipped }

### Code samples

**cURL**

```curl
curl -X POST "https://shippified.net/api/orders/reparse"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders/reparse', {
  method: 'POST',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "POST",
    "https://shippified.net/api/orders/reparse",
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("POST", "https://shippified.net/api/orders/reparse", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders/reparse');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders/reparse')
req = Net::HTTP::Post.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders/reparse"))
    .method("POST", BodyPublishers.noBody())
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Get one order.

**`GET https://shippified.net/api/orders/{id}`** — Get one order.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

**200** — OK

```json
{
  "id": "ord_mpvu9uim_aeh5t",
  "userId": "string",
  "source": "discord",
  "storeLabel": "string",
  "store": "string",
  "itemSummary": "string",
  "orderNumber": "string",
  "total": "string",
  "salePriceCents": 0,
  "costCents": 0,
  "trackingNumber": "string",
  "carrier": "string",
  "shippingAddress": {
    "name": "string",
    "line1": "string",
    "line2": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string"
  },
  "status": "ordered",
  "estimatedDelivery": "string",
  "actualDelivery": "string",
  "receivedAt": "2024-01-01T00:00:00Z",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X GET "https://shippified.net/api/orders/{id}"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders/{id}', {
  method: 'GET',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "GET",
    "https://shippified.net/api/orders/{id}",
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "https://shippified.net/api/orders/{id}", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders/{id}')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders/{id}"))
    .GET()
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Hard-delete an order.

**`DELETE https://shippified.net/api/orders/{id}`** — Hard-delete an order.

The order's source messages are remembered as dismissed: a mailbox rebuild or a re-delivered email won't bring it back (the Inbox logs them as `skipped`). A deleted order still counts toward the free-plan monthly quota.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

**200** — Deleted.

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X DELETE "https://shippified.net/api/orders/{id}"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders/{id}', {
  method: 'DELETE',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "DELETE",
    "https://shippified.net/api/orders/{id}",
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("DELETE", "https://shippified.net/api/orders/{id}", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders/{id}')
req = Net::HTTP::Delete.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders/{id}"))
    .method("DELETE", BodyPublishers.noBody())
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Update mutable order fields (salePriceCents, costCents, status, delivery dates, tracking).

**`PATCH https://shippified.net/api/orders/{id}`** — Update mutable order fields (salePriceCents, costCents, status, delivery dates, tracking).

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `userId` | string | yes |  |
| `source` | string | yes |  |
| `storeLabel` | string | yes |  |
| `store` | string | yes |  |
| `itemSummary` | string | yes |  |
| `orderNumber` | string | no |  |
| `total` | string | no | Free-text total as parsed (e.g. "$129.99"). |
| `salePriceCents` | integer | no |  |
| `costCents` | integer | no |  |
| `trackingNumber` | string | no |  |
| `carrier` | string | no |  |
| `shippingAddress` | object | no |  |
| `status` | string | yes |  |
| `estimatedDelivery` | string | no |  |
| `actualDelivery` | string | no |  |
| `receivedAt` | string | yes |  |
| `createdAt` | string | no | When Shippified created the order (intake, manual entry or API) — the free-plan monthly quota counts by this, not `receivedAt`. Missing on orders created before the field existed. |

```json
{
  "id": "ord_mpvu9uim_aeh5t",
  "userId": "string",
  "source": "discord",
  "storeLabel": "string",
  "store": "string",
  "itemSummary": "string",
  "orderNumber": "string",
  "total": "string",
  "salePriceCents": 0,
  "costCents": 0,
  "trackingNumber": "string",
  "carrier": "string",
  "shippingAddress": {
    "name": "string",
    "line1": "string",
    "line2": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string"
  },
  "status": "ordered",
  "estimatedDelivery": "string",
  "actualDelivery": "string",
  "receivedAt": "2024-01-01T00:00:00Z",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

### Responses

**200** — Updated order.

```json
{
  "id": "ord_mpvu9uim_aeh5t",
  "userId": "string",
  "source": "discord",
  "storeLabel": "string",
  "store": "string",
  "itemSummary": "string",
  "orderNumber": "string",
  "total": "string",
  "salePriceCents": 0,
  "costCents": 0,
  "trackingNumber": "string",
  "carrier": "string",
  "shippingAddress": {
    "name": "string",
    "line1": "string",
    "line2": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string",
    "country": "string"
  },
  "status": "ordered",
  "estimatedDelivery": "string",
  "actualDelivery": "string",
  "receivedAt": "2024-01-01T00:00:00Z",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X PATCH "https://shippified.net/api/orders/{id}" \
  -H "Content-Type: application/json" \
  -d '{"id":"ord_mpvu9uim_aeh5t","userId":"string","source":"discord","storeLabel":"string","store":"string","itemSummary":"string","orderNumber":"string","total":"string","salePriceCents":0,"costCents":0,"trackingNumber":"string","carrier":"string","shippingAddress":{"name":"string","line1":"string","line2":"string","city":"string","region":"string","postalCode":"string","country":"string"},"status":"ordered","estimatedDelivery":"string","actualDelivery":"string","receivedAt":"2024-01-01T00:00:00Z","createdAt":"2024-01-01T00:00:00Z"}'
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/orders/{id}', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"id":"ord_mpvu9uim_aeh5t","userId":"string","source":"discord","storeLabel":"string","store":"string","itemSummary":"string","orderNumber":"string","total":"string","salePriceCents":0,"costCents":0,"trackingNumber":"string","carrier":"string","shippingAddress":{"name":"string","line1":"string","line2":"string","city":"string","region":"string","postalCode":"string","country":"string"},"status":"ordered","estimatedDelivery":"string","actualDelivery":"string","receivedAt":"2024-01-01T00:00:00Z","createdAt":"2024-01-01T00:00:00Z"}),
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "PATCH",
    "https://shippified.net/api/orders/{id}",
    headers={
    "Content-Type": "application/json",
    },
    json={"id": "ord_mpvu9uim_aeh5t", "userId": "string", "source": "discord", "storeLabel": "string", "store": "string", "itemSummary": "string", "orderNumber": "string", "total": "string", "salePriceCents": 0, "costCents": 0, "trackingNumber": "string", "carrier": "string", "shippingAddress": {"name": "string", "line1": "string", "line2": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string"}, "status": "ordered", "estimatedDelivery": "string", "actualDelivery": "string", "receivedAt": "2024-01-01T00:00:00Z", "createdAt": "2024-01-01T00:00:00Z"},
)
data = res.json()
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("PATCH", "https://shippified.net/api/orders/{id}", strings.NewReader(`{"id":"ord_mpvu9uim_aeh5t","userId":"string","source":"discord","storeLabel":"string","store":"string","itemSummary":"string","orderNumber":"string","total":"string","salePriceCents":0,"costCents":0,"trackingNumber":"string","carrier":"string","shippingAddress":{"name":"string","line1":"string","line2":"string","city":"string","region":"string","postalCode":"string","country":"string"},"status":"ordered","estimatedDelivery":"string","actualDelivery":"string","receivedAt":"2024-01-01T00:00:00Z","createdAt":"2024-01-01T00:00:00Z"}`))
	req.Header.Set("Content-Type", "application/json")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/orders/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"ord_mpvu9uim_aeh5t","userId":"string","source":"discord","storeLabel":"string","store":"string","itemSummary":"string","orderNumber":"string","total":"string","salePriceCents":0,"costCents":0,"trackingNumber":"string","carrier":"string","shippingAddress":{"name":"string","line1":"string","line2":"string","city":"string","region":"string","postalCode":"string","country":"string"},"status":"ordered","estimatedDelivery":"string","actualDelivery":"string","receivedAt":"2024-01-01T00:00:00Z","createdAt":"2024-01-01T00:00:00Z"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

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

uri = URI('https://shippified.net/api/orders/{id}')
req = Net::HTTP::Patch.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"id":"ord_mpvu9uim_aeh5t","userId":"string","source":"discord","storeLabel":"string","store":"string","itemSummary":"string","orderNumber":"string","total":"string","salePriceCents":0,"costCents":0,"trackingNumber":"string","carrier":"string","shippingAddress":{"name":"string","line1":"string","line2":"string","city":"string","region":"string","postalCode":"string","country":"string"},"status":"ordered","estimatedDelivery":"string","actualDelivery":"string","receivedAt":"2024-01-01T00:00:00Z","createdAt":"2024-01-01T00:00:00Z"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/orders/{id}"))
    .header("Content-Type", "application/json")
    .method("PATCH", BodyPublishers.ofString("{\"id\":\"ord_mpvu9uim_aeh5t\",\"userId\":\"string\",\"source\":\"discord\",\"storeLabel\":\"string\",\"store\":\"string\",\"itemSummary\":\"string\",\"orderNumber\":\"string\",\"total\":\"string\",\"salePriceCents\":0,\"costCents\":0,\"trackingNumber\":\"string\",\"carrier\":\"string\",\"shippingAddress\":{\"name\":\"string\",\"line1\":\"string\",\"line2\":\"string\",\"city\":\"string\",\"region\":\"string\",\"postalCode\":\"string\",\"country\":\"string\"},\"status\":\"ordered\",\"estimatedDelivery\":\"string\",\"actualDelivery\":\"string\",\"receivedAt\":\"2024-01-01T00:00:00Z\",\"createdAt\":\"2024-01-01T00:00:00Z\"}"))
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

---

## For AI agents

- This page for a human reader: https://shippified.net/docs/ref-orders
- The whole space as one Markdown file: https://shippified.net/docs/llms-full.txt
- Live search + fetch over MCP: https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp
  - Install (Claude CLI): `claude mcp add api-docs --transport http https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp`

This Markdown is the same content the page renders — safe to quote and to ground answers in.
