ultracart_api 4.1.207 → 4.1.209
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/README.md +28 -2
- data/docs/SfvbApi.md +773 -48
- data/docs/SfvbArchiveRequest.md +18 -0
- data/docs/SfvbCampaign.md +16 -0
- data/docs/SfvbCampaignMembership.md +24 -0
- data/docs/SfvbCampaignWriteRequest.md +32 -0
- data/docs/SfvbCommsEmail.md +6 -0
- data/docs/SfvbCommsList.md +24 -0
- data/docs/SfvbCommsListsResponse.md +18 -0
- data/docs/SfvbCommsSegment.md +26 -0
- data/docs/SfvbCommsSegmentsResponse.md +18 -0
- data/docs/SfvbEmail.md +40 -0
- data/docs/SfvbEmailUpdateRequest.md +20 -0
- data/docs/SfvbFlow.md +22 -0
- data/docs/SfvbFlowStatusRequest.md +18 -0
- data/docs/SfvbFlowWriteRequest.md +38 -0
- data/lib/ultracart_api/api/sfvb_api.rb +5346 -4330
- data/lib/ultracart_api/models/item_third_party_email_marketing.rb +2 -2
- data/lib/ultracart_api/models/sfvb_archive_request.rb +220 -0
- data/lib/ultracart_api/models/sfvb_campaign.rb +85 -1
- data/lib/ultracart_api/models/sfvb_campaign_membership.rb +250 -0
- data/lib/ultracart_api/models/sfvb_campaign_write_request.rb +292 -0
- data/lib/ultracart_api/models/sfvb_comms_email.rb +31 -1
- data/lib/ultracart_api/models/sfvb_comms_list.rb +250 -0
- data/lib/ultracart_api/models/sfvb_comms_lists_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_comms_segment.rb +260 -0
- data/lib/ultracart_api/models/sfvb_comms_segments_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_email.rb +330 -0
- data/lib/ultracart_api/models/sfvb_email_update_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_flow.rb +113 -1
- data/lib/ultracart_api/models/sfvb_flow_status_request.rb +254 -0
- data/lib/ultracart_api/models/sfvb_flow_write_request.rb +354 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +11 -0
- metadata +24 -2
data/docs/SfvbApi.md
CHANGED
|
@@ -6,11 +6,17 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**add_sfvb_page_blog_posts**](SfvbApi.md#add_sfvb_page_blog_posts) | **POST** /sfvb/storefronts/{storefront_oid}/pages/blog_posts/add | Assign blog posts to a page |
|
|
8
8
|
| [**add_sfvb_page_items**](SfvbApi.md#add_sfvb_page_items) | **POST** /sfvb/storefronts/{storefront_oid}/pages/items/add | Assign items to a page |
|
|
9
|
+
| [**archive_sfvb_campaign**](SfvbApi.md#archive_sfvb_campaign) | **PUT** /sfvb/storefronts/{storefront_oid}/campaigns/{campaign_uuid}/archive | Archive or unarchive a campaign |
|
|
10
|
+
| [**archive_sfvb_flow**](SfvbApi.md#archive_sfvb_flow) | **PUT** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid}/archive | Archive or unarchive a flow |
|
|
9
11
|
| [**archive_sfvb_upsell_path**](SfvbApi.md#archive_sfvb_upsell_path) | **POST** /sfvb/storefronts/{storefront_oid}/upsell_paths/{upsell_path_oid}/archive | Archive an upsell path |
|
|
10
12
|
| [**attach_sfvb_blog_post_image**](SfvbApi.md#attach_sfvb_blog_post_image) | **POST** /sfvb/storefronts/{storefront_oid}/blog_posts/{blog_post_oid}/images/attach | Attach an image to a blog post |
|
|
11
13
|
| [**check_sfvb_redirect**](SfvbApi.md#check_sfvb_redirect) | **POST** /sfvb/storefronts/{storefront_oid}/redirects/check | Check a redirect rule without creating it |
|
|
12
14
|
| [**clear_sfvb_library_screenshot**](SfvbApi.md#clear_sfvb_library_screenshot) | **DELETE** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/screenshot | Remove a library entry's screenshot |
|
|
15
|
+
| [**clone_sfvb_campaign**](SfvbApi.md#clone_sfvb_campaign) | **POST** /sfvb/storefronts/{storefront_oid}/campaigns/{campaign_uuid}/clone | Copy a campaign on the same storefront |
|
|
16
|
+
| [**clone_sfvb_flow**](SfvbApi.md#clone_sfvb_flow) | **POST** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid}/clone | Copy a flow on the same storefront |
|
|
13
17
|
| [**compile_sfvb_cjson**](SfvbApi.md#compile_sfvb_cjson) | **POST** /sfvb/cjson/compile | Compile CJSON to Velocity |
|
|
18
|
+
| [**create_sfvb_campaign**](SfvbApi.md#create_sfvb_campaign) | **POST** /sfvb/storefronts/{storefront_oid}/campaigns | Create a draft campaign |
|
|
19
|
+
| [**create_sfvb_flow**](SfvbApi.md#create_sfvb_flow) | **POST** /sfvb/storefronts/{storefront_oid}/flows | Create a draft flow |
|
|
14
20
|
| [**create_sfvb_library_entry**](SfvbApi.md#create_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library | Save a fragment to the library |
|
|
15
21
|
| [**create_sfvb_preview_access**](SfvbApi.md#create_sfvb_preview_access) | **POST** /sfvb/storefronts/{storefront_oid}/preview_access | One time link that opens a preview in a browser with no UltraCart login |
|
|
16
22
|
| [**create_sfvb_preview_session**](SfvbApi.md#create_sfvb_preview_session) | **POST** /sfvb/storefronts/{storefront_oid}/preview_sessions | Create a preview session |
|
|
@@ -56,6 +62,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
56
62
|
| [**get_sfvb_container**](SfvbApi.md#get_sfvb_container) | **GET** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id} | Read a container stored outside the file system |
|
|
57
63
|
| [**get_sfvb_container_version**](SfvbApi.md#get_sfvb_container_version) | **GET** /sfvb/storefronts/{storefront_oid}/container_versions/{container_history_oid} | Read the CJSON stored in one container history entry |
|
|
58
64
|
| [**get_sfvb_element**](SfvbApi.md#get_sfvb_element) | **GET** /sfvb/elements/{element_type} | Configuration schema and field card for one element type |
|
|
65
|
+
| [**get_sfvb_email**](SfvbApi.md#get_sfvb_email) | **GET** /sfvb/storefronts/{storefront_oid}/emails/{email_uuid} | Get a flow or campaign email's subject and preview text |
|
|
59
66
|
| [**get_sfvb_events**](SfvbApi.md#get_sfvb_events) | **GET** /sfvb/events | Replay events |
|
|
60
67
|
| [**get_sfvb_events_authorization**](SfvbApi.md#get_sfvb_events_authorization) | **PUT** /sfvb/events/auth | Open the event stream |
|
|
61
68
|
| [**get_sfvb_experiment**](SfvbApi.md#get_sfvb_experiment) | **GET** /sfvb/storefronts/{storefront_oid}/experiments/{experiment_oid} | Read one experiment and its statistics |
|
|
@@ -118,6 +125,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
118
125
|
| [**install_sfvb_library_entry**](SfvbApi.md#install_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/install | Install a library entry into a storefront |
|
|
119
126
|
| [**list_sfvb_blog_posts**](SfvbApi.md#list_sfvb_blog_posts) | **GET** /sfvb/storefronts/{storefront_oid}/blog_posts | List the storefront's blog posts |
|
|
120
127
|
| [**list_sfvb_campaigns**](SfvbApi.md#list_sfvb_campaigns) | **GET** /sfvb/storefronts/{storefront_oid}/campaigns | List the storefront's campaigns |
|
|
128
|
+
| [**list_sfvb_comms_lists**](SfvbApi.md#list_sfvb_comms_lists) | **GET** /sfvb/storefronts/{storefront_oid}/lists | List the storefront's email lists |
|
|
129
|
+
| [**list_sfvb_comms_segments**](SfvbApi.md#list_sfvb_comms_segments) | **GET** /sfvb/storefronts/{storefront_oid}/segments | List the storefront's segments |
|
|
121
130
|
| [**list_sfvb_container_versions**](SfvbApi.md#list_sfvb_container_versions) | **GET** /sfvb/storefronts/{storefront_oid}/container_versions | Version history for a container stored outside the file system |
|
|
122
131
|
| [**list_sfvb_elements**](SfvbApi.md#list_sfvb_elements) | **GET** /sfvb/elements | List every SFVB element type |
|
|
123
132
|
| [**list_sfvb_experiments**](SfvbApi.md#list_sfvb_experiments) | **GET** /sfvb/storefronts/{storefront_oid}/experiments | List the storefront's experiments |
|
|
@@ -182,8 +191,12 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
182
191
|
| [**unpublish_sfvb_library_entry**](SfvbApi.md#unpublish_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/unpublish | Narrow who can see a library entry |
|
|
183
192
|
| [**unshare_sfvb_library_entry**](SfvbApi.md#unshare_sfvb_library_entry) | **DELETE** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/shares/{merchant_id} | Stop sharing a library entry with an account |
|
|
184
193
|
| [**update_sfvb_blog_post**](SfvbApi.md#update_sfvb_blog_post) | **PUT** /sfvb/storefronts/{storefront_oid}/blog_posts/{blog_post_oid} | Change a blog post |
|
|
194
|
+
| [**update_sfvb_campaign**](SfvbApi.md#update_sfvb_campaign) | **PUT** /sfvb/storefronts/{storefront_oid}/campaigns/{campaign_uuid} | Change a campaign |
|
|
185
195
|
| [**update_sfvb_comms_sending_domain**](SfvbApi.md#update_sfvb_comms_sending_domain) | **PUT** /sfvb/comms/sending_domains/{domain} | Update a sending domain |
|
|
186
196
|
| [**update_sfvb_comms_twilio_account**](SfvbApi.md#update_sfvb_comms_twilio_account) | **PUT** /sfvb/comms/twilio_account | Update the Twilio account |
|
|
197
|
+
| [**update_sfvb_email**](SfvbApi.md#update_sfvb_email) | **PUT** /sfvb/storefronts/{storefront_oid}/emails/{email_uuid} | Change a flow or campaign email's subject or preview text |
|
|
198
|
+
| [**update_sfvb_flow**](SfvbApi.md#update_sfvb_flow) | **PUT** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid} | Change a flow |
|
|
199
|
+
| [**update_sfvb_flow_status**](SfvbApi.md#update_sfvb_flow_status) | **PUT** /sfvb/storefronts/{storefront_oid}/flows/{flow_uuid}/status | Turn a flow on or off |
|
|
187
200
|
| [**update_sfvb_item_attribute_batch**](SfvbApi.md#update_sfvb_item_attribute_batch) | **POST** /sfvb/storefronts/{storefront_oid}/items/attributes/batch | Change attributes across many items in one call |
|
|
188
201
|
| [**update_sfvb_library_entry**](SfvbApi.md#update_sfvb_library_entry) | **PUT** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Update a library entry's draft |
|
|
189
202
|
| [**update_sfvb_redirect**](SfvbApi.md#update_sfvb_redirect) | **PUT** /sfvb/storefronts/{storefront_oid}/redirects/{redirect_id} | Change a redirect rule |
|
|
@@ -304,6 +317,118 @@ end
|
|
|
304
317
|
- **Accept**: application/json
|
|
305
318
|
|
|
306
319
|
|
|
320
|
+
## archive_sfvb_campaign
|
|
321
|
+
|
|
322
|
+
> <SfvbCampaign> archive_sfvb_campaign(storefront_oid, campaign_uuid, if_match, archive_request)
|
|
323
|
+
|
|
324
|
+
Archive or unarchive a campaign
|
|
325
|
+
|
|
326
|
+
Archiving alone never stops a send, so archiving a scheduled campaign also sets it back to draft, and notes says so. A campaign whose send is under way is refused with sfvb.campaign_sending. Send the hash_sha256 you read as If-Match. A scheduled, sending or sent campaign needs sfvb_publish.
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Examples
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
(No example for this operation).
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
#### Using the archive_sfvb_campaign_with_http_info variant
|
|
336
|
+
|
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
|
338
|
+
|
|
339
|
+
> <Array(<SfvbCampaign>, Integer, Hash)> archive_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid, if_match, archive_request)
|
|
340
|
+
|
|
341
|
+
```ruby
|
|
342
|
+
begin
|
|
343
|
+
# Archive or unarchive a campaign
|
|
344
|
+
data, status_code, headers = api_instance.archive_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid, if_match, archive_request)
|
|
345
|
+
p status_code # => 2xx
|
|
346
|
+
p headers # => { ... }
|
|
347
|
+
p data # => <SfvbCampaign>
|
|
348
|
+
rescue UltracartClient::ApiError => e
|
|
349
|
+
puts "Error when calling SfvbApi->archive_sfvb_campaign_with_http_info: #{e}"
|
|
350
|
+
end
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
| Name | Type | Description | Notes |
|
|
356
|
+
| ---- | ---- | ----------- | ----- |
|
|
357
|
+
| **storefront_oid** | **Integer** | | |
|
|
358
|
+
| **campaign_uuid** | **String** | | |
|
|
359
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
360
|
+
| **archive_request** | [**SfvbArchiveRequest**](SfvbArchiveRequest.md) | Whether to archive | |
|
|
361
|
+
|
|
362
|
+
### Return type
|
|
363
|
+
|
|
364
|
+
[**SfvbCampaign**](SfvbCampaign.md)
|
|
365
|
+
|
|
366
|
+
### Authorization
|
|
367
|
+
|
|
368
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
369
|
+
|
|
370
|
+
### HTTP request headers
|
|
371
|
+
|
|
372
|
+
- **Content-Type**: application/json
|
|
373
|
+
- **Accept**: application/json
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
## archive_sfvb_flow
|
|
377
|
+
|
|
378
|
+
> <SfvbFlow> archive_sfvb_flow(storefront_oid, flow_uuid, if_match, archive_request)
|
|
379
|
+
|
|
380
|
+
Archive or unarchive a flow
|
|
381
|
+
|
|
382
|
+
A flow that is still enrolling customers is refused, because archiving would only hide it. Set its status to inactive first. Send the hash_sha256 you read as If-Match.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Examples
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
(No example for this operation).
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
#### Using the archive_sfvb_flow_with_http_info variant
|
|
392
|
+
|
|
393
|
+
This returns an Array which contains the response data, status code and headers.
|
|
394
|
+
|
|
395
|
+
> <Array(<SfvbFlow>, Integer, Hash)> archive_sfvb_flow_with_http_info(storefront_oid, flow_uuid, if_match, archive_request)
|
|
396
|
+
|
|
397
|
+
```ruby
|
|
398
|
+
begin
|
|
399
|
+
# Archive or unarchive a flow
|
|
400
|
+
data, status_code, headers = api_instance.archive_sfvb_flow_with_http_info(storefront_oid, flow_uuid, if_match, archive_request)
|
|
401
|
+
p status_code # => 2xx
|
|
402
|
+
p headers # => { ... }
|
|
403
|
+
p data # => <SfvbFlow>
|
|
404
|
+
rescue UltracartClient::ApiError => e
|
|
405
|
+
puts "Error when calling SfvbApi->archive_sfvb_flow_with_http_info: #{e}"
|
|
406
|
+
end
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### Parameters
|
|
410
|
+
|
|
411
|
+
| Name | Type | Description | Notes |
|
|
412
|
+
| ---- | ---- | ----------- | ----- |
|
|
413
|
+
| **storefront_oid** | **Integer** | | |
|
|
414
|
+
| **flow_uuid** | **String** | | |
|
|
415
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
416
|
+
| **archive_request** | [**SfvbArchiveRequest**](SfvbArchiveRequest.md) | Whether to archive | |
|
|
417
|
+
|
|
418
|
+
### Return type
|
|
419
|
+
|
|
420
|
+
[**SfvbFlow**](SfvbFlow.md)
|
|
421
|
+
|
|
422
|
+
### Authorization
|
|
423
|
+
|
|
424
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
425
|
+
|
|
426
|
+
### HTTP request headers
|
|
427
|
+
|
|
428
|
+
- **Content-Type**: application/json
|
|
429
|
+
- **Accept**: application/json
|
|
430
|
+
|
|
431
|
+
|
|
307
432
|
## archive_sfvb_upsell_path
|
|
308
433
|
|
|
309
434
|
> <SfvbUpsellPath> archive_sfvb_upsell_path(storefront_oid, upsell_path_oid)
|
|
@@ -522,6 +647,114 @@ end
|
|
|
522
647
|
- **Accept**: application/json
|
|
523
648
|
|
|
524
649
|
|
|
650
|
+
## clone_sfvb_campaign
|
|
651
|
+
|
|
652
|
+
> <SfvbCampaign> clone_sfvb_campaign(storefront_oid, campaign_uuid)
|
|
653
|
+
|
|
654
|
+
Copy a campaign on the same storefront
|
|
655
|
+
|
|
656
|
+
A draft copy with copies of its emails and postcards, named Copy of and the original name, never archived and never scheduled. Steps keep their settings, including a paused rate limiter or an experiment winner, and notes names each one.
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
### Examples
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
(No example for this operation).
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
#### Using the clone_sfvb_campaign_with_http_info variant
|
|
666
|
+
|
|
667
|
+
This returns an Array which contains the response data, status code and headers.
|
|
668
|
+
|
|
669
|
+
> <Array(<SfvbCampaign>, Integer, Hash)> clone_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid)
|
|
670
|
+
|
|
671
|
+
```ruby
|
|
672
|
+
begin
|
|
673
|
+
# Copy a campaign on the same storefront
|
|
674
|
+
data, status_code, headers = api_instance.clone_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid)
|
|
675
|
+
p status_code # => 2xx
|
|
676
|
+
p headers # => { ... }
|
|
677
|
+
p data # => <SfvbCampaign>
|
|
678
|
+
rescue UltracartClient::ApiError => e
|
|
679
|
+
puts "Error when calling SfvbApi->clone_sfvb_campaign_with_http_info: #{e}"
|
|
680
|
+
end
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
### Parameters
|
|
684
|
+
|
|
685
|
+
| Name | Type | Description | Notes |
|
|
686
|
+
| ---- | ---- | ----------- | ----- |
|
|
687
|
+
| **storefront_oid** | **Integer** | | |
|
|
688
|
+
| **campaign_uuid** | **String** | | |
|
|
689
|
+
|
|
690
|
+
### Return type
|
|
691
|
+
|
|
692
|
+
[**SfvbCampaign**](SfvbCampaign.md)
|
|
693
|
+
|
|
694
|
+
### Authorization
|
|
695
|
+
|
|
696
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
697
|
+
|
|
698
|
+
### HTTP request headers
|
|
699
|
+
|
|
700
|
+
- **Content-Type**: Not defined
|
|
701
|
+
- **Accept**: application/json
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
## clone_sfvb_flow
|
|
705
|
+
|
|
706
|
+
> <SfvbFlow> clone_sfvb_flow(storefront_oid, flow_uuid)
|
|
707
|
+
|
|
708
|
+
Copy a flow on the same storefront
|
|
709
|
+
|
|
710
|
+
A draft copy with copies of its emails and postcards, named Copy of and the original name, never archived. It enrolls nobody until it is turned on. Steps keep their settings, including a paused rate limiter or an experiment winner, and notes names each one.
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
### Examples
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
(No example for this operation).
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
#### Using the clone_sfvb_flow_with_http_info variant
|
|
720
|
+
|
|
721
|
+
This returns an Array which contains the response data, status code and headers.
|
|
722
|
+
|
|
723
|
+
> <Array(<SfvbFlow>, Integer, Hash)> clone_sfvb_flow_with_http_info(storefront_oid, flow_uuid)
|
|
724
|
+
|
|
725
|
+
```ruby
|
|
726
|
+
begin
|
|
727
|
+
# Copy a flow on the same storefront
|
|
728
|
+
data, status_code, headers = api_instance.clone_sfvb_flow_with_http_info(storefront_oid, flow_uuid)
|
|
729
|
+
p status_code # => 2xx
|
|
730
|
+
p headers # => { ... }
|
|
731
|
+
p data # => <SfvbFlow>
|
|
732
|
+
rescue UltracartClient::ApiError => e
|
|
733
|
+
puts "Error when calling SfvbApi->clone_sfvb_flow_with_http_info: #{e}"
|
|
734
|
+
end
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
### Parameters
|
|
738
|
+
|
|
739
|
+
| Name | Type | Description | Notes |
|
|
740
|
+
| ---- | ---- | ----------- | ----- |
|
|
741
|
+
| **storefront_oid** | **Integer** | | |
|
|
742
|
+
| **flow_uuid** | **String** | | |
|
|
743
|
+
|
|
744
|
+
### Return type
|
|
745
|
+
|
|
746
|
+
[**SfvbFlow**](SfvbFlow.md)
|
|
747
|
+
|
|
748
|
+
### Authorization
|
|
749
|
+
|
|
750
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
751
|
+
|
|
752
|
+
### HTTP request headers
|
|
753
|
+
|
|
754
|
+
- **Content-Type**: Not defined
|
|
755
|
+
- **Accept**: application/json
|
|
756
|
+
|
|
757
|
+
|
|
525
758
|
## compile_sfvb_cjson
|
|
526
759
|
|
|
527
760
|
> <SfvbCompileResponse> compile_sfvb_cjson(compile_request)
|
|
@@ -575,6 +808,114 @@ end
|
|
|
575
808
|
- **Accept**: application/json
|
|
576
809
|
|
|
577
810
|
|
|
811
|
+
## create_sfvb_campaign
|
|
812
|
+
|
|
813
|
+
> <SfvbCampaign> create_sfvb_campaign(storefront_oid, campaign_write_request)
|
|
814
|
+
|
|
815
|
+
Create a draft campaign
|
|
816
|
+
|
|
817
|
+
A new draft campaign with an empty communication sequence. name is required. The sender defaults to the storefront's marketing sending settings. Nothing here starts a campaign.
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
### Examples
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
(No example for this operation).
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
#### Using the create_sfvb_campaign_with_http_info variant
|
|
827
|
+
|
|
828
|
+
This returns an Array which contains the response data, status code and headers.
|
|
829
|
+
|
|
830
|
+
> <Array(<SfvbCampaign>, Integer, Hash)> create_sfvb_campaign_with_http_info(storefront_oid, campaign_write_request)
|
|
831
|
+
|
|
832
|
+
```ruby
|
|
833
|
+
begin
|
|
834
|
+
# Create a draft campaign
|
|
835
|
+
data, status_code, headers = api_instance.create_sfvb_campaign_with_http_info(storefront_oid, campaign_write_request)
|
|
836
|
+
p status_code # => 2xx
|
|
837
|
+
p headers # => { ... }
|
|
838
|
+
p data # => <SfvbCampaign>
|
|
839
|
+
rescue UltracartClient::ApiError => e
|
|
840
|
+
puts "Error when calling SfvbApi->create_sfvb_campaign_with_http_info: #{e}"
|
|
841
|
+
end
|
|
842
|
+
```
|
|
843
|
+
|
|
844
|
+
### Parameters
|
|
845
|
+
|
|
846
|
+
| Name | Type | Description | Notes |
|
|
847
|
+
| ---- | ---- | ----------- | ----- |
|
|
848
|
+
| **storefront_oid** | **Integer** | | |
|
|
849
|
+
| **campaign_write_request** | [**SfvbCampaignWriteRequest**](SfvbCampaignWriteRequest.md) | The campaign to create | |
|
|
850
|
+
|
|
851
|
+
### Return type
|
|
852
|
+
|
|
853
|
+
[**SfvbCampaign**](SfvbCampaign.md)
|
|
854
|
+
|
|
855
|
+
### Authorization
|
|
856
|
+
|
|
857
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
858
|
+
|
|
859
|
+
### HTTP request headers
|
|
860
|
+
|
|
861
|
+
- **Content-Type**: application/json
|
|
862
|
+
- **Accept**: application/json
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
## create_sfvb_flow
|
|
866
|
+
|
|
867
|
+
> <SfvbFlow> create_sfvb_flow(storefront_oid, flow_write_request)
|
|
868
|
+
|
|
869
|
+
Create a draft flow
|
|
870
|
+
|
|
871
|
+
A new draft flow with an empty communication sequence. name and trigger_type are required. A list or segment trigger needs trigger_parameter, the uuid of a list or segment on this storefront. The sender defaults to the storefront's marketing sending settings. A draft flow enrolls nobody until it is turned on.
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
### Examples
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
(No example for this operation).
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
#### Using the create_sfvb_flow_with_http_info variant
|
|
881
|
+
|
|
882
|
+
This returns an Array which contains the response data, status code and headers.
|
|
883
|
+
|
|
884
|
+
> <Array(<SfvbFlow>, Integer, Hash)> create_sfvb_flow_with_http_info(storefront_oid, flow_write_request)
|
|
885
|
+
|
|
886
|
+
```ruby
|
|
887
|
+
begin
|
|
888
|
+
# Create a draft flow
|
|
889
|
+
data, status_code, headers = api_instance.create_sfvb_flow_with_http_info(storefront_oid, flow_write_request)
|
|
890
|
+
p status_code # => 2xx
|
|
891
|
+
p headers # => { ... }
|
|
892
|
+
p data # => <SfvbFlow>
|
|
893
|
+
rescue UltracartClient::ApiError => e
|
|
894
|
+
puts "Error when calling SfvbApi->create_sfvb_flow_with_http_info: #{e}"
|
|
895
|
+
end
|
|
896
|
+
```
|
|
897
|
+
|
|
898
|
+
### Parameters
|
|
899
|
+
|
|
900
|
+
| Name | Type | Description | Notes |
|
|
901
|
+
| ---- | ---- | ----------- | ----- |
|
|
902
|
+
| **storefront_oid** | **Integer** | | |
|
|
903
|
+
| **flow_write_request** | [**SfvbFlowWriteRequest**](SfvbFlowWriteRequest.md) | The flow to create | |
|
|
904
|
+
|
|
905
|
+
### Return type
|
|
906
|
+
|
|
907
|
+
[**SfvbFlow**](SfvbFlow.md)
|
|
908
|
+
|
|
909
|
+
### Authorization
|
|
910
|
+
|
|
911
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
912
|
+
|
|
913
|
+
### HTTP request headers
|
|
914
|
+
|
|
915
|
+
- **Content-Type**: application/json
|
|
916
|
+
- **Accept**: application/json
|
|
917
|
+
|
|
918
|
+
|
|
578
919
|
## create_sfvb_library_entry
|
|
579
920
|
|
|
580
921
|
> <SfvbLibraryEntry> create_sfvb_library_entry(storefront_oid, library_entry)
|
|
@@ -3015,6 +3356,60 @@ end
|
|
|
3015
3356
|
- **Accept**: application/json
|
|
3016
3357
|
|
|
3017
3358
|
|
|
3359
|
+
## get_sfvb_email
|
|
3360
|
+
|
|
3361
|
+
> <SfvbEmail> get_sfvb_email(storefront_oid, email_uuid)
|
|
3362
|
+
|
|
3363
|
+
Get a flow or campaign email's subject and preview text
|
|
3364
|
+
|
|
3365
|
+
The subject, preview text and hash_sha256 to send as If-Match when updating them, with whether the email is live and its review state. The body is the email container (owner type email). Find the uuid in the storefront's campaigns and flows.
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
### Examples
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
(No example for this operation).
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
#### Using the get_sfvb_email_with_http_info variant
|
|
3375
|
+
|
|
3376
|
+
This returns an Array which contains the response data, status code and headers.
|
|
3377
|
+
|
|
3378
|
+
> <Array(<SfvbEmail>, Integer, Hash)> get_sfvb_email_with_http_info(storefront_oid, email_uuid)
|
|
3379
|
+
|
|
3380
|
+
```ruby
|
|
3381
|
+
begin
|
|
3382
|
+
# Get a flow or campaign email's subject and preview text
|
|
3383
|
+
data, status_code, headers = api_instance.get_sfvb_email_with_http_info(storefront_oid, email_uuid)
|
|
3384
|
+
p status_code # => 2xx
|
|
3385
|
+
p headers # => { ... }
|
|
3386
|
+
p data # => <SfvbEmail>
|
|
3387
|
+
rescue UltracartClient::ApiError => e
|
|
3388
|
+
puts "Error when calling SfvbApi->get_sfvb_email_with_http_info: #{e}"
|
|
3389
|
+
end
|
|
3390
|
+
```
|
|
3391
|
+
|
|
3392
|
+
### Parameters
|
|
3393
|
+
|
|
3394
|
+
| Name | Type | Description | Notes |
|
|
3395
|
+
| ---- | ---- | ----------- | ----- |
|
|
3396
|
+
| **storefront_oid** | **Integer** | | |
|
|
3397
|
+
| **email_uuid** | **String** | | |
|
|
3398
|
+
|
|
3399
|
+
### Return type
|
|
3400
|
+
|
|
3401
|
+
[**SfvbEmail**](SfvbEmail.md)
|
|
3402
|
+
|
|
3403
|
+
### Authorization
|
|
3404
|
+
|
|
3405
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
3406
|
+
|
|
3407
|
+
### HTTP request headers
|
|
3408
|
+
|
|
3409
|
+
- **Content-Type**: Not defined
|
|
3410
|
+
- **Accept**: application/json
|
|
3411
|
+
|
|
3412
|
+
|
|
3018
3413
|
## get_sfvb_events
|
|
3019
3414
|
|
|
3020
3415
|
> <SfvbEventsResponse> get_sfvb_events(opts)
|
|
@@ -6178,9 +6573,118 @@ begin
|
|
|
6178
6573
|
data, status_code, headers = api_instance.insert_sfvb_upsell_path_with_http_info(storefront_oid, upsell_path)
|
|
6179
6574
|
p status_code # => 2xx
|
|
6180
6575
|
p headers # => { ... }
|
|
6181
|
-
p data # => <SfvbUpsellPath>
|
|
6576
|
+
p data # => <SfvbUpsellPath>
|
|
6577
|
+
rescue UltracartClient::ApiError => e
|
|
6578
|
+
puts "Error when calling SfvbApi->insert_sfvb_upsell_path_with_http_info: #{e}"
|
|
6579
|
+
end
|
|
6580
|
+
```
|
|
6581
|
+
|
|
6582
|
+
### Parameters
|
|
6583
|
+
|
|
6584
|
+
| Name | Type | Description | Notes |
|
|
6585
|
+
| ---- | ---- | ----------- | ----- |
|
|
6586
|
+
| **storefront_oid** | **Integer** | | |
|
|
6587
|
+
| **upsell_path** | [**SfvbUpsellPath**](SfvbUpsellPath.md) | The path to create | |
|
|
6588
|
+
|
|
6589
|
+
### Return type
|
|
6590
|
+
|
|
6591
|
+
[**SfvbUpsellPath**](SfvbUpsellPath.md)
|
|
6592
|
+
|
|
6593
|
+
### Authorization
|
|
6594
|
+
|
|
6595
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
6596
|
+
|
|
6597
|
+
### HTTP request headers
|
|
6598
|
+
|
|
6599
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
6600
|
+
- **Accept**: application/json
|
|
6601
|
+
|
|
6602
|
+
|
|
6603
|
+
## install_sfvb_library_entry
|
|
6604
|
+
|
|
6605
|
+
> <SfvbLibraryInstallReceipt> install_sfvb_library_entry(storefront_oid, library_oid, opts)
|
|
6606
|
+
|
|
6607
|
+
Install a library entry into a storefront
|
|
6608
|
+
|
|
6609
|
+
Copies the fragment's referenced files into the storefront file system and returns a receipt with the CJSON's paths resolved, ready to place. It never places the CJSON. Read content_manifest first; executable content needs acknowledge_executable true. A file that already exists with different content is a conflict - on_conflict fail (the default) refuses with 409 and writes nothing, skip keeps the existing file, overwrite replaces it. A recipient installs a published revision. This writes, which is why it is a POST, and it requires sfvb_publish because the files land in the shared storefront file system, which is served to shoppers whichever theme is active.
|
|
6610
|
+
|
|
6611
|
+
|
|
6612
|
+
### Examples
|
|
6613
|
+
|
|
6614
|
+
|
|
6615
|
+
(No example for this operation).
|
|
6616
|
+
|
|
6617
|
+
|
|
6618
|
+
#### Using the install_sfvb_library_entry_with_http_info variant
|
|
6619
|
+
|
|
6620
|
+
This returns an Array which contains the response data, status code and headers.
|
|
6621
|
+
|
|
6622
|
+
> <Array(<SfvbLibraryInstallReceipt>, Integer, Hash)> install_sfvb_library_entry_with_http_info(storefront_oid, library_oid, opts)
|
|
6623
|
+
|
|
6624
|
+
```ruby
|
|
6625
|
+
begin
|
|
6626
|
+
# Install a library entry into a storefront
|
|
6627
|
+
data, status_code, headers = api_instance.install_sfvb_library_entry_with_http_info(storefront_oid, library_oid, opts)
|
|
6628
|
+
p status_code # => 2xx
|
|
6629
|
+
p headers # => { ... }
|
|
6630
|
+
p data # => <SfvbLibraryInstallReceipt>
|
|
6631
|
+
rescue UltracartClient::ApiError => e
|
|
6632
|
+
puts "Error when calling SfvbApi->install_sfvb_library_entry_with_http_info: #{e}"
|
|
6633
|
+
end
|
|
6634
|
+
```
|
|
6635
|
+
|
|
6636
|
+
### Parameters
|
|
6637
|
+
|
|
6638
|
+
| Name | Type | Description | Notes |
|
|
6639
|
+
| ---- | ---- | ----------- | ----- |
|
|
6640
|
+
| **storefront_oid** | **Integer** | | |
|
|
6641
|
+
| **library_oid** | **Integer** | | |
|
|
6642
|
+
| **install_request** | [**SfvbLibraryInstallRequest**](SfvbLibraryInstallRequest.md) | Revision, conflict handling and acknowledgement | [optional] |
|
|
6643
|
+
|
|
6644
|
+
### Return type
|
|
6645
|
+
|
|
6646
|
+
[**SfvbLibraryInstallReceipt**](SfvbLibraryInstallReceipt.md)
|
|
6647
|
+
|
|
6648
|
+
### Authorization
|
|
6649
|
+
|
|
6650
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
6651
|
+
|
|
6652
|
+
### HTTP request headers
|
|
6653
|
+
|
|
6654
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
6655
|
+
- **Accept**: application/json
|
|
6656
|
+
|
|
6657
|
+
|
|
6658
|
+
## list_sfvb_blog_posts
|
|
6659
|
+
|
|
6660
|
+
> <SfvbBlogPostsResponse> list_sfvb_blog_posts(storefront_oid, opts)
|
|
6661
|
+
|
|
6662
|
+
List the storefront's blog posts
|
|
6663
|
+
|
|
6664
|
+
One page of blog posts, newest first, without their bodies. search matches the title, body, excerpt, url part or author, or a tag exactly. unassigned marks posts no page shows yet. Use a post's blog_post_oid to assign it to a page.
|
|
6665
|
+
|
|
6666
|
+
|
|
6667
|
+
### Examples
|
|
6668
|
+
|
|
6669
|
+
|
|
6670
|
+
(No example for this operation).
|
|
6671
|
+
|
|
6672
|
+
|
|
6673
|
+
#### Using the list_sfvb_blog_posts_with_http_info variant
|
|
6674
|
+
|
|
6675
|
+
This returns an Array which contains the response data, status code and headers.
|
|
6676
|
+
|
|
6677
|
+
> <Array(<SfvbBlogPostsResponse>, Integer, Hash)> list_sfvb_blog_posts_with_http_info(storefront_oid, opts)
|
|
6678
|
+
|
|
6679
|
+
```ruby
|
|
6680
|
+
begin
|
|
6681
|
+
# List the storefront's blog posts
|
|
6682
|
+
data, status_code, headers = api_instance.list_sfvb_blog_posts_with_http_info(storefront_oid, opts)
|
|
6683
|
+
p status_code # => 2xx
|
|
6684
|
+
p headers # => { ... }
|
|
6685
|
+
p data # => <SfvbBlogPostsResponse>
|
|
6182
6686
|
rescue UltracartClient::ApiError => e
|
|
6183
|
-
puts "Error when calling SfvbApi->
|
|
6687
|
+
puts "Error when calling SfvbApi->list_sfvb_blog_posts_with_http_info: #{e}"
|
|
6184
6688
|
end
|
|
6185
6689
|
```
|
|
6186
6690
|
|
|
@@ -6189,11 +6693,13 @@ end
|
|
|
6189
6693
|
| Name | Type | Description | Notes |
|
|
6190
6694
|
| ---- | ---- | ----------- | ----- |
|
|
6191
6695
|
| **storefront_oid** | **Integer** | | |
|
|
6192
|
-
| **
|
|
6696
|
+
| **search** | **String** | Text to search for | [optional] |
|
|
6697
|
+
| **page** | **Integer** | Page number, starting at 1 | [optional] |
|
|
6698
|
+
| **page_size** | **Integer** | Posts per page, 1 to 100, default 50 | [optional] |
|
|
6193
6699
|
|
|
6194
6700
|
### Return type
|
|
6195
6701
|
|
|
6196
|
-
[**
|
|
6702
|
+
[**SfvbBlogPostsResponse**](SfvbBlogPostsResponse.md)
|
|
6197
6703
|
|
|
6198
6704
|
### Authorization
|
|
6199
6705
|
|
|
@@ -6201,17 +6707,17 @@ end
|
|
|
6201
6707
|
|
|
6202
6708
|
### HTTP request headers
|
|
6203
6709
|
|
|
6204
|
-
- **Content-Type**:
|
|
6710
|
+
- **Content-Type**: Not defined
|
|
6205
6711
|
- **Accept**: application/json
|
|
6206
6712
|
|
|
6207
6713
|
|
|
6208
|
-
##
|
|
6714
|
+
## list_sfvb_campaigns
|
|
6209
6715
|
|
|
6210
|
-
> <
|
|
6716
|
+
> <SfvbCampaignsResponse> list_sfvb_campaigns(storefront_oid, opts)
|
|
6211
6717
|
|
|
6212
|
-
|
|
6718
|
+
List the storefront's campaigns
|
|
6213
6719
|
|
|
6214
|
-
|
|
6720
|
+
One page of campaigns, newest first, each with its emails and postcards in step order, without their container JSON. search matches the campaign name. Deleted campaigns are left out unless include_deleted is true. live is true unless the status sends nothing (draft or archived), so a change to one of its emails reaches customers at once.
|
|
6215
6721
|
|
|
6216
6722
|
|
|
6217
6723
|
### Examples
|
|
@@ -6220,21 +6726,21 @@ Copies the fragment's referenced files into the storefront file system and retur
|
|
|
6220
6726
|
(No example for this operation).
|
|
6221
6727
|
|
|
6222
6728
|
|
|
6223
|
-
#### Using the
|
|
6729
|
+
#### Using the list_sfvb_campaigns_with_http_info variant
|
|
6224
6730
|
|
|
6225
6731
|
This returns an Array which contains the response data, status code and headers.
|
|
6226
6732
|
|
|
6227
|
-
> <Array(<
|
|
6733
|
+
> <Array(<SfvbCampaignsResponse>, Integer, Hash)> list_sfvb_campaigns_with_http_info(storefront_oid, opts)
|
|
6228
6734
|
|
|
6229
6735
|
```ruby
|
|
6230
6736
|
begin
|
|
6231
|
-
#
|
|
6232
|
-
data, status_code, headers = api_instance.
|
|
6737
|
+
# List the storefront's campaigns
|
|
6738
|
+
data, status_code, headers = api_instance.list_sfvb_campaigns_with_http_info(storefront_oid, opts)
|
|
6233
6739
|
p status_code # => 2xx
|
|
6234
6740
|
p headers # => { ... }
|
|
6235
|
-
p data # => <
|
|
6741
|
+
p data # => <SfvbCampaignsResponse>
|
|
6236
6742
|
rescue UltracartClient::ApiError => e
|
|
6237
|
-
puts "Error when calling SfvbApi->
|
|
6743
|
+
puts "Error when calling SfvbApi->list_sfvb_campaigns_with_http_info: #{e}"
|
|
6238
6744
|
end
|
|
6239
6745
|
```
|
|
6240
6746
|
|
|
@@ -6243,12 +6749,14 @@ end
|
|
|
6243
6749
|
| Name | Type | Description | Notes |
|
|
6244
6750
|
| ---- | ---- | ----------- | ----- |
|
|
6245
6751
|
| **storefront_oid** | **Integer** | | |
|
|
6246
|
-
| **
|
|
6247
|
-
| **
|
|
6752
|
+
| **search** | **String** | Text to search for in the name | [optional] |
|
|
6753
|
+
| **page** | **Integer** | Page number, starting at 1 | [optional] |
|
|
6754
|
+
| **page_size** | **Integer** | Campaigns per page, 1 to 100, default 50 | [optional] |
|
|
6755
|
+
| **include_deleted** | **Boolean** | Include deleted campaigns | [optional] |
|
|
6248
6756
|
|
|
6249
6757
|
### Return type
|
|
6250
6758
|
|
|
6251
|
-
[**
|
|
6759
|
+
[**SfvbCampaignsResponse**](SfvbCampaignsResponse.md)
|
|
6252
6760
|
|
|
6253
6761
|
### Authorization
|
|
6254
6762
|
|
|
@@ -6256,17 +6764,17 @@ end
|
|
|
6256
6764
|
|
|
6257
6765
|
### HTTP request headers
|
|
6258
6766
|
|
|
6259
|
-
- **Content-Type**:
|
|
6767
|
+
- **Content-Type**: Not defined
|
|
6260
6768
|
- **Accept**: application/json
|
|
6261
6769
|
|
|
6262
6770
|
|
|
6263
|
-
##
|
|
6771
|
+
## list_sfvb_comms_lists
|
|
6264
6772
|
|
|
6265
|
-
> <
|
|
6773
|
+
> <SfvbCommsListsResponse> list_sfvb_comms_lists(storefront_oid)
|
|
6266
6774
|
|
|
6267
|
-
List the storefront's
|
|
6775
|
+
List the storefront's email lists
|
|
6268
6776
|
|
|
6269
|
-
|
|
6777
|
+
Each list's uuid, name and member count, by name, for a campaign's memberships or a list trigger. Never its members. Archived lists are left out.
|
|
6270
6778
|
|
|
6271
6779
|
|
|
6272
6780
|
### Examples
|
|
@@ -6275,21 +6783,21 @@ One page of blog posts, newest first, without their bodies. search matches the
|
|
|
6275
6783
|
(No example for this operation).
|
|
6276
6784
|
|
|
6277
6785
|
|
|
6278
|
-
#### Using the
|
|
6786
|
+
#### Using the list_sfvb_comms_lists_with_http_info variant
|
|
6279
6787
|
|
|
6280
6788
|
This returns an Array which contains the response data, status code and headers.
|
|
6281
6789
|
|
|
6282
|
-
> <Array(<
|
|
6790
|
+
> <Array(<SfvbCommsListsResponse>, Integer, Hash)> list_sfvb_comms_lists_with_http_info(storefront_oid)
|
|
6283
6791
|
|
|
6284
6792
|
```ruby
|
|
6285
6793
|
begin
|
|
6286
|
-
# List the storefront's
|
|
6287
|
-
data, status_code, headers = api_instance.
|
|
6794
|
+
# List the storefront's email lists
|
|
6795
|
+
data, status_code, headers = api_instance.list_sfvb_comms_lists_with_http_info(storefront_oid)
|
|
6288
6796
|
p status_code # => 2xx
|
|
6289
6797
|
p headers # => { ... }
|
|
6290
|
-
p data # => <
|
|
6798
|
+
p data # => <SfvbCommsListsResponse>
|
|
6291
6799
|
rescue UltracartClient::ApiError => e
|
|
6292
|
-
puts "Error when calling SfvbApi->
|
|
6800
|
+
puts "Error when calling SfvbApi->list_sfvb_comms_lists_with_http_info: #{e}"
|
|
6293
6801
|
end
|
|
6294
6802
|
```
|
|
6295
6803
|
|
|
@@ -6298,13 +6806,10 @@ end
|
|
|
6298
6806
|
| Name | Type | Description | Notes |
|
|
6299
6807
|
| ---- | ---- | ----------- | ----- |
|
|
6300
6808
|
| **storefront_oid** | **Integer** | | |
|
|
6301
|
-
| **search** | **String** | Text to search for | [optional] |
|
|
6302
|
-
| **page** | **Integer** | Page number, starting at 1 | [optional] |
|
|
6303
|
-
| **page_size** | **Integer** | Posts per page, 1 to 100, default 50 | [optional] |
|
|
6304
6809
|
|
|
6305
6810
|
### Return type
|
|
6306
6811
|
|
|
6307
|
-
[**
|
|
6812
|
+
[**SfvbCommsListsResponse**](SfvbCommsListsResponse.md)
|
|
6308
6813
|
|
|
6309
6814
|
### Authorization
|
|
6310
6815
|
|
|
@@ -6316,13 +6821,13 @@ end
|
|
|
6316
6821
|
- **Accept**: application/json
|
|
6317
6822
|
|
|
6318
6823
|
|
|
6319
|
-
##
|
|
6824
|
+
## list_sfvb_comms_segments
|
|
6320
6825
|
|
|
6321
|
-
> <
|
|
6826
|
+
> <SfvbCommsSegmentsResponse> list_sfvb_comms_segments(storefront_oid)
|
|
6322
6827
|
|
|
6323
|
-
List the storefront's
|
|
6828
|
+
List the storefront's segments
|
|
6324
6829
|
|
|
6325
|
-
|
|
6830
|
+
Each segment's uuid, name and member count at its last rebuild, by name, for a campaign's memberships or a segment trigger. Never its members or its rule. Archived segments are left out.
|
|
6326
6831
|
|
|
6327
6832
|
|
|
6328
6833
|
### Examples
|
|
@@ -6331,21 +6836,21 @@ One page of campaigns, newest first, each with its emails and postcards in step
|
|
|
6331
6836
|
(No example for this operation).
|
|
6332
6837
|
|
|
6333
6838
|
|
|
6334
|
-
#### Using the
|
|
6839
|
+
#### Using the list_sfvb_comms_segments_with_http_info variant
|
|
6335
6840
|
|
|
6336
6841
|
This returns an Array which contains the response data, status code and headers.
|
|
6337
6842
|
|
|
6338
|
-
> <Array(<
|
|
6843
|
+
> <Array(<SfvbCommsSegmentsResponse>, Integer, Hash)> list_sfvb_comms_segments_with_http_info(storefront_oid)
|
|
6339
6844
|
|
|
6340
6845
|
```ruby
|
|
6341
6846
|
begin
|
|
6342
|
-
# List the storefront's
|
|
6343
|
-
data, status_code, headers = api_instance.
|
|
6847
|
+
# List the storefront's segments
|
|
6848
|
+
data, status_code, headers = api_instance.list_sfvb_comms_segments_with_http_info(storefront_oid)
|
|
6344
6849
|
p status_code # => 2xx
|
|
6345
6850
|
p headers # => { ... }
|
|
6346
|
-
p data # => <
|
|
6851
|
+
p data # => <SfvbCommsSegmentsResponse>
|
|
6347
6852
|
rescue UltracartClient::ApiError => e
|
|
6348
|
-
puts "Error when calling SfvbApi->
|
|
6853
|
+
puts "Error when calling SfvbApi->list_sfvb_comms_segments_with_http_info: #{e}"
|
|
6349
6854
|
end
|
|
6350
6855
|
```
|
|
6351
6856
|
|
|
@@ -6354,14 +6859,10 @@ end
|
|
|
6354
6859
|
| Name | Type | Description | Notes |
|
|
6355
6860
|
| ---- | ---- | ----------- | ----- |
|
|
6356
6861
|
| **storefront_oid** | **Integer** | | |
|
|
6357
|
-
| **search** | **String** | Text to search for in the name | [optional] |
|
|
6358
|
-
| **page** | **Integer** | Page number, starting at 1 | [optional] |
|
|
6359
|
-
| **page_size** | **Integer** | Campaigns per page, 1 to 100, default 50 | [optional] |
|
|
6360
|
-
| **include_deleted** | **Boolean** | Include deleted campaigns | [optional] |
|
|
6361
6862
|
|
|
6362
6863
|
### Return type
|
|
6363
6864
|
|
|
6364
|
-
[**
|
|
6865
|
+
[**SfvbCommsSegmentsResponse**](SfvbCommsSegmentsResponse.md)
|
|
6365
6866
|
|
|
6366
6867
|
### Authorization
|
|
6367
6868
|
|
|
@@ -9916,6 +10417,62 @@ end
|
|
|
9916
10417
|
- **Accept**: application/json
|
|
9917
10418
|
|
|
9918
10419
|
|
|
10420
|
+
## update_sfvb_campaign
|
|
10421
|
+
|
|
10422
|
+
> <SfvbCampaign> update_sfvb_campaign(storefront_oid, campaign_uuid, if_match, campaign_write_request)
|
|
10423
|
+
|
|
10424
|
+
Change a campaign
|
|
10425
|
+
|
|
10426
|
+
A field left out keeps its value; memberships replaces the whole set. The status is never changed here. Send the hash_sha256 you read as If-Match. A scheduled, sending or sent campaign needs sfvb_publish, and a change to a scheduled one applies to the send that is coming. notes lists any emails a sending domain change put back to needing review.
|
|
10427
|
+
|
|
10428
|
+
|
|
10429
|
+
### Examples
|
|
10430
|
+
|
|
10431
|
+
|
|
10432
|
+
(No example for this operation).
|
|
10433
|
+
|
|
10434
|
+
|
|
10435
|
+
#### Using the update_sfvb_campaign_with_http_info variant
|
|
10436
|
+
|
|
10437
|
+
This returns an Array which contains the response data, status code and headers.
|
|
10438
|
+
|
|
10439
|
+
> <Array(<SfvbCampaign>, Integer, Hash)> update_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid, if_match, campaign_write_request)
|
|
10440
|
+
|
|
10441
|
+
```ruby
|
|
10442
|
+
begin
|
|
10443
|
+
# Change a campaign
|
|
10444
|
+
data, status_code, headers = api_instance.update_sfvb_campaign_with_http_info(storefront_oid, campaign_uuid, if_match, campaign_write_request)
|
|
10445
|
+
p status_code # => 2xx
|
|
10446
|
+
p headers # => { ... }
|
|
10447
|
+
p data # => <SfvbCampaign>
|
|
10448
|
+
rescue UltracartClient::ApiError => e
|
|
10449
|
+
puts "Error when calling SfvbApi->update_sfvb_campaign_with_http_info: #{e}"
|
|
10450
|
+
end
|
|
10451
|
+
```
|
|
10452
|
+
|
|
10453
|
+
### Parameters
|
|
10454
|
+
|
|
10455
|
+
| Name | Type | Description | Notes |
|
|
10456
|
+
| ---- | ---- | ----------- | ----- |
|
|
10457
|
+
| **storefront_oid** | **Integer** | | |
|
|
10458
|
+
| **campaign_uuid** | **String** | | |
|
|
10459
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
10460
|
+
| **campaign_write_request** | [**SfvbCampaignWriteRequest**](SfvbCampaignWriteRequest.md) | The fields to change | |
|
|
10461
|
+
|
|
10462
|
+
### Return type
|
|
10463
|
+
|
|
10464
|
+
[**SfvbCampaign**](SfvbCampaign.md)
|
|
10465
|
+
|
|
10466
|
+
### Authorization
|
|
10467
|
+
|
|
10468
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
10469
|
+
|
|
10470
|
+
### HTTP request headers
|
|
10471
|
+
|
|
10472
|
+
- **Content-Type**: application/json
|
|
10473
|
+
- **Accept**: application/json
|
|
10474
|
+
|
|
10475
|
+
|
|
9919
10476
|
## update_sfvb_comms_sending_domain
|
|
9920
10477
|
|
|
9921
10478
|
> <SfvbCommsSendingDomain> update_sfvb_comms_sending_domain(domain, sending_domain)
|
|
@@ -10023,6 +10580,174 @@ end
|
|
|
10023
10580
|
- **Accept**: application/json
|
|
10024
10581
|
|
|
10025
10582
|
|
|
10583
|
+
## update_sfvb_email
|
|
10584
|
+
|
|
10585
|
+
> <SfvbEmail> update_sfvb_email(storefront_oid, email_uuid, if_match, email_update_request)
|
|
10586
|
+
|
|
10587
|
+
Change a flow or campaign email's subject or preview text
|
|
10588
|
+
|
|
10589
|
+
A field left out keeps its value. Each is 5 to 150 characters on one line. Send the hash_sha256 you read as If-Match. An email in a sending flow or campaign needs sfvb_publish, as a body push does. The merchant's content review rule applies, so an email waiting for review or rejected goes back to needing review. An email suspended for spam is refused with sfvb.email_suspended.
|
|
10590
|
+
|
|
10591
|
+
|
|
10592
|
+
### Examples
|
|
10593
|
+
|
|
10594
|
+
|
|
10595
|
+
(No example for this operation).
|
|
10596
|
+
|
|
10597
|
+
|
|
10598
|
+
#### Using the update_sfvb_email_with_http_info variant
|
|
10599
|
+
|
|
10600
|
+
This returns an Array which contains the response data, status code and headers.
|
|
10601
|
+
|
|
10602
|
+
> <Array(<SfvbEmail>, Integer, Hash)> update_sfvb_email_with_http_info(storefront_oid, email_uuid, if_match, email_update_request)
|
|
10603
|
+
|
|
10604
|
+
```ruby
|
|
10605
|
+
begin
|
|
10606
|
+
# Change a flow or campaign email's subject or preview text
|
|
10607
|
+
data, status_code, headers = api_instance.update_sfvb_email_with_http_info(storefront_oid, email_uuid, if_match, email_update_request)
|
|
10608
|
+
p status_code # => 2xx
|
|
10609
|
+
p headers # => { ... }
|
|
10610
|
+
p data # => <SfvbEmail>
|
|
10611
|
+
rescue UltracartClient::ApiError => e
|
|
10612
|
+
puts "Error when calling SfvbApi->update_sfvb_email_with_http_info: #{e}"
|
|
10613
|
+
end
|
|
10614
|
+
```
|
|
10615
|
+
|
|
10616
|
+
### Parameters
|
|
10617
|
+
|
|
10618
|
+
| Name | Type | Description | Notes |
|
|
10619
|
+
| ---- | ---- | ----------- | ----- |
|
|
10620
|
+
| **storefront_oid** | **Integer** | | |
|
|
10621
|
+
| **email_uuid** | **String** | | |
|
|
10622
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
10623
|
+
| **email_update_request** | [**SfvbEmailUpdateRequest**](SfvbEmailUpdateRequest.md) | The subject or preview text to change | |
|
|
10624
|
+
|
|
10625
|
+
### Return type
|
|
10626
|
+
|
|
10627
|
+
[**SfvbEmail**](SfvbEmail.md)
|
|
10628
|
+
|
|
10629
|
+
### Authorization
|
|
10630
|
+
|
|
10631
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
10632
|
+
|
|
10633
|
+
### HTTP request headers
|
|
10634
|
+
|
|
10635
|
+
- **Content-Type**: application/json
|
|
10636
|
+
- **Accept**: application/json
|
|
10637
|
+
|
|
10638
|
+
|
|
10639
|
+
## update_sfvb_flow
|
|
10640
|
+
|
|
10641
|
+
> <SfvbFlow> update_sfvb_flow(storefront_oid, flow_uuid, if_match, flow_write_request)
|
|
10642
|
+
|
|
10643
|
+
Change a flow
|
|
10644
|
+
|
|
10645
|
+
A field left out keeps its value. The trigger and the status are never changed here. Send the hash_sha256 you read as If-Match. A flow that is enrolling customers needs sfvb_publish.
|
|
10646
|
+
|
|
10647
|
+
|
|
10648
|
+
### Examples
|
|
10649
|
+
|
|
10650
|
+
|
|
10651
|
+
(No example for this operation).
|
|
10652
|
+
|
|
10653
|
+
|
|
10654
|
+
#### Using the update_sfvb_flow_with_http_info variant
|
|
10655
|
+
|
|
10656
|
+
This returns an Array which contains the response data, status code and headers.
|
|
10657
|
+
|
|
10658
|
+
> <Array(<SfvbFlow>, Integer, Hash)> update_sfvb_flow_with_http_info(storefront_oid, flow_uuid, if_match, flow_write_request)
|
|
10659
|
+
|
|
10660
|
+
```ruby
|
|
10661
|
+
begin
|
|
10662
|
+
# Change a flow
|
|
10663
|
+
data, status_code, headers = api_instance.update_sfvb_flow_with_http_info(storefront_oid, flow_uuid, if_match, flow_write_request)
|
|
10664
|
+
p status_code # => 2xx
|
|
10665
|
+
p headers # => { ... }
|
|
10666
|
+
p data # => <SfvbFlow>
|
|
10667
|
+
rescue UltracartClient::ApiError => e
|
|
10668
|
+
puts "Error when calling SfvbApi->update_sfvb_flow_with_http_info: #{e}"
|
|
10669
|
+
end
|
|
10670
|
+
```
|
|
10671
|
+
|
|
10672
|
+
### Parameters
|
|
10673
|
+
|
|
10674
|
+
| Name | Type | Description | Notes |
|
|
10675
|
+
| ---- | ---- | ----------- | ----- |
|
|
10676
|
+
| **storefront_oid** | **Integer** | | |
|
|
10677
|
+
| **flow_uuid** | **String** | | |
|
|
10678
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
10679
|
+
| **flow_write_request** | [**SfvbFlowWriteRequest**](SfvbFlowWriteRequest.md) | The fields to change | |
|
|
10680
|
+
|
|
10681
|
+
### Return type
|
|
10682
|
+
|
|
10683
|
+
[**SfvbFlow**](SfvbFlow.md)
|
|
10684
|
+
|
|
10685
|
+
### Authorization
|
|
10686
|
+
|
|
10687
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
10688
|
+
|
|
10689
|
+
### HTTP request headers
|
|
10690
|
+
|
|
10691
|
+
- **Content-Type**: application/json
|
|
10692
|
+
- **Accept**: application/json
|
|
10693
|
+
|
|
10694
|
+
|
|
10695
|
+
## update_sfvb_flow_status
|
|
10696
|
+
|
|
10697
|
+
> <SfvbFlow> update_sfvb_flow_status(storefront_oid, flow_uuid, if_match, flow_status_request)
|
|
10698
|
+
|
|
10699
|
+
Turn a flow on or off
|
|
10700
|
+
|
|
10701
|
+
active enrolls customers as they trigger the flow from now on, and they receive its emails. inactive stops new enrollments. Always needs sfvb_publish. Send the hash_sha256 you read as If-Match.
|
|
10702
|
+
|
|
10703
|
+
|
|
10704
|
+
### Examples
|
|
10705
|
+
|
|
10706
|
+
|
|
10707
|
+
(No example for this operation).
|
|
10708
|
+
|
|
10709
|
+
|
|
10710
|
+
#### Using the update_sfvb_flow_status_with_http_info variant
|
|
10711
|
+
|
|
10712
|
+
This returns an Array which contains the response data, status code and headers.
|
|
10713
|
+
|
|
10714
|
+
> <Array(<SfvbFlow>, Integer, Hash)> update_sfvb_flow_status_with_http_info(storefront_oid, flow_uuid, if_match, flow_status_request)
|
|
10715
|
+
|
|
10716
|
+
```ruby
|
|
10717
|
+
begin
|
|
10718
|
+
# Turn a flow on or off
|
|
10719
|
+
data, status_code, headers = api_instance.update_sfvb_flow_status_with_http_info(storefront_oid, flow_uuid, if_match, flow_status_request)
|
|
10720
|
+
p status_code # => 2xx
|
|
10721
|
+
p headers # => { ... }
|
|
10722
|
+
p data # => <SfvbFlow>
|
|
10723
|
+
rescue UltracartClient::ApiError => e
|
|
10724
|
+
puts "Error when calling SfvbApi->update_sfvb_flow_status_with_http_info: #{e}"
|
|
10725
|
+
end
|
|
10726
|
+
```
|
|
10727
|
+
|
|
10728
|
+
### Parameters
|
|
10729
|
+
|
|
10730
|
+
| Name | Type | Description | Notes |
|
|
10731
|
+
| ---- | ---- | ----------- | ----- |
|
|
10732
|
+
| **storefront_oid** | **Integer** | | |
|
|
10733
|
+
| **flow_uuid** | **String** | | |
|
|
10734
|
+
| **if_match** | **String** | hash_sha256 from the last read. Required; 428 when absent, 412 when stale. | |
|
|
10735
|
+
| **flow_status_request** | [**SfvbFlowStatusRequest**](SfvbFlowStatusRequest.md) | The status to set | |
|
|
10736
|
+
|
|
10737
|
+
### Return type
|
|
10738
|
+
|
|
10739
|
+
[**SfvbFlow**](SfvbFlow.md)
|
|
10740
|
+
|
|
10741
|
+
### Authorization
|
|
10742
|
+
|
|
10743
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
10744
|
+
|
|
10745
|
+
### HTTP request headers
|
|
10746
|
+
|
|
10747
|
+
- **Content-Type**: application/json
|
|
10748
|
+
- **Accept**: application/json
|
|
10749
|
+
|
|
10750
|
+
|
|
10026
10751
|
## update_sfvb_item_attribute_batch
|
|
10027
10752
|
|
|
10028
10753
|
> <SfvbItemAttributeBatchResponse> update_sfvb_item_attribute_batch(storefront_oid, item_attribute_batch_request, opts)
|