Skip to main content
PATCH

Authorizations

Authorization
string
header
required

API Key Authentication

Use your API key in the Authorization header:

Key Types:

Secret Keys (Server-Side Only):

  • Format: tybrite_sk_live_* (production) or tybrite_sk_test_* (sandbox)
  • Full read/write access to all endpoints
  • ⚠️ NEVER expose in client-side code or public repositories
  • Required for: every write a shopper does not make for themselves, authentication, payment verification, AI recommendations

Publishable Keys (Client-Safe):

  • Format: tybrite_pk_live_* (production) or tybrite_pk_test_* (sandbox)
  • Catalogue reads, plus the actions a shopper takes for themselves
  • βœ… Safe for client-side JavaScript, mobile apps, and public code
  • Allowed for: browsing products, search, CMS content, pricing queries, cart and wishlist, reviews, storefront events, and the Agent API's quotes, cart drafts and checkout intents

Endpoint-Specific Requirements:

  • Authentication endpoints (/v1/auth/*): state-changing POST calls require a secret key, for store and marketplace keys alike; GET /v1/auth/me accepts either key
  • Payment verification (POST /v1/payments/verify): Secret key required
  • AI Recommendations (POST /v1/recommendations): Secret key required
  • Semantic Search (POST /v1/search): Both key types allowed (read-only operation)
  • Shopper actions (cart, wishlist, reviews, storefront events, Agent API quotes, cart drafts and checkout intents): Both key types allowed
  • All other write operations: Secret key required
  • All read operations: Both key types allowed

Using a publishable key for restricted operations returns 403 Forbidden.

Limited publishable keys: A publishable key can be limited to the products that carry one tag (for example starter:jewellery), created from the store's Developers page. The limit applies to the key, never to the shopper: shopper sign-up and sign-in stay store-wide.

  • Reads return only the slice: products (with their facets, filters, search, brands and specifications), categories and subcategories that hold in-slice products, collections, promotions, posts and lookbooks that carry the tag, reviews of in-slice products, prices, discovery lists and the store information summary, with every count computed on the slice. A product outside the slice answers 404, as if it did not exist.
  • A write that names a product or variant outside the slice (adding to the cart or wishlist, reserving stock, an order line, a review, a promotion calculation, a storefront event) answers 403 with the error code out_of_scope, and nothing is written or reserved. An order is refused as a whole.
  • A route that carries no slice behaviour is not available to the key: it answers 403 with endpoint_not_allowed.
  • Orders placed through such a key record the tag on the order's attribution as key_scope.
  • Secret keys and connected-app keys cannot be limited.
  • Responses are cached per key limit: a limited key never receives a response cached for the whole store, and the reverse.

Headers

Idempotency-Key
string
required

Unique key to prevent duplicate updates (e.g., update-{operation}-{order_id}-{timestamp})

X-Timestamp
integer
required

Unix time in seconds or milliseconds, within 5 minutes of server time. Used to prevent replay attacks.

X-Signature
string
required

HMAC-SHA256 signature of the payload (timestamp + "." + request_body), base64-encoded. Sign using your HMAC secret from the Integrations page (Developer section).

Path Parameters

id
string<uuid>
required

Order UUID

Body

application/json
payment_status
enum<string>

Payment status. See the allowed transitions above.

Available options:
pending,
paid,
failed
Example:

"paid"

order_status
enum<string>

Order fulfillment status. See the allowed transitions above.

Available options:
pending,
confirmed,
processing,
shipped,
delivered,
cancelled
Example:

"processing"

notes
string

Additional order notes

Example:

"Customer requested gift wrapping"

tracking_number
string

Shipping tracking number

Example:

"1Z999AA10123456784"

estimated_delivery
string<date-time>

Estimated delivery date and time

Example:

"2026-02-15T14:00:00Z"

shipped_at
string<date-time>

Timestamp when order was shipped

Example:

"2026-02-10T10:30:00Z"

delivered_at
string<date-time>

Timestamp when order was delivered

Example:

"2026-02-15T14:30:00Z"

payment_reference
string

The reference your payment provider issued for this payment. Send it when marking an order paid that was charged outside Galactic Core, so the payment can be traced back to the provider's own record. When the store has added its own payment method, the reference is checked with that provider before the order is accepted as paid.

Example:

"ch_3PqR2sK7xYzAbCdE1fGhIjKl"

reservation_ids
string[]

Stock reservation ids returned by POST /v1/checkout/reserve. Supplying them commits the stock already held for this shopper rather than decrementing it a second time.

Example:
shipping_metadata
object

Fulfilment details to add to the order, such as the carrier, service and tracking number. The keys sent are merged into the stored shipping_metadata; keys not sent are kept. The details of a label purchased through the platform (shippo, label, label_url, transaction_id, rate_id) cannot be set here and answer 409 shipping_label_locked.

Example:

Response

Order updated successfully

id
string<uuid>
order_number
string
Example:

"ORD-2026-001234"

customer_id
string<uuid>
customer_email
string<email>
customer_phone
string
customer_name
string
order_status
enum<string>
Available options:
pending,
confirmed,
processing,
shipped,
delivered,
cancelled
Example:

"pending"

payment_status
enum<string>
Available options:
pending,
paid,
failed,
refunded
Example:

"pending"

payment_method
string

Method used for payment: a built-in method (card, stripe, paypal, paystack, mpesa, mpesa_c2b, cash, bank_transfer, free) or the identifier of one of the store's own payment providers.

Example:

"stripe"

payment_reference
string
subtotal
number<float>
Example:

1999.98

tax_amount
number<float>
Example:

159.99

tax_breakdown
object[] | null

Per-jurisdiction tax detail when tax was calculated automatically for the shipping destination (one entry per taxing jurisdiction). Null when a flat store rate was used.

tax_source
enum<string> | null

How the tax figure was produced β€” automatic (jurisdiction-accurate calculation for the destination), fallback (automatic calculation was unavailable, so the store's configured rate was used), or manual (the store's configured rate).

Available options:
automatic,
fallback,
manual,
null
Example:

"automatic"

shipping_amount
number<float>
Example:

15

discount_amount
number<float>
Example:

0

total_amount
number<float>
Example:

2174.97

billing_address
object
shipping_address
object | null

Where the order goes. null on an order with fulfillment_method none, where nothing is shipped.

fulfillment_method
enum<string>

Whether the order is delivered to the shopper, collected at one of the store's locations, or has nothing to ship (none: downloads, codes, event tickets and services only).

Available options:
delivery,
pickup,
none
Example:

"delivery"

order_type
enum<string>

b2b for a wholesale order placed by a buyer account, retail for every other order. The order.created, order.paid, order.fulfilled, order.cancelled, order.updated and order.refunded events carry the same field.

Available options:
retail,
b2b
Example:

"retail"

pickup_location_id
string<uuid> | null

The location the shopper collects from, on a pickup order. Null on a delivery order.

Example:

null

fulfillment_location_id
string<uuid> | null

The store location the order is fulfilled from: the pickup location on a pickup order, or the location deliveries leave from when the store delivers from its nearest location. Null when the store does not route orders between locations.

Example:

"7b2e9c41-0d3f-4a58-b6e1-2f4a6c8e0b13"

shipping_option_id
string | null

The shipping option the order was placed with, as returned by POST /v1/shipping/calculate (place, opt:<id> or pickup:<location id>). Null when none was named.

Example:

"place"

items
object[]
status_notes
object[]

Customer-visible updates the merchant added as the order moved β€” the work between payment and dispatch (preparation, checks, packing) that a shopper otherwise hears nothing about. Oldest first, so it reads as a timeline. Internal notes are never included.

custom_fields
object[]

The merchant's own fields on this order, with their values β€” a buyer's purchase-order number, a cost centre, whatever the merchant defined. Only fields the merchant published appear here; one holding an internal note or a cost stays in the admin. Empty when the merchant has defined none.

The merchant controls the names and how many exist, so render the array rather than reading fixed keys: field_label is the heading to show, and field_type gives the shape of value.

notes
string
tracking_number
string
estimated_delivery
string<date-time>
shipped_at
string<date-time>
delivered_at
string<date-time>
created_at
string<date-time>
updated_at
string<date-time>
environment
enum<string>

Whether this order was created in the live or test environment. Sandbox orders are isolated from production data.

Available options:
production,
sandbox
Example:

"production"

shipping_metadata
object | null

How the shipping charge was arrived at. shipping_source and shipping_rule are recorded by the server when the order is created; the other fields are the details the storefront sent with the order.

post_processing_warnings
object[]

Present only when the update marked the order paid and one or more of the steps that follow (stock, gift card, store credit, promotion usage) did not complete. The order stays paid; each warning names the step and what needs follow-up.