docs: generate OAS with events (#12394)

* docs: generate OAS with events

* small change
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-05-07 14:57:03 +03:00
1 parent 262064fe96
commit a3bdb3e383
515 files changed
+3808 -189

No files matched your search

@@ -9,7 +9,7 @@ export const sdk = new Medusa({
}) })
sdk.admin.product.createOption( sdk.admin.product.createOption(
"prod_123", "prod_123",
{ {
title: "Color", title: "Color",
values: ["Green", "Blue"] values: ["Green", "Blue"]
@@ -9,7 +9,7 @@ export const sdk = new Medusa({
}) })
sdk.admin.product.updateOption( sdk.admin.product.updateOption(
"prod_123", "prod_123",
"prodopt_123", "prodopt_123",
{ {
title: "Color" title: "Color"
@@ -9,7 +9,7 @@ export const sdk = new Medusa({
}) })
sdk.admin.product.batchVariantInventoryItems( sdk.admin.product.batchVariantInventoryItems(
"prod_123", "prod_123",
{ {
create: [ create: [
{ {
@@ -9,7 +9,7 @@ export const sdk = new Medusa({
}) })
sdk.admin.product.updateVariant( sdk.admin.product.updateVariant(
"prod_123", "prod_123",
"variant_123", "variant_123",
{ {
title: "Blue Shirt", title: "Blue Shirt",
@@ -0,0 +1,16 @@
import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
debug: import.meta.env.DEV,
auth: {
type: "session",
},
})
sdk.admin.taxRegion.update("txreg_123", {
province_code: "ca",
})
.then(({ tax_region }) => {
console.log(tax_region)
})
@@ -10,7 +10,7 @@ curl -X POST '{backend_url}/admin/customers/{id}/addresses' \
"address_2": "{value}", "address_2": "{value}",
"city": "{value}", "city": "{value}",
"country_code": "{value}", "country_code": "{value}",
"province": "{value}", "province": "us-ca",
"postal_code": "{value}", "postal_code": "{value}",
"phone": "{value}", "phone": "{value}",
"metadata": {} "metadata": {}
@@ -13,7 +13,7 @@ curl -X POST '{backend_url}/admin/fulfillments' \
"address_2": "{value}", "address_2": "{value}",
"city": "{value}", "city": "{value}",
"country_code": "{value}", "country_code": "{value}",
"province": "{value}", "province": "us-ca",
"postal_code": "{value}", "postal_code": "{value}",
"metadata": {} "metadata": {}
}, },
@@ -3,7 +3,7 @@ curl -X POST '{backend_url}/admin/tax-regions' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
--data-raw '{ --data-raw '{
"country_code": "{value}", "country_code": "{value}",
"province_code": "{value}", "province_code": "us-ca",
"parent_id": "{value}", "parent_id": "{value}",
"metadata": {} "metadata": {}
}' }'
@@ -58,7 +58,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The delivery address's province. description: The delivery address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -12,7 +12,11 @@ properties:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The tax region's province code. description: The tax region's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
parent_id: parent_id:
type: string type: string
title: parent_id title: parent_id
@@ -73,7 +73,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -58,7 +58,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -31,7 +31,11 @@ properties:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: The geo zone's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
city: city:
type: string type: string
title: city title: city
@@ -53,7 +53,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -38,7 +38,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
required: required:
- id - id
- address_1 - address_1
@@ -27,7 +27,11 @@ properties:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The tax region's province code. description: The tax region's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
metadata: metadata:
type: object type: object
description: The tax region's metadata, can hold custom key-value pairs. description: The tax region's metadata, can hold custom key-value pairs.
@@ -47,7 +47,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The shipping address's province. description: The shipping address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -95,7 +99,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The billing address's province. description: The billing address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -47,7 +47,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -95,7 +99,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -47,7 +47,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
address_id: address_id:
type: string type: string
title: address_id title: address_id
@@ -5,7 +5,11 @@ properties:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The tax region's province code. description: The tax region's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
metadata: metadata:
type: object type: object
description: The tax region's metadata, can hold custom key-value pairs. description: The tax region's metadata, can hold custom key-value pairs.
@@ -37,4 +37,8 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
@@ -51,7 +51,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: US-CA
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -38,7 +38,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -50,7 +50,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -50,7 +50,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -73,7 +73,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -53,7 +53,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's lower-case ISO 3166-2 province code.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -44,7 +44,11 @@ properties:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
File diff suppressed because it is too large. Load diff
@@ -1337,3 +1337,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createApiKeysWorkflow x-workflow: createApiKeysWorkflow
x-events: []
@@ -134,6 +134,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateApiKeysWorkflow x-workflow: updateApiKeysWorkflow
x-events: []
delete: delete:
operationId: DeleteApiKeysId operationId: DeleteApiKeysId
summary: Delete an Api Key summary: Delete an Api Key
@@ -201,3 +202,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteApiKeysWorkflow x-workflow: deleteApiKeysWorkflow
x-events: []
@@ -71,3 +71,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: revokeApiKeysWorkflow x-workflow: revokeApiKeysWorkflow
x-events: []
@@ -87,3 +87,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: linkSalesChannelsToApiKeyWorkflow x-workflow: linkSalesChannelsToApiKeyWorkflow
x-events: []
@@ -271,3 +271,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createCampaignsWorkflow x-workflow: createCampaignsWorkflow
x-events: []
@@ -196,6 +196,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateCampaignsWorkflow x-workflow: updateCampaignsWorkflow
x-events: []
delete: delete:
operationId: DeleteCampaignsId operationId: DeleteCampaignsId
summary: Delete a Campaign summary: Delete a Campaign
@@ -264,3 +265,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteCampaignsWorkflow x-workflow: deleteCampaignsWorkflow
x-events: []
@@ -87,3 +87,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: addOrRemoveCampaignPromotionsWorkflow x-workflow: addOrRemoveCampaignPromotionsWorkflow
x-events: []
@@ -1084,3 +1084,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: beginClaimOrderWorkflow x-workflow: beginClaimOrderWorkflow
x-events: []
@@ -50,3 +50,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelOrderClaimWorkflow x-workflow: cancelOrderClaimWorkflow
x-events: []
@@ -71,3 +71,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: orderClaimItemWorkflow x-workflow: orderClaimItemWorkflow
x-events: []
@@ -83,6 +83,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateClaimItemWorkflow x-workflow: updateClaimItemWorkflow
x-events: []
delete: delete:
operationId: DeleteClaimsIdClaimItemsAction_id operationId: DeleteClaimsIdClaimItemsAction_id
summary: Remove a Claim Item from a Claim summary: Remove a Claim Item from a Claim
@@ -164,3 +165,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeItemClaimActionWorkflow x-workflow: removeItemClaimActionWorkflow
x-events: []
@@ -53,3 +53,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: orderClaimRequestItemReturnWorkflow x-workflow: orderClaimRequestItemReturnWorkflow
x-events: []
@@ -67,6 +67,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateRequestItemReturnWorkflow x-workflow: updateRequestItemReturnWorkflow
x-events: []
delete: delete:
operationId: DeleteClaimsIdInboundItemsAction_id operationId: DeleteClaimsIdInboundItemsAction_id
summary: Remove an Inbound Item from Claim summary: Remove an Inbound Item from Claim
@@ -130,3 +131,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeItemReturnActionWorkflow x-workflow: removeItemReturnActionWorkflow
x-events: []
@@ -55,3 +55,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createClaimShippingMethodWorkflow x-workflow: createClaimShippingMethodWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateReturnShippingMethodWorkflow x-workflow: updateReturnShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteClaimsIdInboundShippingMethodAction_id operationId: DeleteClaimsIdInboundShippingMethodAction_id
summary: Remove Inbound Shipping Method from Claim summary: Remove Inbound Shipping Method from Claim
@@ -147,3 +148,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeClaimShippingMethodWorkflow x-workflow: removeClaimShippingMethodWorkflow
x-events: []
@@ -71,3 +71,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: orderClaimAddNewItemWorkflow x-workflow: orderClaimAddNewItemWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateClaimAddItemWorkflow x-workflow: updateClaimAddItemWorkflow
x-events: []
delete: delete:
operationId: DeleteClaimsIdOutboundItemsAction_id operationId: DeleteClaimsIdOutboundItemsAction_id
summary: Remove an Outbound Item from Claim summary: Remove an Outbound Item from Claim
@@ -165,3 +166,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeAddItemClaimActionWorkflow x-workflow: removeAddItemClaimActionWorkflow
x-events: []
@@ -73,3 +73,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createClaimShippingMethodWorkflow x-workflow: createClaimShippingMethodWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateClaimShippingMethodWorkflow x-workflow: updateClaimShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteClaimsIdOutboundShippingMethodAction_id operationId: DeleteClaimsIdOutboundShippingMethodAction_id
summary: Remove Outbound Shipping Method from Claim summary: Remove Outbound Shipping Method from Claim
@@ -165,3 +166,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeClaimShippingMethodWorkflow x-workflow: removeClaimShippingMethodWorkflow
x-events: []
@@ -64,6 +64,17 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: confirmClaimRequestWorkflow x-workflow: confirmClaimRequestWorkflow
x-events:
- name: order.claim_created
payload: |-
```ts
{
order_id, // The ID of the order
claim_id, // The ID of the claim
}
```
description: Emitted when a claim is created for an order.
deprecated: false
delete: delete:
operationId: DeleteClaimsIdRequest operationId: DeleteClaimsIdRequest
summary: Cancel Claim Request summary: Cancel Claim Request
@@ -111,3 +122,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelBeginOrderClaimWorkflow x-workflow: cancelBeginOrderClaimWorkflow
x-events: []
@@ -1040,3 +1040,13 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createCollectionsWorkflow x-workflow: createCollectionsWorkflow
x-events:
- name: product-collection.created
payload: |-
```ts
[{
id, // The ID of the product collection
}]
```
description: Emitted when product collections are created.
deprecated: false
@@ -134,6 +134,16 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateCollectionsWorkflow x-workflow: updateCollectionsWorkflow
x-events:
- name: product-collection.updated
payload: |-
```ts
[{
id, // The ID of the product collection
}]
```
description: Emitted when product collections are updated.
deprecated: false
delete: delete:
operationId: DeleteCollectionsId operationId: DeleteCollectionsId
summary: Delete a Collection summary: Delete a Collection
@@ -181,3 +191,13 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteCollectionsWorkflow x-workflow: deleteCollectionsWorkflow
x-events:
- name: product-collection.deleted
payload: |-
```ts
[{
id, // The ID of the product collection
}]
```
description: Emitted when product collections are deleted.
deprecated: false
@@ -87,3 +87,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: batchLinkProductsToCollectionWorkflow x-workflow: batchLinkProductsToCollectionWorkflow
x-events: []
@@ -1090,3 +1090,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createCustomerGroupsWorkflow x-workflow: createCustomerGroupsWorkflow
x-events: []
@@ -134,6 +134,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateCustomerGroupsWorkflow x-workflow: updateCustomerGroupsWorkflow
x-events: []
delete: delete:
operationId: DeleteCustomerGroupsId operationId: DeleteCustomerGroupsId
summary: Delete a Customer Group summary: Delete a Customer Group
@@ -200,3 +201,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteCustomerGroupsWorkflow x-workflow: deleteCustomerGroupsWorkflow
x-events: []
@@ -86,3 +86,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: linkCustomersToCustomerGroupWorkflow x-workflow: linkCustomersToCustomerGroupWorkflow
x-events: []
@@ -4337,3 +4337,13 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createCustomersWorkflow x-workflow: createCustomersWorkflow
x-events:
- name: customer.created
payload: |-
```ts
[{
id, // The ID of the customer
}]
```
description: Emitted when a customer is created.
deprecated: false
@@ -194,6 +194,16 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateCustomersWorkflow x-workflow: updateCustomersWorkflow
x-events:
- name: customer.updated
payload: |-
```ts
[{
id, // The ID of the customer
}]
```
description: Emitted when a customer is updated.
deprecated: false
delete: delete:
operationId: DeleteCustomersId operationId: DeleteCustomersId
summary: Delete a Customer summary: Delete a Customer
@@ -259,3 +269,13 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeCustomerAccountWorkflow x-workflow: removeCustomerAccountWorkflow
x-events:
- name: customer.deleted
payload: |-
```ts
[{
id, // The ID of the customer
}]
```
description: Emitted when a customer is deleted.
deprecated: false
@@ -128,13 +128,21 @@ get:
oneOf: oneOf:
- type: string - type: string
title: province title: province
description: Filter by a province. description: Filter by an ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
- type: array - type: array
description: Filter by provinces. description: Filter by ISO 3166-2 provinces.
items: items:
type: string type: string
title: province title: province
description: A province code. description: A ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
- name: postal_code - name: postal_code
in: query in: query
required: false required: false
@@ -353,7 +361,11 @@ post:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -406,3 +418,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createCustomerAddressesWorkflow x-workflow: createCustomerAddressesWorkflow
x-events: []
@@ -197,7 +197,11 @@ post:
province: province:
type: string type: string
title: province title: province
description: The address's province. description: The address's ISO 3166-2 province code. Must be lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -252,6 +256,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateCustomerAddressesWorkflow x-workflow: updateCustomerAddressesWorkflow
x-events: []
delete: delete:
operationId: DeleteCustomersIdAddressesAddress_id operationId: DeleteCustomersIdAddressesAddress_id
summary: Remove an Address from Customer summary: Remove an Address from Customer
@@ -358,3 +363,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteCustomerAddressesWorkflow x-workflow: deleteCustomerAddressesWorkflow
x-events: []
@@ -100,3 +100,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: linkCustomerGroupsToCustomerWorkflow x-workflow: linkCustomerGroupsToCustomerWorkflow
x-events: []
@@ -1780,6 +1780,7 @@ get:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: getOrdersListWorkflow x-workflow: getOrdersListWorkflow
x-events: []
post: post:
operationId: PostDraftOrders operationId: PostDraftOrders
summary: Create Draft Order summary: Create Draft Order
@@ -1896,7 +1897,13 @@ post:
province: province:
type: string type: string
title: province title: province
description: The billing address's province. description: >-
The billing address's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -1955,7 +1962,13 @@ post:
province: province:
type: string type: string
title: province title: province
description: The shipping address's province. description: >-
The shipping address's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_code: postal_code:
type: string type: string
title: postal_code title: postal_code
@@ -2141,3 +2154,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createOrderWorkflow x-workflow: createOrderWorkflow
x-events: []
@@ -67,6 +67,7 @@ get:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: getOrderDetailWorkflow x-workflow: getOrderDetailWorkflow
x-events: []
post: post:
operationId: PostDraftOrdersId operationId: PostDraftOrdersId
summary: Update a Draft Order summary: Update a Draft Order
@@ -142,3 +143,15 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateDraftOrderWorkflow x-workflow: updateDraftOrderWorkflow
x-events:
- name: order.updated
payload: |-
```ts
{
id, // The ID of the order
}
```
description: |-
Emitted when the details of an order or draft order is updated. This
doesn't include updates made by an edit.
deprecated: false
@@ -65,3 +65,17 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: convertDraftOrderWorkflow x-workflow: convertDraftOrderWorkflow
x-events:
- name: order.placed
payload: |-
```ts
{
id, // The ID of the order
}
```
description: >-
Emitted when an order is placed, or when a draft order is converted to
an
order.
deprecated: false
@@ -46,6 +46,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: beginDraftOrderEditWorkflow x-workflow: beginDraftOrderEditWorkflow
x-events: []
delete: delete:
operationId: DeleteDraftOrdersIdEdit operationId: DeleteDraftOrdersIdEdit
summary: Cancel Edit on Draft Order summary: Cancel Edit on Draft Order
@@ -90,3 +91,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelDraftOrderEditWorkflow x-workflow: cancelDraftOrderEditWorkflow
x-events: []
@@ -45,3 +45,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: confirmDraftOrderEditWorkflow x-workflow: confirmDraftOrderEditWorkflow
x-events: []
@@ -47,3 +47,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: addDraftOrderItemsWorkflow x-workflow: addDraftOrderItemsWorkflow
x-events: []
@@ -55,3 +55,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateDraftOrderItemWorkflow x-workflow: updateDraftOrderItemWorkflow
x-events: []
@@ -62,6 +62,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateDraftOrderActionItemWorkflow x-workflow: updateDraftOrderActionItemWorkflow
x-events: []
delete: delete:
operationId: DeleteDraftOrdersIdEditItemsAction_id operationId: DeleteDraftOrdersIdEditItemsAction_id
summary: Remove Item from Draft Order Edit summary: Remove Item from Draft Order Edit
@@ -121,3 +122,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeDraftOrderActionItemWorkflow x-workflow: removeDraftOrderActionItemWorkflow
x-events: []
@@ -52,6 +52,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: addDraftOrderPromotionWorkflow x-workflow: addDraftOrderPromotionWorkflow
x-events: []
delete: delete:
operationId: DeleteDraftOrdersIdEditPromotions operationId: DeleteDraftOrdersIdEditPromotions
summary: Remove Promotions from Draft Order Edit summary: Remove Promotions from Draft Order Edit
@@ -107,3 +108,4 @@ delete:
application/json: application/json:
schema: schema:
$ref: ../components/schemas/AdminRemoveDraftOrderPromotions.yaml $ref: ../components/schemas/AdminRemoveDraftOrderPromotions.yaml
x-events: []
@@ -45,3 +45,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: requestDraftOrderEditWorkflow x-workflow: requestDraftOrderEditWorkflow
x-events: []
@@ -49,3 +49,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: addDraftOrderShippingMethodsWorkflow x-workflow: addDraftOrderShippingMethodsWorkflow
x-events: []
@@ -55,6 +55,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateDraftOrderShippingMethodWorkflow x-workflow: updateDraftOrderShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteDraftOrdersIdEditShippingMethodsMethodMethod_id operationId: DeleteDraftOrdersIdEditShippingMethodsMethodMethod_id
summary: Remove Shipping Method from Draft Order Edit summary: Remove Shipping Method from Draft Order Edit
@@ -107,3 +108,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeDraftOrderShippingMethodWorkflow x-workflow: removeDraftOrderShippingMethodWorkflow
x-events: []
@@ -62,6 +62,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateDraftOrderActionShippingMethodWorkflow x-workflow: updateDraftOrderActionShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteDraftOrdersIdEditShippingMethodsAction_id operationId: DeleteDraftOrdersIdEditShippingMethodsAction_id
summary: Remove New Shipping Method from Draft Order summary: Remove New Shipping Method from Draft Order
@@ -121,3 +122,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeDraftOrderActionShippingMethodWorkflow x-workflow: removeDraftOrderActionShippingMethodWorkflow
x-events: []
@@ -1037,3 +1037,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: beginExchangeOrderWorkflow x-workflow: beginExchangeOrderWorkflow
x-events: []
@@ -50,3 +50,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelOrderExchangeWorkflow x-workflow: cancelOrderExchangeWorkflow
x-events: []
@@ -54,3 +54,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: orderExchangeRequestItemReturnWorkflow x-workflow: orderExchangeRequestItemReturnWorkflow
x-events: []
@@ -67,6 +67,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateRequestItemReturnWorkflow x-workflow: updateRequestItemReturnWorkflow
x-events: []
delete: delete:
operationId: DeleteExchangesIdInboundItemsAction_id operationId: DeleteExchangesIdInboundItemsAction_id
summary: Remove Inbound Item from Exchange summary: Remove Inbound Item from Exchange
@@ -130,3 +131,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeItemReturnActionWorkflow x-workflow: removeItemReturnActionWorkflow
x-events: []
@@ -55,3 +55,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createExchangeShippingMethodWorkflow x-workflow: createExchangeShippingMethodWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateReturnShippingMethodWorkflow x-workflow: updateReturnShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteExchangesIdInboundShippingMethodAction_id operationId: DeleteExchangesIdInboundShippingMethodAction_id
summary: Remove Inbound Shipping Method from Exchange summary: Remove Inbound Shipping Method from Exchange
@@ -147,3 +148,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeReturnShippingMethodWorkflow x-workflow: removeReturnShippingMethodWorkflow
x-events: []
@@ -70,3 +70,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: orderExchangeAddNewItemWorkflow x-workflow: orderExchangeAddNewItemWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateExchangeAddItemWorkflow x-workflow: updateExchangeAddItemWorkflow
x-events: []
delete: delete:
operationId: DeleteExchangesIdOutboundItemsAction_id operationId: DeleteExchangesIdOutboundItemsAction_id
summary: Remove Outbound Item from Exchange summary: Remove Outbound Item from Exchange
@@ -165,3 +166,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeItemExchangeActionWorkflow x-workflow: removeItemExchangeActionWorkflow
x-events: []
@@ -73,3 +73,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createExchangeShippingMethodWorkflow x-workflow: createExchangeShippingMethodWorkflow
x-events: []
@@ -84,6 +84,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateExchangeShippingMethodWorkflow x-workflow: updateExchangeShippingMethodWorkflow
x-events: []
delete: delete:
operationId: DeleteExchangesIdOutboundShippingMethodAction_id operationId: DeleteExchangesIdOutboundShippingMethodAction_id
summary: Remove Outbound Shipping Method from Exchange summary: Remove Outbound Shipping Method from Exchange
@@ -165,3 +166,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: removeExchangeShippingMethodWorkflow x-workflow: removeExchangeShippingMethodWorkflow
x-events: []
@@ -63,6 +63,17 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: confirmExchangeRequestWorkflow x-workflow: confirmExchangeRequestWorkflow
x-events:
- name: order.exchange_created
payload: |-
```ts
{
order_id, // The ID of the order
exchange_id, // The ID of the exchange
}
```
description: Emitted when an exchange is created for an order.
deprecated: false
delete: delete:
operationId: DeleteExchangesIdRequest operationId: DeleteExchangesIdRequest
summary: Cancel Exchange Request summary: Cancel Exchange Request
@@ -110,3 +121,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelBeginOrderExchangeWorkflow x-workflow: cancelBeginOrderExchangeWorkflow
x-events: []
@@ -45,3 +45,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteFulfillmentSetsWorkflow x-workflow: deleteFulfillmentSetsWorkflow
x-events: []
@@ -93,7 +93,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
- type: object - type: object
description: A city geo zone description: A city geo zone
required: required:
@@ -118,7 +124,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
city: city:
type: string type: string
title: city title: city
@@ -148,7 +160,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
city: city:
type: string type: string
title: city title: city
@@ -189,3 +207,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createServiceZonesWorkflow x-workflow: createServiceZonesWorkflow
x-events: []
@@ -174,7 +174,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
id: id:
type: string type: string
title: id title: id
@@ -207,7 +213,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
id: id:
type: string type: string
title: id title: id
@@ -241,7 +253,13 @@ post:
province_code: province_code:
type: string type: string
title: province_code title: province_code
description: The geo zone's province code. description: >-
The geo zone's ISO 3166-2 province code. Must be
lower-case.
example: us-ca
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_3166-2
description: Learn more about ISO 3166-2
postal_expression: postal_expression:
type: object type: object
description: The geo zone's postal expression or ZIP code. description: The geo zone's postal expression or ZIP code.
@@ -282,6 +300,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateServiceZonesWorkflow x-workflow: updateServiceZonesWorkflow
x-events: []
delete: delete:
operationId: DeleteFulfillmentSetsIdServiceZonesZone_id operationId: DeleteFulfillmentSetsIdServiceZonesZone_id
summary: Remove a Service Zone from Fulfillment Set summary: Remove a Service Zone from Fulfillment Set
@@ -338,3 +357,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteServiceZonesWorkflow x-workflow: deleteServiceZonesWorkflow
x-events: []
@@ -62,3 +62,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createFulfillmentWorkflow x-workflow: createFulfillmentWorkflow
x-events: []
@@ -68,3 +68,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: cancelFulfillmentWorkflow x-workflow: cancelFulfillmentWorkflow
x-events: []
@@ -71,3 +71,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createShipmentWorkflow x-workflow: createShipmentWorkflow
x-events: []
@@ -559,3 +559,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createInventoryItemsWorkflow x-workflow: createInventoryItemsWorkflow
x-events: []
@@ -46,3 +46,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: batchInventoryItemLevelsWorkflow x-workflow: batchInventoryItemLevelsWorkflow
x-events: []
@@ -196,6 +196,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateInventoryItemsWorkflow x-workflow: updateInventoryItemsWorkflow
x-events: []
delete: delete:
operationId: DeleteInventoryItemsId operationId: DeleteInventoryItemsId
summary: Delete Inventory Item summary: Delete Inventory Item
@@ -262,3 +263,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteInventoryItemWorkflow x-workflow: deleteInventoryItemWorkflow
x-events: []
@@ -237,3 +237,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: createInventoryLevelsWorkflow x-workflow: createInventoryLevelsWorkflow
x-events: []
@@ -49,3 +49,4 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: batchInventoryItemLevelsWorkflow x-workflow: batchInventoryItemLevelsWorkflow
x-events: []
@@ -89,6 +89,7 @@ post:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: updateInventoryLevelsWorkflow x-workflow: updateInventoryLevelsWorkflow
x-events: []
delete: delete:
operationId: DeleteInventoryItemsIdLocationLevelsLocation_id operationId: DeleteInventoryItemsIdLocationLevelsLocation_id
summary: Remove Inventory Level of Inventory Item summary: Remove Inventory Level of Inventory Item
@@ -193,3 +194,4 @@ delete:
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
x-workflow: deleteInventoryLevelsWorkflow x-workflow: deleteInventoryLevelsWorkflow
x-events: []
@@ -673,3 +673,15 @@ post:
- api_token: [] - api_token: []
- cookie_auth: [] - cookie_auth: []
- jwt_token: [] - jwt_token: []
x-events:
- name: invite.created
payload: |-
```ts
[{
id, // The ID of the invite
}]
```
description: |-
Emitted when invites are created. You can listen to this event
to send an email to the invited users, for example.
deprecated: false
@@ -79,3 +79,22 @@ post:
security: security:
- cookie_auth: [] - cookie_auth: []
- jwt_token: [] - jwt_token: []
x-events:
- name: user.created
payload: |-
```ts
[{
id, // The ID of the user
}]
```
description: Emitted when users are created.
deprecated: false
- name: invite.accepted
payload: |-
```ts
{
id, // The ID of the invite
}
```
description: Emitted when an invite is accepted.
deprecated: false
@@ -130,3 +130,13 @@ delete:
- api_token: [] - api_token: []
- cookie_auth: [] - cookie_auth: []
- jwt_token: [] - jwt_token: []
x-events:
- name: invite.deleted
payload: |-
```ts
[{
id, // The ID of the invite
}]
```
description: Emitted when invites are deleted.
deprecated: false
@@ -63,3 +63,19 @@ post:
- api_token: [] - api_token: []
- cookie_auth: [] - cookie_auth: []
- jwt_token: [] - jwt_token: []
x-events:
- name: invite.resent
payload: |-
```ts
[{
id, // The ID of the invite
}]
```
description: >-
Emitted when invites should be resent because their token was
refreshed. You can listen to this event to send an email to the invited
users,
for example.
deprecated: false
Loaded 100 of 515 files, more files were not shown because too many files have changed in this diff. Show more