@redotech/redo-api-schema 2.2.331 → 2.2.416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/lib/openapi.d.ts +330 -279
  2. package/lib/openapi.yaml +2697 -2600
  3. package/package.json +1 -1
package/lib/openapi.d.ts CHANGED
@@ -121,6 +121,39 @@ export interface paths {
121
121
  */
122
122
  post: operations["Customer subscriptions update"];
123
123
  };
124
+ "/stores/{storeId}/customers": {
125
+ /**
126
+ * Get customer by email
127
+ * @description Retrieve a customer profile by email address.
128
+ *
129
+ * The response includes the customer's name, contact information, location,
130
+ * and any custom fields associated with the profile. Custom fields are returned
131
+ * as `{ fieldName: value }` pairs.
132
+ */
133
+ get: operations["Customer get"];
134
+ /**
135
+ * Create or update customer
136
+ * @description Create or update a customer profile. Uses the email address as the upsert
137
+ * key — if a customer with that email exists, their profile is updated;
138
+ * otherwise, a new customer is created.
139
+ *
140
+ * ## Profile fields
141
+ * - `firstName` and `lastName` are set directly on the customer. A full
142
+ * display name is automatically generated from these fields.
143
+ * - `phoneNumber` should be in E.164 format (e.g., `+12345678900`). If the
144
+ * number is new, it is added to the customer's contact information.
145
+ *
146
+ * ## Location
147
+ * Providing `location` sets the customer's current location. Only the fields
148
+ * you include are updated.
149
+ *
150
+ * ## Custom fields
151
+ * Use `customFields` to store arbitrary key-value data on the customer (e.g.,
152
+ * `pricing_plan`, `subscription_source`). Values can be strings, numbers, or
153
+ * booleans. If a custom field doesn't exist yet, it is created automatically.
154
+ */
155
+ put: operations["Customer upsert"];
156
+ };
124
157
  "/stores/{storeId}/events": {
125
158
  /**
126
159
  * Create custom event
@@ -158,42 +191,6 @@ export interface paths {
158
191
  };
159
192
  };
160
193
  };
161
- "/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}": {
162
- /**
163
- * Download Shipment Document
164
- * @description Get a shipment document (label, commercial invoice, etc).
165
- */
166
- get: operations["Shipment document download"];
167
- parameters: {
168
- path: {
169
- storeId: components["parameters"]["store-id.param"];
170
- };
171
- };
172
- };
173
- "/stores/{storeId}/shipments/buy": {
174
- /**
175
- * Purchase Shipping Label
176
- * @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
177
- */
178
- post: operations["Shipment buy"];
179
- parameters: {
180
- path: {
181
- storeId: components["parameters"]["store-id.param"];
182
- };
183
- };
184
- };
185
- "/stores/{storeId}/shipments/rates": {
186
- /**
187
- * Shipping Rates
188
- * @description Get available shipping rates based on origin, destination, and parcel information.
189
- */
190
- post: operations["Shipment rates"];
191
- parameters: {
192
- path: {
193
- storeId: components["parameters"]["store-id.param"];
194
- };
195
- };
196
- };
197
194
  "/stores/{storeId}/storefront/events": {
198
195
  /**
199
196
  * Receive Storefront Events
@@ -379,6 +376,70 @@ export interface components {
379
376
  */
380
377
  status: "processed";
381
378
  };
379
+ /**
380
+ * Customer Location
381
+ * @description Customer location information.
382
+ */
383
+ "customer-location.schema": {
384
+ /** @description City name */
385
+ city?: string;
386
+ /** @description Country name */
387
+ country?: string;
388
+ /** @description ISO 3166-1 alpha-2 country code */
389
+ countryCode?: string;
390
+ /** @description IANA time zone identifier */
391
+ ianaTimeZoneName?: string;
392
+ /** @description Latitude coordinate */
393
+ latitude?: number;
394
+ /** @description Longitude coordinate */
395
+ longitude?: number;
396
+ /** @description Postal or ZIP code */
397
+ postalCode?: string;
398
+ /** @description State or province name */
399
+ state?: string;
400
+ /** @description State or province abbreviation */
401
+ stateCode?: string;
402
+ /** @description Street address line 1 */
403
+ street1?: string;
404
+ /** @description Street address line 2 */
405
+ street2?: string;
406
+ };
407
+ /**
408
+ * Customer
409
+ * @description Customer profile.
410
+ */
411
+ "customer-read.schema": {
412
+ /**
413
+ * Created at
414
+ * Format: date-time
415
+ * @description Timestamp when the customer was created.
416
+ */
417
+ createdAt: string;
418
+ /** @description Custom field values as key-value pairs, where keys are field names and values can be strings, numbers, or booleans. */
419
+ customFields?: {
420
+ [key: string]: string | number | boolean;
421
+ };
422
+ /**
423
+ * Format: email
424
+ * @description Customer email address
425
+ */
426
+ email: string;
427
+ /** @description Customer first name */
428
+ firstName?: string;
429
+ /** @description Redo customer ID */
430
+ id: string;
431
+ /** @description Customer last name */
432
+ lastName?: string;
433
+ location?: components["schemas"]["customer-location.schema"];
434
+ /** @description Customer phone number in E.164 format */
435
+ phoneNumber?: string;
436
+ /**
437
+ * Updated at
438
+ * Format: date-time
439
+ * @description Timestamp when the customer was last updated.
440
+ */
441
+ updatedAt: string;
442
+ };
382
443
  /** @description Email subscription updates */
383
444
  "customer-subscription-email.schema": {
384
445
  /**
@@ -419,6 +480,48 @@ export interface components {
419
480
  };
420
481
  };
421
482
  };
483
+ /**
484
+ * Customer Upsert Request
485
+ * @description Request body for creating or updating a customer profile. The email address is used as the upsert key.
486
+ */
487
+ "customer-upsert-request.schema": {
488
+ /**
489
+ * @description Custom field values as key-value pairs. Keys are field names and values can be strings, numbers, or booleans. New fields are created automatically if they don't exist yet.
490
+ * @example {
491
+ * "subscription_source": "web",
492
+ * "status": "Active",
493
+ * "loyalty_points": 1250,
494
+ * "vip_member": true
495
+ * }
496
+ */
497
+ customFields?: {
498
+ [key: string]: string | number | boolean;
499
+ };
500
+ /**
501
+ * Format: email
502
+ * @description Customer email address. Used as the upsert key to find or create the customer.
503
+ */
504
+ email: string;
505
+ /** @description Customer first name */
506
+ firstName?: string;
507
+ /** @description Customer last name */
508
+ lastName?: string;
509
+ location?: components["schemas"]["customer-location.schema"];
510
+ /** @description Customer phone number in E.164 format (e.g., +12345678900). Appended to the existing phone list if not already present. */
511
+ phoneNumber?: string;
512
+ };
513
+ /**
514
+ * Customer Upsert Response
515
+ * @description Response after creating or updating a customer profile.
516
+ */
517
+ "customer-upsert-response.schema": {
518
+ /** @description Whether a new customer was created (true) or an existing customer was updated (false). */
519
+ created: boolean;
520
+ /** @description Customer email address */
521
+ email: string;
522
+ /** @description Redo customer ID */
523
+ id: string;
524
+ };
422
525
  /**
423
526
  * Problem details
424
527
  * @description Problem details. See [RFC 7807 Section 3](https://datatracker.ietf.org/doc/html/rfc7807#section-3).
@@ -628,23 +731,6 @@ export interface components {
628
731
  */
629
732
  total: components["schemas"]["money.schema"];
630
733
  };
631
- /**
632
- * Parcel Type
633
- * @description Parcel type enum.
634
- * @enum {string}
635
- */
636
- "parcel-type.schema": "box" | "envelope" | "soft_pack";
637
- /**
638
- * Parcel
639
- * @description Parcel information for shipping.
640
- */
641
- "parcel.schema": {
642
- height: components["schemas"]["length.schema"];
643
- length: components["schemas"]["length.schema"];
644
- type: components["schemas"]["parcel-type.schema"];
645
- weight: components["schemas"]["shipping-weight.schema"];
646
- width: components["schemas"]["length.schema"];
647
- };
648
734
  /**
649
735
  * Person name
650
736
  * @description Person name.
@@ -697,6 +783,11 @@ export interface components {
697
783
  * @description Array of compensation methods available for this return
698
784
  */
699
785
  compensationMethods?: ("refund" | "store_credit" | "exchange")[];
786
+ /**
787
+ * Complete With No Action
788
+ * @description Whether this return can be completed with no action
789
+ */
790
+ completeWithNoAction?: boolean;
700
791
  /**
701
792
  * Created at
702
793
  * Format: date-time
@@ -861,6 +952,11 @@ export interface components {
861
952
  name?: string;
862
953
  };
863
954
  };
955
+ /**
956
+ * External Return Line Item ID
957
+ * @description External return line item ID
958
+ */
959
+ externalReturnLineItemId?: string;
864
960
  /** @description Whether this is a green return (no physical return required) */
865
961
  greenReturn?: boolean;
866
962
  /**
@@ -912,6 +1008,11 @@ export interface components {
912
1008
  /** @description Refund strategy */
913
1009
  type?: string;
914
1010
  };
1011
+ /**
1012
+ * Shipment Group IDs
1013
+ * @description IDs of the shipment groups this return item belongs to
1014
+ */
1015
+ shipmentGroupIds?: string[];
915
1016
  /** @description Product SKU */
916
1017
  sku?: string;
917
1018
  /** @description Return item status */
@@ -942,10 +1043,15 @@ export interface components {
942
1043
  order: {
943
1044
  /**
944
1045
  * ID
945
- * @description Order ID.
946
- * @example abc123
1046
+ * @description Redo's internal identifier for the original order created in Redo.
1047
+ * @example 64e4da943dd822979a70bd12
947
1048
  */
948
1049
  id: string;
1050
+ /**
1051
+ * Name
1052
+ * @description Order name from the external provider, such as the Shopify order name.
1053
+ */
1054
+ name?: string;
949
1055
  };
950
1056
  /**
951
1057
  * Shipment
@@ -990,6 +1096,16 @@ export interface components {
990
1096
  * @description Return status.
991
1097
  */
992
1098
  status: components["schemas"]["return-status.schema"];
1099
+ /**
1100
+ * Tags
1101
+ * @description Tags associated with this return
1102
+ */
1103
+ tags?: {
1104
+ /** @description The tag's display name */
1105
+ name: string;
1106
+ /** @description The source of the tag */
1107
+ source: string;
1108
+ }[];
993
1109
  /**
994
1110
  * Totals
995
1111
  * @description Calculated totals for the return
@@ -1034,11 +1150,41 @@ export interface components {
1034
1150
  * @description Carrier code
1035
1151
  */
1036
1152
  carrier?: string;
1153
+ /**
1154
+ * Delivered At
1155
+ * @description Date and time this shipment was delivered
1156
+ */
1157
+ deliveredAt?: string;
1158
+ /**
1159
+ * Estimated Delivery Date
1160
+ * @description Estimated delivery date for this shipment
1161
+ */
1162
+ estimatedDeliveryDate?: string;
1163
+ /**
1164
+ * External Location ID
1165
+ * @description External location ID for the destination of this shipment
1166
+ */
1167
+ externalLocationId?: string;
1168
+ /**
1169
+ * Form Label
1170
+ * @description Form label URL
1171
+ */
1172
+ formLabel?: string;
1173
+ /**
1174
+ * Item IDs
1175
+ * @description IDs of the return items included in this shipment
1176
+ */
1177
+ itemIds?: string[];
1037
1178
  /**
1038
1179
  * Postage Label
1039
1180
  * @description Postage label URL
1040
1181
  */
1041
1182
  postageLabel?: string;
1183
+ /**
1184
+ * Shipment Group ID
1185
+ * @description ID of the shipment group this shipment belongs to
1186
+ */
1187
+ shipmentGroupId?: string;
1042
1188
  /**
1043
1189
  * Status
1044
1190
  * @description Status of shipment
@@ -1097,108 +1243,6 @@ export interface components {
1097
1243
  * @enum {string}
1098
1244
  */
1099
1245
  "return-type.schema": "claim" | "return" | "warranty";
1100
- /**
1101
- * Shipment Document Type
1102
- * @description Type of shipping document.
1103
- * @enum {string}
1104
- */
1105
- "shipment-document-type.schema": "label" | "commercialInvoice";
1106
- /**
1107
- * Shipment Document
1108
- * @description Shipping document information.
1109
- */
1110
- "shipment-document.schema": {
1111
- type: components["schemas"]["shipment-document-type.schema"];
1112
- };
1113
- /**
1114
- * Shipment Rate
1115
- * @description Shipping rate information.
1116
- */
1117
- "shipment-rate.schema": {
1118
- carrier: {
1119
- /**
1120
- * Carrier Account ID
1121
- * @description ID for the carrier account that provides the shipping rate.
1122
- */
1123
- id: string;
1124
- /**
1125
- * Carrier Name
1126
- * @description Carrier display name
1127
- */
1128
- name: string;
1129
- };
1130
- price: components["schemas"]["money.schema"];
1131
- service: {
1132
- /**
1133
- * Service Name
1134
- * @description Service level name
1135
- */
1136
- name: string;
1137
- };
1138
- };
1139
- /**
1140
- * Shipment Tracker
1141
- * @description Shipment tracking information.
1142
- */
1143
- "shipment-tracker.schema": {
1144
- /**
1145
- * Tracking Code
1146
- * @description Carrier tracking code
1147
- */
1148
- code: string;
1149
- };
1150
- /**
1151
- * Shipment
1152
- * @description Shipment information.
1153
- */
1154
- "shipment.schema": {
1155
- /**
1156
- * Documents
1157
- * @description Available shipping documents. You can access these documents using the GET Shipment document endpoint.
1158
- */
1159
- documents: components["schemas"]["shipment-document.schema"][];
1160
- /**
1161
- * Shipment ID
1162
- * @description Shipment identifier
1163
- */
1164
- id: string;
1165
- price: components["schemas"]["money.schema"];
1166
- tracker: components["schemas"]["shipment-tracker.schema"];
1167
- };
1168
- /**
1169
- * Shipping Contact
1170
- * @description Contact information for shipping.
1171
- */
1172
- "shipping-contact.schema": {
1173
- address: components["schemas"]["address.schema"];
1174
- /**
1175
- * Name
1176
- * @description Contact name
1177
- */
1178
- name: string;
1179
- /**
1180
- * Phone Number
1181
- * @description Contact phone number
1182
- */
1183
- phoneNumber: string;
1184
- };
1185
- /**
1186
- * Shipping Weight
1187
- * @description Weight measurement with unit for shipping.
1188
- */
1189
- "shipping-weight.schema": {
1190
- /**
1191
- * Unit
1192
- * @description Weight unit
1193
- * @enum {string}
1194
- */
1195
- unit: "g" | "kg" | "oz" | "lb";
1196
- /**
1197
- * Value
1198
- * @description Numeric weight value
1199
- */
1200
- value: number;
1201
- };
1202
1246
  /**
1203
1247
  * Storefront Cart
1204
1248
  * @description Storefront cart.
@@ -1318,7 +1362,10 @@ export interface components {
1318
1362
  urlWithParams?: string;
1319
1363
  [key: string]: unknown;
1320
1364
  };
1321
- /** @description Marketing subscription status */
1365
+ /**
1366
+ * Subscription Status Marketing
1367
+ * @description Marketing subscription status
1368
+ */
1322
1369
  "subscription-status-marketing.schema": {
1323
1370
  /**
1324
1371
  * @description Subscription status
@@ -1336,7 +1383,10 @@ export interface components {
1336
1383
  */
1337
1384
  updatedAt?: string;
1338
1385
  };
1339
- /** @description Transactional subscription status (order tracking) */
1386
+ /**
1387
+ * Subscription Status Transactional
1388
+ * @description Transactional subscription status (order tracking)
1389
+ */
1340
1390
  "subscription-status-transactional.schema": {
1341
1391
  /**
1342
1392
  * @description Subscription status. Only subscribed and unsubscribed are supported for transactional.
@@ -1469,8 +1519,6 @@ export interface components {
1469
1519
  };
1470
1520
  responses: never;
1471
1521
  parameters: {
1472
- /** @description Type of document to download */
1473
- "document-type.param": components["schemas"]["shipment-document-type.schema"];
1474
1522
  /** @description Invoice ID */
1475
1523
  "invoice-id.param": string;
1476
1524
  /**
@@ -1487,8 +1535,8 @@ export interface components {
1487
1535
  "provider-order-name"?: string;
1488
1536
  /** @description Return ID */
1489
1537
  "return-id.param": string;
1490
- /** @description Shipment ID */
1491
- "shipment-id.param": string;
1538
+ /** @description Filter returns by status */
1539
+ "return-status.param"?: components["schemas"]["return-status.schema"];
1492
1540
  /** @description Shopify specific order name */
1493
1541
  "shopify-order-name"?: string;
1494
1542
  /** @description Store ID */
@@ -1854,6 +1902,7 @@ export interface operations {
1854
1902
  customer?: components["schemas"]["storefront-customer.schema"];
1855
1903
  /**
1856
1904
  * Products
1905
+ * @deprecated
1857
1906
  * @description Product information.
1858
1907
  */
1859
1908
  products?: {
@@ -1865,6 +1914,7 @@ export interface operations {
1865
1914
  }[];
1866
1915
  /**
1867
1916
  * Variants
1917
+ * @deprecated
1868
1918
  * @description Variant information.
1869
1919
  */
1870
1920
  variants?: {
@@ -1988,6 +2038,122 @@ export interface operations {
1988
2038
  };
1989
2039
  };
1990
2040
  };
2041
+ /**
2042
+ * Get customer by email
2043
+ * @description Retrieve a customer profile by email address.
2044
+ *
2045
+ * The response includes the customer's name, contact information, location,
2046
+ * and any custom fields associated with the profile. Custom fields are returned
2047
+ * as `{ fieldName: value }` pairs.
2048
+ */
2049
+ "Customer get": {
2050
+ parameters: {
2051
+ query: {
2052
+ /** @description Customer email address */
2053
+ email: string;
2054
+ };
2055
+ path: {
2056
+ storeId: components["parameters"]["store-id.param"];
2057
+ };
2058
+ };
2059
+ responses: {
2060
+ /** @description Customer found */
2061
+ 200: {
2062
+ content: {
2063
+ "application/json": components["schemas"]["customer-read.schema"];
2064
+ };
2065
+ };
2066
+ /** @description Missing or invalid email parameter */
2067
+ 400: {
2068
+ content: {
2069
+ "application/problem+json": components["schemas"]["error.schema"];
2070
+ };
2071
+ };
2072
+ /** @description No customer found for that email */
2073
+ 404: {
2074
+ content: {
2075
+ "application/problem+json": components["schemas"]["error.schema"];
2076
+ };
2077
+ };
2078
+ /** @description Internal server error */
2079
+ 500: {
2080
+ content: {
2081
+ "application/problem+json": components["schemas"]["error.schema"];
2082
+ };
2083
+ };
2084
+ /** @description Error */
2085
+ default: {
2086
+ content: {
2087
+ "application/problem+json": components["schemas"]["error.schema"];
2088
+ };
2089
+ };
2090
+ };
2091
+ };
2092
+ /**
2093
+ * Create or update customer
2094
+ * @description Create or update a customer profile. Uses the email address as the upsert
2095
+ * key — if a customer with that email exists, their profile is updated;
2096
+ * otherwise, a new customer is created.
2097
+ *
2098
+ * ## Profile fields
2099
+ * - `firstName` and `lastName` are set directly on the customer. A full
2100
+ * display name is automatically generated from these fields.
2101
+ * - `phoneNumber` should be in E.164 format (e.g., `+12345678900`). If the
2102
+ * number is new, it is added to the customer's contact information.
2103
+ *
2104
+ * ## Location
2105
+ * Providing `location` sets the customer's current location. Only the fields
2106
+ * you include are updated.
2107
+ *
2108
+ * ## Custom fields
2109
+ * Use `customFields` to store arbitrary key-value data on the customer (e.g.,
2110
+ * `pricing_plan`, `subscription_source`). Values can be strings, numbers, or
2111
+ * booleans. If a custom field doesn't exist yet, it is created automatically.
2112
+ */
2113
+ "Customer upsert": {
2114
+ parameters: {
2115
+ path: {
2116
+ storeId: components["parameters"]["store-id.param"];
2117
+ };
2118
+ };
2119
+ requestBody: {
2120
+ content: {
2121
+ "application/json": components["schemas"]["customer-upsert-request.schema"];
2122
+ };
2123
+ };
2124
+ responses: {
2125
+ /** @description Existing customer updated */
2126
+ 200: {
2127
+ content: {
2128
+ "application/json": components["schemas"]["customer-upsert-response.schema"];
2129
+ };
2130
+ };
2131
+ /** @description New customer created */
2132
+ 201: {
2133
+ content: {
2134
+ "application/json": components["schemas"]["customer-upsert-response.schema"];
2135
+ };
2136
+ };
2137
+ /** @description Invalid request body or invalid email address */
2138
+ 400: {
2139
+ content: {
2140
+ "application/problem+json": components["schemas"]["error.schema"];
2141
+ };
2142
+ };
2143
+ /** @description Internal server error */
2144
+ 500: {
2145
+ content: {
2146
+ "application/problem+json": components["schemas"]["error.schema"];
2147
+ };
2148
+ };
2149
+ /** @description Error */
2150
+ default: {
2151
+ content: {
2152
+ "application/problem+json": components["schemas"]["error.schema"];
2153
+ };
2154
+ };
2155
+ };
2156
+ };
1991
2157
  /**
1992
2158
  * Create custom event
1993
2159
  * @description Create a custom event to trigger flows with merchant-defined event names and properties.
@@ -2085,6 +2251,7 @@ export interface operations {
2085
2251
  updated_at_min?: components["parameters"]["updated-at-min.param"];
2086
2252
  shopify_order_name?: components["parameters"]["shopify-order-name"];
2087
2253
  provider_order_name?: components["parameters"]["provider-order-name"];
2254
+ status?: components["parameters"]["return-status.param"];
2088
2255
  };
2089
2256
  header?: {
2090
2257
  "X-Page-Continue"?: components["parameters"]["page-continue.param"];
@@ -2115,122 +2282,6 @@ export interface operations {
2115
2282
  };
2116
2283
  };
2117
2284
  };
2118
- /**
2119
- * Download Shipment Document
2120
- * @description Get a shipment document (label, commercial invoice, etc).
2121
- */
2122
- "Shipment document download": {
2123
- parameters: {
2124
- path: {
2125
- storeId: components["parameters"]["store-id.param"];
2126
- shipmentId: components["parameters"]["shipment-id.param"];
2127
- documentType: components["parameters"]["document-type.param"];
2128
- };
2129
- };
2130
- responses: {
2131
- /** @description Success */
2132
- 200: {
2133
- content: {
2134
- "application/pdf": string;
2135
- "image/png": string;
2136
- };
2137
- };
2138
- /** @description Error */
2139
- default: {
2140
- content: {
2141
- "application/problem+json": components["schemas"]["error.schema"];
2142
- };
2143
- };
2144
- };
2145
- };
2146
- /**
2147
- * Purchase Shipping Label
2148
- * @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
2149
- */
2150
- "Shipment buy": {
2151
- parameters: {
2152
- path: {
2153
- storeId: components["parameters"]["store-id.param"];
2154
- };
2155
- };
2156
- requestBody: {
2157
- content: {
2158
- "application/json": {
2159
- carrier: {
2160
- /**
2161
- * Carrier Account ID
2162
- * @description ID for the carrier account that provides the shipping rate.
2163
- */
2164
- id: string;
2165
- };
2166
- destination: components["schemas"]["shipping-contact.schema"];
2167
- origin: components["schemas"]["shipping-contact.schema"];
2168
- parcel: components["schemas"]["parcel.schema"];
2169
- service: {
2170
- /** @description Service level name */
2171
- name: string;
2172
- };
2173
- };
2174
- };
2175
- };
2176
- responses: {
2177
- /** @description Success */
2178
- 200: {
2179
- content: {
2180
- "application/json": {
2181
- shipment: components["schemas"]["shipment.schema"];
2182
- };
2183
- };
2184
- };
2185
- /** @description Error */
2186
- default: {
2187
- content: {
2188
- "application/problem+json": components["schemas"]["error.schema"];
2189
- };
2190
- };
2191
- };
2192
- };
2193
- /**
2194
- * Shipping Rates
2195
- * @description Get available shipping rates based on origin, destination, and parcel information.
2196
- */
2197
- "Shipment rates": {
2198
- parameters: {
2199
- path: {
2200
- storeId: components["parameters"]["store-id.param"];
2201
- };
2202
- };
2203
- requestBody: {
2204
- content: {
2205
- "application/json": {
2206
- destination: {
2207
- address: components["schemas"]["address.schema"];
2208
- };
2209
- origin: {
2210
- address: components["schemas"]["address.schema"];
2211
- };
2212
- parcel: components["schemas"]["parcel.schema"];
2213
- };
2214
- };
2215
- };
2216
- responses: {
2217
- /** @description Success */
2218
- 200: {
2219
- content: {
2220
- "application/json": {
2221
- /** @description Available shipping rates */
2222
- rates: components["schemas"]["shipment-rate.schema"][];
2223
- };
2224
- };
2225
- };
2226
- /** @description Error */
2227
- default: {
2228
- content: {
2229
- "application/problem+json": components["schemas"]["error.schema"];
2230
- };
2231
- };
2232
- };
2233
- };
2234
2285
  /**
2235
2286
  * Receive Storefront Events
2236
2287
  * @description Processes events from storefronts using Shopify pixel event schema