ultracart_api 4.1.163 → 4.1.166
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.
- checksums.yaml +4 -4
- data/LICENSE +201 -201
- data/README.md +611 -602
- data/docs/AffiliateApi.md +455 -455
- data/docs/AutoOrderApi.md +1694 -1694
- data/docs/BulkApi.md +335 -335
- data/docs/ChannelPartnerApi.md +1678 -1678
- data/docs/CheckoutApi.md +1622 -1622
- data/docs/ConversationApi.md +7867 -7867
- data/docs/ConversationEmbedApi.md +226 -226
- data/docs/CouponApi.md +1522 -1522
- data/docs/CustomerApi.md +2849 -2849
- data/docs/DatawarehouseApi.md +1637 -1637
- data/docs/EmailCommseqEmailReviewStatus.md +32 -0
- data/docs/EmailCommseqEmailReviewStatusResponse.md +26 -0
- data/docs/EmailCommseqEmailReviewStatusesRequest.md +18 -0
- data/docs/EmailCommseqEmailReviewStatusesResponse.md +26 -0
- data/docs/FraudApi.md +332 -332
- data/docs/FulfillmentApi.md +567 -567
- data/docs/GiftCertificateApi.md +617 -617
- data/docs/IntegrationLogApi.md +290 -290
- data/docs/ItemApi.md +2502 -2502
- data/docs/OauthApi.md +311 -311
- data/docs/OrderApi.md +3396 -3396
- data/docs/SfvbApi.md +3883 -3883
- data/docs/SsoApi.md +223 -223
- data/docs/StorefrontApi.md +10143 -10035
- data/docs/TaxApi.md +1699 -1699
- data/docs/UserApi.md +606 -606
- data/docs/WebhookApi.md +840 -840
- data/docs/WorkflowApi.md +666 -666
- data/lib/ultracart_api/api/storefront_api.rb +143 -0
- data/lib/ultracart_api/models/email_commseq_email_review_status.rb +324 -0
- data/lib/ultracart_api/models/email_commseq_email_review_status_response.rb +256 -0
- data/lib/ultracart_api/models/email_commseq_email_review_statuses_request.rb +222 -0
- data/lib/ultracart_api/models/email_commseq_email_review_statuses_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +11 -3
data/docs/BulkApi.md
CHANGED
|
@@ -1,335 +1,335 @@
|
|
|
1
|
-
# UltracartClient::BulkApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**bulk_cancel_job**](BulkApi.md#bulk_cancel_job) | **DELETE** /bulk/{object}/{job_id} | Request cancellation of a bulk job |
|
|
8
|
-
| [**bulk_generate_upload_url**](BulkApi.md#bulk_generate_upload_url) | **POST** /bulk/{object}/upload-url | Generate a presigned upload URL for a bulk payload |
|
|
9
|
-
| [**bulk_get_job**](BulkApi.md#bulk_get_job) | **GET** /bulk/{object}/{job_id} | Retrieve a bulk job's status and counts |
|
|
10
|
-
| [**bulk_get_job_records**](BulkApi.md#bulk_get_job_records) | **GET** /bulk/{object}/{job_id}/records | Paginate a bulk job's per-record results |
|
|
11
|
-
| [**bulk_list_jobs**](BulkApi.md#bulk_list_jobs) | **GET** /bulk/{object} | List bulk jobs for the calling merchant |
|
|
12
|
-
| [**bulk_submit_job**](BulkApi.md#bulk_submit_job) | **POST** /bulk/{object} | Submit a bulk job |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## bulk_cancel_job
|
|
16
|
-
|
|
17
|
-
> bulk_cancel_job(object, job_id)
|
|
18
|
-
|
|
19
|
-
Request cancellation of a bulk job
|
|
20
|
-
|
|
21
|
-
Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Examples
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(No example for this operation).
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#### Using the bulk_cancel_job_with_http_info variant
|
|
31
|
-
|
|
32
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
33
|
-
|
|
34
|
-
> <Array(nil, Integer, Hash)> bulk_cancel_job_with_http_info(object, job_id)
|
|
35
|
-
|
|
36
|
-
```ruby
|
|
37
|
-
begin
|
|
38
|
-
# Request cancellation of a bulk job
|
|
39
|
-
data, status_code, headers = api_instance.bulk_cancel_job_with_http_info(object, job_id)
|
|
40
|
-
p status_code # => 2xx
|
|
41
|
-
p headers # => { ... }
|
|
42
|
-
p data # => nil
|
|
43
|
-
rescue UltracartClient::ApiError => e
|
|
44
|
-
puts "Error when calling BulkApi->bulk_cancel_job_with_http_info: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
| ---- | ---- | ----------- | ----- |
|
|
52
|
-
| **object** | **String** | Object type | |
|
|
53
|
-
| **job_id** | **String** | The bulk job id | |
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
nil (empty response body)
|
|
58
|
-
|
|
59
|
-
### Authorization
|
|
60
|
-
|
|
61
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
62
|
-
|
|
63
|
-
### HTTP request headers
|
|
64
|
-
|
|
65
|
-
- **Content-Type**: Not defined
|
|
66
|
-
- **Accept**: application/json
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
## bulk_generate_upload_url
|
|
70
|
-
|
|
71
|
-
> <BulkUploadUrlResponse> bulk_generate_upload_url(object)
|
|
72
|
-
|
|
73
|
-
Generate a presigned upload URL for a bulk payload
|
|
74
|
-
|
|
75
|
-
Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Examples
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
(No example for this operation).
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
#### Using the bulk_generate_upload_url_with_http_info variant
|
|
85
|
-
|
|
86
|
-
This returns an Array which contains the response data, status code and headers.
|
|
87
|
-
|
|
88
|
-
> <Array(<BulkUploadUrlResponse>, Integer, Hash)> bulk_generate_upload_url_with_http_info(object)
|
|
89
|
-
|
|
90
|
-
```ruby
|
|
91
|
-
begin
|
|
92
|
-
# Generate a presigned upload URL for a bulk payload
|
|
93
|
-
data, status_code, headers = api_instance.bulk_generate_upload_url_with_http_info(object)
|
|
94
|
-
p status_code # => 2xx
|
|
95
|
-
p headers # => { ... }
|
|
96
|
-
p data # => <BulkUploadUrlResponse>
|
|
97
|
-
rescue UltracartClient::ApiError => e
|
|
98
|
-
puts "Error when calling BulkApi->bulk_generate_upload_url_with_http_info: #{e}"
|
|
99
|
-
end
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Parameters
|
|
103
|
-
|
|
104
|
-
| Name | Type | Description | Notes |
|
|
105
|
-
| ---- | ---- | ----------- | ----- |
|
|
106
|
-
| **object** | **String** | Object type | |
|
|
107
|
-
|
|
108
|
-
### Return type
|
|
109
|
-
|
|
110
|
-
[**BulkUploadUrlResponse**](BulkUploadUrlResponse.md)
|
|
111
|
-
|
|
112
|
-
### Authorization
|
|
113
|
-
|
|
114
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
115
|
-
|
|
116
|
-
### HTTP request headers
|
|
117
|
-
|
|
118
|
-
- **Content-Type**: Not defined
|
|
119
|
-
- **Accept**: application/json
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## bulk_get_job
|
|
123
|
-
|
|
124
|
-
> <BulkJobResponse> bulk_get_job(object, job_id)
|
|
125
|
-
|
|
126
|
-
Retrieve a bulk job's status and counts
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Examples
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
(No example for this operation).
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
#### Using the bulk_get_job_with_http_info variant
|
|
136
|
-
|
|
137
|
-
This returns an Array which contains the response data, status code and headers.
|
|
138
|
-
|
|
139
|
-
> <Array(<BulkJobResponse>, Integer, Hash)> bulk_get_job_with_http_info(object, job_id)
|
|
140
|
-
|
|
141
|
-
```ruby
|
|
142
|
-
begin
|
|
143
|
-
# Retrieve a bulk job's status and counts
|
|
144
|
-
data, status_code, headers = api_instance.bulk_get_job_with_http_info(object, job_id)
|
|
145
|
-
p status_code # => 2xx
|
|
146
|
-
p headers # => { ... }
|
|
147
|
-
p data # => <BulkJobResponse>
|
|
148
|
-
rescue UltracartClient::ApiError => e
|
|
149
|
-
puts "Error when calling BulkApi->bulk_get_job_with_http_info: #{e}"
|
|
150
|
-
end
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Parameters
|
|
154
|
-
|
|
155
|
-
| Name | Type | Description | Notes |
|
|
156
|
-
| ---- | ---- | ----------- | ----- |
|
|
157
|
-
| **object** | **String** | Object type | |
|
|
158
|
-
| **job_id** | **String** | The bulk job id | |
|
|
159
|
-
|
|
160
|
-
### Return type
|
|
161
|
-
|
|
162
|
-
[**BulkJobResponse**](BulkJobResponse.md)
|
|
163
|
-
|
|
164
|
-
### Authorization
|
|
165
|
-
|
|
166
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
167
|
-
|
|
168
|
-
### HTTP request headers
|
|
169
|
-
|
|
170
|
-
- **Content-Type**: Not defined
|
|
171
|
-
- **Accept**: application/json
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## bulk_get_job_records
|
|
175
|
-
|
|
176
|
-
> <BulkRecordsResponse> bulk_get_job_records(object, job_id, opts)
|
|
177
|
-
|
|
178
|
-
Paginate a bulk job's per-record results
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
### Examples
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
(No example for this operation).
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
#### Using the bulk_get_job_records_with_http_info variant
|
|
188
|
-
|
|
189
|
-
This returns an Array which contains the response data, status code and headers.
|
|
190
|
-
|
|
191
|
-
> <Array(<BulkRecordsResponse>, Integer, Hash)> bulk_get_job_records_with_http_info(object, job_id, opts)
|
|
192
|
-
|
|
193
|
-
```ruby
|
|
194
|
-
begin
|
|
195
|
-
# Paginate a bulk job's per-record results
|
|
196
|
-
data, status_code, headers = api_instance.bulk_get_job_records_with_http_info(object, job_id, opts)
|
|
197
|
-
p status_code # => 2xx
|
|
198
|
-
p headers # => { ... }
|
|
199
|
-
p data # => <BulkRecordsResponse>
|
|
200
|
-
rescue UltracartClient::ApiError => e
|
|
201
|
-
puts "Error when calling BulkApi->bulk_get_job_records_with_http_info: #{e}"
|
|
202
|
-
end
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Parameters
|
|
206
|
-
|
|
207
|
-
| Name | Type | Description | Notes |
|
|
208
|
-
| ---- | ---- | ----------- | ----- |
|
|
209
|
-
| **object** | **String** | Object type | |
|
|
210
|
-
| **job_id** | **String** | The bulk job id | |
|
|
211
|
-
| **status** | **String** | Filter by per-record result status (success, failed, duplicate) | [optional] |
|
|
212
|
-
| **cursor** | **String** | Opaque pagination cursor | [optional] |
|
|
213
|
-
| **limit** | **Integer** | Page size (default 100, max 1000) | [optional] |
|
|
214
|
-
|
|
215
|
-
### Return type
|
|
216
|
-
|
|
217
|
-
[**BulkRecordsResponse**](BulkRecordsResponse.md)
|
|
218
|
-
|
|
219
|
-
### Authorization
|
|
220
|
-
|
|
221
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
222
|
-
|
|
223
|
-
### HTTP request headers
|
|
224
|
-
|
|
225
|
-
- **Content-Type**: Not defined
|
|
226
|
-
- **Accept**: application/json
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
## bulk_list_jobs
|
|
230
|
-
|
|
231
|
-
> <BulkJobsResponse> bulk_list_jobs(object, opts)
|
|
232
|
-
|
|
233
|
-
List bulk jobs for the calling merchant
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
### Examples
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
(No example for this operation).
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
#### Using the bulk_list_jobs_with_http_info variant
|
|
243
|
-
|
|
244
|
-
This returns an Array which contains the response data, status code and headers.
|
|
245
|
-
|
|
246
|
-
> <Array(<BulkJobsResponse>, Integer, Hash)> bulk_list_jobs_with_http_info(object, opts)
|
|
247
|
-
|
|
248
|
-
```ruby
|
|
249
|
-
begin
|
|
250
|
-
# List bulk jobs for the calling merchant
|
|
251
|
-
data, status_code, headers = api_instance.bulk_list_jobs_with_http_info(object, opts)
|
|
252
|
-
p status_code # => 2xx
|
|
253
|
-
p headers # => { ... }
|
|
254
|
-
p data # => <BulkJobsResponse>
|
|
255
|
-
rescue UltracartClient::ApiError => e
|
|
256
|
-
puts "Error when calling BulkApi->bulk_list_jobs_with_http_info: #{e}"
|
|
257
|
-
end
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
### Parameters
|
|
261
|
-
|
|
262
|
-
| Name | Type | Description | Notes |
|
|
263
|
-
| ---- | ---- | ----------- | ----- |
|
|
264
|
-
| **object** | **String** | Object type | |
|
|
265
|
-
| **status** | **String** | Filter by job status | [optional] |
|
|
266
|
-
| **cursor** | **String** | Opaque pagination cursor | [optional] |
|
|
267
|
-
| **limit** | **Integer** | Page size (default 100, max 1000) | [optional] |
|
|
268
|
-
|
|
269
|
-
### Return type
|
|
270
|
-
|
|
271
|
-
[**BulkJobsResponse**](BulkJobsResponse.md)
|
|
272
|
-
|
|
273
|
-
### Authorization
|
|
274
|
-
|
|
275
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
276
|
-
|
|
277
|
-
### HTTP request headers
|
|
278
|
-
|
|
279
|
-
- **Content-Type**: Not defined
|
|
280
|
-
- **Accept**: application/json
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
## bulk_submit_job
|
|
284
|
-
|
|
285
|
-
> <BulkJobResponse> bulk_submit_job(object, bulk_job)
|
|
286
|
-
|
|
287
|
-
Submit a bulk job
|
|
288
|
-
|
|
289
|
-
Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
### Examples
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
(No example for this operation).
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
#### Using the bulk_submit_job_with_http_info variant
|
|
299
|
-
|
|
300
|
-
This returns an Array which contains the response data, status code and headers.
|
|
301
|
-
|
|
302
|
-
> <Array(<BulkJobResponse>, Integer, Hash)> bulk_submit_job_with_http_info(object, bulk_job)
|
|
303
|
-
|
|
304
|
-
```ruby
|
|
305
|
-
begin
|
|
306
|
-
# Submit a bulk job
|
|
307
|
-
data, status_code, headers = api_instance.bulk_submit_job_with_http_info(object, bulk_job)
|
|
308
|
-
p status_code # => 2xx
|
|
309
|
-
p headers # => { ... }
|
|
310
|
-
p data # => <BulkJobResponse>
|
|
311
|
-
rescue UltracartClient::ApiError => e
|
|
312
|
-
puts "Error when calling BulkApi->bulk_submit_job_with_http_info: #{e}"
|
|
313
|
-
end
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
### Parameters
|
|
317
|
-
|
|
318
|
-
| Name | Type | Description | Notes |
|
|
319
|
-
| ---- | ---- | ----------- | ----- |
|
|
320
|
-
| **object** | **String** | Object type | |
|
|
321
|
-
| **bulk_job** | [**BulkJobRequest**](BulkJobRequest.md) | Bulk job submission | |
|
|
322
|
-
|
|
323
|
-
### Return type
|
|
324
|
-
|
|
325
|
-
[**BulkJobResponse**](BulkJobResponse.md)
|
|
326
|
-
|
|
327
|
-
### Authorization
|
|
328
|
-
|
|
329
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
330
|
-
|
|
331
|
-
### HTTP request headers
|
|
332
|
-
|
|
333
|
-
- **Content-Type**: application/json; charset=UTF-8
|
|
334
|
-
- **Accept**: application/json
|
|
335
|
-
|
|
1
|
+
# UltracartClient::BulkApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**bulk_cancel_job**](BulkApi.md#bulk_cancel_job) | **DELETE** /bulk/{object}/{job_id} | Request cancellation of a bulk job |
|
|
8
|
+
| [**bulk_generate_upload_url**](BulkApi.md#bulk_generate_upload_url) | **POST** /bulk/{object}/upload-url | Generate a presigned upload URL for a bulk payload |
|
|
9
|
+
| [**bulk_get_job**](BulkApi.md#bulk_get_job) | **GET** /bulk/{object}/{job_id} | Retrieve a bulk job's status and counts |
|
|
10
|
+
| [**bulk_get_job_records**](BulkApi.md#bulk_get_job_records) | **GET** /bulk/{object}/{job_id}/records | Paginate a bulk job's per-record results |
|
|
11
|
+
| [**bulk_list_jobs**](BulkApi.md#bulk_list_jobs) | **GET** /bulk/{object} | List bulk jobs for the calling merchant |
|
|
12
|
+
| [**bulk_submit_job**](BulkApi.md#bulk_submit_job) | **POST** /bulk/{object} | Submit a bulk job |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## bulk_cancel_job
|
|
16
|
+
|
|
17
|
+
> bulk_cancel_job(object, job_id)
|
|
18
|
+
|
|
19
|
+
Request cancellation of a bulk job
|
|
20
|
+
|
|
21
|
+
Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Examples
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
(No example for this operation).
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### Using the bulk_cancel_job_with_http_info variant
|
|
31
|
+
|
|
32
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
33
|
+
|
|
34
|
+
> <Array(nil, Integer, Hash)> bulk_cancel_job_with_http_info(object, job_id)
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
begin
|
|
38
|
+
# Request cancellation of a bulk job
|
|
39
|
+
data, status_code, headers = api_instance.bulk_cancel_job_with_http_info(object, job_id)
|
|
40
|
+
p status_code # => 2xx
|
|
41
|
+
p headers # => { ... }
|
|
42
|
+
p data # => nil
|
|
43
|
+
rescue UltracartClient::ApiError => e
|
|
44
|
+
puts "Error when calling BulkApi->bulk_cancel_job_with_http_info: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
| ---- | ---- | ----------- | ----- |
|
|
52
|
+
| **object** | **String** | Object type | |
|
|
53
|
+
| **job_id** | **String** | The bulk job id | |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
nil (empty response body)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: Not defined
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## bulk_generate_upload_url
|
|
70
|
+
|
|
71
|
+
> <BulkUploadUrlResponse> bulk_generate_upload_url(object)
|
|
72
|
+
|
|
73
|
+
Generate a presigned upload URL for a bulk payload
|
|
74
|
+
|
|
75
|
+
Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Examples
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
(No example for this operation).
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
#### Using the bulk_generate_upload_url_with_http_info variant
|
|
85
|
+
|
|
86
|
+
This returns an Array which contains the response data, status code and headers.
|
|
87
|
+
|
|
88
|
+
> <Array(<BulkUploadUrlResponse>, Integer, Hash)> bulk_generate_upload_url_with_http_info(object)
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
begin
|
|
92
|
+
# Generate a presigned upload URL for a bulk payload
|
|
93
|
+
data, status_code, headers = api_instance.bulk_generate_upload_url_with_http_info(object)
|
|
94
|
+
p status_code # => 2xx
|
|
95
|
+
p headers # => { ... }
|
|
96
|
+
p data # => <BulkUploadUrlResponse>
|
|
97
|
+
rescue UltracartClient::ApiError => e
|
|
98
|
+
puts "Error when calling BulkApi->bulk_generate_upload_url_with_http_info: #{e}"
|
|
99
|
+
end
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Parameters
|
|
103
|
+
|
|
104
|
+
| Name | Type | Description | Notes |
|
|
105
|
+
| ---- | ---- | ----------- | ----- |
|
|
106
|
+
| **object** | **String** | Object type | |
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
[**BulkUploadUrlResponse**](BulkUploadUrlResponse.md)
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## bulk_get_job
|
|
123
|
+
|
|
124
|
+
> <BulkJobResponse> bulk_get_job(object, job_id)
|
|
125
|
+
|
|
126
|
+
Retrieve a bulk job's status and counts
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Examples
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
(No example for this operation).
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
#### Using the bulk_get_job_with_http_info variant
|
|
136
|
+
|
|
137
|
+
This returns an Array which contains the response data, status code and headers.
|
|
138
|
+
|
|
139
|
+
> <Array(<BulkJobResponse>, Integer, Hash)> bulk_get_job_with_http_info(object, job_id)
|
|
140
|
+
|
|
141
|
+
```ruby
|
|
142
|
+
begin
|
|
143
|
+
# Retrieve a bulk job's status and counts
|
|
144
|
+
data, status_code, headers = api_instance.bulk_get_job_with_http_info(object, job_id)
|
|
145
|
+
p status_code # => 2xx
|
|
146
|
+
p headers # => { ... }
|
|
147
|
+
p data # => <BulkJobResponse>
|
|
148
|
+
rescue UltracartClient::ApiError => e
|
|
149
|
+
puts "Error when calling BulkApi->bulk_get_job_with_http_info: #{e}"
|
|
150
|
+
end
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
| Name | Type | Description | Notes |
|
|
156
|
+
| ---- | ---- | ----------- | ----- |
|
|
157
|
+
| **object** | **String** | Object type | |
|
|
158
|
+
| **job_id** | **String** | The bulk job id | |
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
[**BulkJobResponse**](BulkJobResponse.md)
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: Not defined
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## bulk_get_job_records
|
|
175
|
+
|
|
176
|
+
> <BulkRecordsResponse> bulk_get_job_records(object, job_id, opts)
|
|
177
|
+
|
|
178
|
+
Paginate a bulk job's per-record results
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Examples
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
(No example for this operation).
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
#### Using the bulk_get_job_records_with_http_info variant
|
|
188
|
+
|
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
|
190
|
+
|
|
191
|
+
> <Array(<BulkRecordsResponse>, Integer, Hash)> bulk_get_job_records_with_http_info(object, job_id, opts)
|
|
192
|
+
|
|
193
|
+
```ruby
|
|
194
|
+
begin
|
|
195
|
+
# Paginate a bulk job's per-record results
|
|
196
|
+
data, status_code, headers = api_instance.bulk_get_job_records_with_http_info(object, job_id, opts)
|
|
197
|
+
p status_code # => 2xx
|
|
198
|
+
p headers # => { ... }
|
|
199
|
+
p data # => <BulkRecordsResponse>
|
|
200
|
+
rescue UltracartClient::ApiError => e
|
|
201
|
+
puts "Error when calling BulkApi->bulk_get_job_records_with_http_info: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | Notes |
|
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
|
209
|
+
| **object** | **String** | Object type | |
|
|
210
|
+
| **job_id** | **String** | The bulk job id | |
|
|
211
|
+
| **status** | **String** | Filter by per-record result status (success, failed, duplicate) | [optional] |
|
|
212
|
+
| **cursor** | **String** | Opaque pagination cursor | [optional] |
|
|
213
|
+
| **limit** | **Integer** | Page size (default 100, max 1000) | [optional] |
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
[**BulkRecordsResponse**](BulkRecordsResponse.md)
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: Not defined
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## bulk_list_jobs
|
|
230
|
+
|
|
231
|
+
> <BulkJobsResponse> bulk_list_jobs(object, opts)
|
|
232
|
+
|
|
233
|
+
List bulk jobs for the calling merchant
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### Examples
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
(No example for this operation).
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
#### Using the bulk_list_jobs_with_http_info variant
|
|
243
|
+
|
|
244
|
+
This returns an Array which contains the response data, status code and headers.
|
|
245
|
+
|
|
246
|
+
> <Array(<BulkJobsResponse>, Integer, Hash)> bulk_list_jobs_with_http_info(object, opts)
|
|
247
|
+
|
|
248
|
+
```ruby
|
|
249
|
+
begin
|
|
250
|
+
# List bulk jobs for the calling merchant
|
|
251
|
+
data, status_code, headers = api_instance.bulk_list_jobs_with_http_info(object, opts)
|
|
252
|
+
p status_code # => 2xx
|
|
253
|
+
p headers # => { ... }
|
|
254
|
+
p data # => <BulkJobsResponse>
|
|
255
|
+
rescue UltracartClient::ApiError => e
|
|
256
|
+
puts "Error when calling BulkApi->bulk_list_jobs_with_http_info: #{e}"
|
|
257
|
+
end
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Parameters
|
|
261
|
+
|
|
262
|
+
| Name | Type | Description | Notes |
|
|
263
|
+
| ---- | ---- | ----------- | ----- |
|
|
264
|
+
| **object** | **String** | Object type | |
|
|
265
|
+
| **status** | **String** | Filter by job status | [optional] |
|
|
266
|
+
| **cursor** | **String** | Opaque pagination cursor | [optional] |
|
|
267
|
+
| **limit** | **Integer** | Page size (default 100, max 1000) | [optional] |
|
|
268
|
+
|
|
269
|
+
### Return type
|
|
270
|
+
|
|
271
|
+
[**BulkJobsResponse**](BulkJobsResponse.md)
|
|
272
|
+
|
|
273
|
+
### Authorization
|
|
274
|
+
|
|
275
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
276
|
+
|
|
277
|
+
### HTTP request headers
|
|
278
|
+
|
|
279
|
+
- **Content-Type**: Not defined
|
|
280
|
+
- **Accept**: application/json
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## bulk_submit_job
|
|
284
|
+
|
|
285
|
+
> <BulkJobResponse> bulk_submit_job(object, bulk_job)
|
|
286
|
+
|
|
287
|
+
Submit a bulk job
|
|
288
|
+
|
|
289
|
+
Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### Examples
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
(No example for this operation).
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
#### Using the bulk_submit_job_with_http_info variant
|
|
299
|
+
|
|
300
|
+
This returns an Array which contains the response data, status code and headers.
|
|
301
|
+
|
|
302
|
+
> <Array(<BulkJobResponse>, Integer, Hash)> bulk_submit_job_with_http_info(object, bulk_job)
|
|
303
|
+
|
|
304
|
+
```ruby
|
|
305
|
+
begin
|
|
306
|
+
# Submit a bulk job
|
|
307
|
+
data, status_code, headers = api_instance.bulk_submit_job_with_http_info(object, bulk_job)
|
|
308
|
+
p status_code # => 2xx
|
|
309
|
+
p headers # => { ... }
|
|
310
|
+
p data # => <BulkJobResponse>
|
|
311
|
+
rescue UltracartClient::ApiError => e
|
|
312
|
+
puts "Error when calling BulkApi->bulk_submit_job_with_http_info: #{e}"
|
|
313
|
+
end
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Parameters
|
|
317
|
+
|
|
318
|
+
| Name | Type | Description | Notes |
|
|
319
|
+
| ---- | ---- | ----------- | ----- |
|
|
320
|
+
| **object** | **String** | Object type | |
|
|
321
|
+
| **bulk_job** | [**BulkJobRequest**](BulkJobRequest.md) | Bulk job submission | |
|
|
322
|
+
|
|
323
|
+
### Return type
|
|
324
|
+
|
|
325
|
+
[**BulkJobResponse**](BulkJobResponse.md)
|
|
326
|
+
|
|
327
|
+
### Authorization
|
|
328
|
+
|
|
329
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
330
|
+
|
|
331
|
+
### HTTP request headers
|
|
332
|
+
|
|
333
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
334
|
+
- **Accept**: application/json
|
|
335
|
+
|