Explore everything

DEVELOPER DOCUMENTATION

Commerce API reference

Inspect real routes from the supplied API contract. Filter by resource or method, expand the details and download the source-derived reference.

Read-only contract explorer

This reference is generated from the supplied source snapshot (v0.1.0). It does not send requests. Some operations do not define a complete request or response schema. Obtain the matching deployed contract and access requirements before implementing.

Download reference JSON ↓

POST/v1/payments/authorizeAuthorize payment

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 201 Authorized
POST/v1/payments/captureCapture payment

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Captured
POST/v1/payments/refundRefund payment

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Refunded
GET/v1/payments/transactions/{orderId}List transactions for order

Parameters

NameInTypeRequirement
orderIdpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Transactions
GET/v1/admin/returnsGET /admin/returns

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/admin/returns/{id}GET /admin/returns/{id}

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/returns/{id}/approvePOST /admin/returns/{id}/approve

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/returns/{id}/mark-receivedPOST /admin/returns/{id}/mark-received

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/returns/{id}/restockPOST /admin/returns/{id}/restock

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/returns/{id}/rejectPOST /admin/returns/{id}/reject

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/b2b/companiesPOST /b2b/companies

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/b2b/companiesGET /b2b/companies

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/quotesPOST /quotes

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/quotesGET /quotes

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/pricing/price-listsList price lists

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Price lists
POST/v1/pricing/price-listsCreate price list

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 201 Created
POST/v1/pos/sales/from-quotePOST /pos/sales/from-quote

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/settlementsGET /settlements

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/settlements/orders/{orderId}/settlePOST /settlements/orders/{orderId}/settle

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/admin/financial/settlements/statusGET /admin/financial/settlements/status

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/orders/{id}/refundPOST /admin/orders/{id}/refund

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/admin/returns/{id}/refundPOST /admin/returns/{id}/refund

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/admin/analytics/commerce/refundsGET /admin/analytics/commerce/refunds

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/productsCreate product

No parameters specified in this source operation.

Request schema

{
  "type": "object",
  "required": [
    "type",
    "slug",
    "displayName",
    "defaultLocale",
    "defaultCurrency"
  ],
  "properties": {
    "type": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "defaultLocale": {
      "type": "string"
    },
    "defaultCurrency": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "brandId": {
      "type": "string"
    },
    "defaultCategoryId": {
      "type": "string"
    }
  }
}

Responses in the contract

  • 201 Created
GET/v1/productsList products

Parameters

NameInTypeRequirement
filter[status]querystringOptional
filter[type]querystringOptional
filter[brand_id]querystringOptional
filter[search]querystringOptional
sortquerystringOptional
includequerystringOptional
metrics_window_daysqueryintegerOptional
page[size]queryintegerOptional
page[after]querystringOptional

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Product list
GET/v1/products/{id}Get product

Parameters

NameInTypeRequirement
idpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Product
  • 404 Not found
PATCH/v1/products/{id}Update product

Parameters

NameInTypeRequirement
idpathstringRequired
If-MatchheaderintegerRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Updated
DELETE/v1/products/{id}Delete product (soft)

Parameters

NameInTypeRequirement
idpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 204 Deleted
POST/v1/customersCreate customer

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 201 Created
GET/v1/customersList customers

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Customers
POST/v1/ordersPlace order from cart

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 201 Order placed
GET/v1/ordersList orders

Parameters

NameInTypeRequirement
statusquerystringOptional
customer_idquerystringOptional

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Orders
GET/v1/orders/{id}Get order with items

Parameters

NameInTypeRequirement
idpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Order
GET/v1/inventory/locationsList locations

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Locations
POST/v1/inventory/locationsCreate location

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 201 Created
GET/v1/inventory/locations/{id}GET /inventory/locations/{id}

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
PATCH/v1/inventory/locations/{id}PATCH /inventory/locations/{id}

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
GET/v1/inventory/stock/{variantId}Get stock level

Parameters

NameInTypeRequirement
variantIdpathstringRequired
location_idquerystringOptional

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Stock level
GET/v1/inventory/availability/{variantId}Check availability

Parameters

NameInTypeRequirement
variantIdpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Availability
GET/v1/inventory/movementsGET /inventory/movements

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/inventory/receivePOST /inventory/receive

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/inventory/adjustAdjust stock

No parameters specified in this source operation.

Request schema

{
  "type": "object",
  "required": [
    "variantId",
    "locationId",
    "quantity"
  ],
  "properties": {
    "variantId": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "quantity": {
      "type": "integer"
    },
    "reason": {
      "type": "string"
    }
  }
}

Responses in the contract

  • 200 Adjusted
POST/v1/inventory/transferPOST /inventory/transfer

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Documented response (schema TBD)
  • 4XX Standard error envelope - see components.schemas.Error
  • 5XX Standard error envelope - see components.schemas.Error
POST/v1/webhooksRegister webhook endpoint

No parameters specified in this source operation.

Request schema

{
  "type": "object",
  "required": [
    "url",
    "eventTypes"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "eventTypes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "secret": {
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  }
}

Responses in the contract

  • 201 Registered
GET/v1/webhooksList webhook endpoints

No parameters specified in this source operation.

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Endpoints
GET/v1/webhooks/{id}/deliveriesList webhook deliveries

Parameters

NameInTypeRequirement
idpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Deliveries
POST/v1/webhooks/{id}/testSend test webhook

Parameters

NameInTypeRequirement
idpathstringRequired

Request body schema not specified in this source operation.

Responses in the contract

  • 200 Test sent

Explore Agora

Press Esc to close · Every result opens a dedicated page.

The Agora story

Founder recording with animated product sequences. View the pitch summary and further walkthroughs ↗

Supplied Agora workspace