workarea-api 4.4.6 → 4.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -15
- data/admin/LICENSE +52 -0
- data/admin/README.md +4 -7
- data/admin/workarea-api-admin.gemspec +5 -4
- data/doc/api/admin/categories/bulk_upserting_categories.json +4 -4
- data/doc/api/admin/categories/creating_a_category.json +7 -7
- data/doc/api/admin/categories/listing_categories.json +4 -4
- data/doc/api/admin/categories/removing_a_category.json +4 -4
- data/doc/api/admin/categories/showing_a_category.json +6 -6
- data/doc/api/admin/categories/updating_a_category.json +5 -5
- data/doc/api/admin/category_product_rules/creating_a_category_product_rule.json +7 -7
- data/doc/api/admin/category_product_rules/listing_category_product_rules.json +6 -6
- data/doc/api/admin/category_product_rules/removing_a_category_product_rule.json +4 -4
- data/doc/api/admin/category_product_rules/updating_a_category_product_rule.json +4 -4
- data/doc/api/admin/content/bulk_upserting_content.json +4 -4
- data/doc/api/admin/content/creating_content.json +7 -7
- data/doc/api/admin/content/listing_content.json +4 -4
- data/doc/api/admin/content/showing_content.json +6 -6
- data/doc/api/admin/content/updating_content.json +4 -4
- data/doc/api/admin/content_assets/bulk_upserting_content_assets.json +4 -4
- data/doc/api/admin/content_assets/creating_a_content_asset.json +7 -7
- data/doc/api/admin/content_assets/listing_content_assets.json +5 -5
- data/doc/api/admin/content_assets/removing_a_content_asset.json +4 -4
- data/doc/api/admin/content_assets/showing_a_content_asset.json +6 -6
- data/doc/api/admin/content_assets/updating_a_content_asset.json +5 -5
- data/doc/api/admin/discounts/creating_a_discount.json +7 -7
- data/doc/api/admin/discounts/listing_discounts.json +4 -4
- data/doc/api/admin/discounts/removing_a_discount.json +4 -4
- data/doc/api/admin/discounts/showing_a_discount.json +6 -6
- data/doc/api/admin/discounts/updating_discounts.json +4 -4
- data/doc/api/admin/email_signups/listing_email_signups.json +4 -4
- data/doc/api/admin/email_signups/showing_an_email_signup.json +6 -6
- data/doc/api/admin/fulfillment/listing_fulfillments.json +4 -4
- data/doc/api/admin/fulfillment/marking_items_as_canceled.json +6 -6
- data/doc/api/admin/fulfillment/marking_items_as_shipped.json +6 -6
- data/doc/api/admin/fulfillment/showing_fulfillment.json +4 -4
- data/doc/api/admin/inventory_skus/bulk_upserting_inventory_skus.json +4 -4
- data/doc/api/admin/inventory_skus/creating_an_inventory_sku.json +6 -6
- data/doc/api/admin/inventory_skus/listing_inventory_skus.json +4 -4
- data/doc/api/admin/inventory_skus/removing_an_inventory_sku.json +2 -2
- data/doc/api/admin/inventory_skus/showing_an_inventory_sku.json +4 -4
- data/doc/api/admin/inventory_skus/updating_an_inventory_sku.json +2 -2
- data/doc/api/admin/navigation_menus/creating_a_menu.json +7 -7
- data/doc/api/admin/navigation_menus/listing_menus.json +4 -4
- data/doc/api/admin/navigation_menus/removing_a_navigation_menu.json +4 -4
- data/doc/api/admin/navigation_menus/showing_a_navigation_menu.json +6 -6
- data/doc/api/admin/navigation_menus/updating_a_navigation_menus.json +4 -4
- data/doc/api/admin/navigation_taxonomy/bulk_upserting_navigation_taxons.json +4 -4
- data/doc/api/admin/navigation_taxonomy/creating_a_taxon.json +7 -7
- data/doc/api/admin/navigation_taxonomy/listing_taxons.json +4 -4
- data/doc/api/admin/navigation_taxonomy/removing_a_navigation_taxon.json +4 -4
- data/doc/api/admin/navigation_taxonomy/showing_a_navigation_taxon.json +6 -6
- data/doc/api/admin/navigation_taxonomy/updating_a_navigation_taxons.json +4 -4
- data/doc/api/admin/orders/listing_orders.json +4 -4
- data/doc/api/admin/orders/showing_an_order.json +4 -4
- data/doc/api/admin/orders/viewing_orders_by_date_range.json +8 -8
- data/doc/api/admin/pages/bulk_upserting_pages.json +4 -4
- data/doc/api/admin/pages/creating_a_page.json +7 -7
- data/doc/api/admin/pages/listing_pages.json +4 -4
- data/doc/api/admin/pages/removing_a_page.json +4 -4
- data/doc/api/admin/pages/showing_a_page.json +6 -6
- data/doc/api/admin/pages/updating_a_page.json +5 -5
- data/doc/api/admin/payment_profiles/bulk_upserting_payment_profiles.json +4 -4
- data/doc/api/admin/payment_profiles/creating_a_payment_profile.json +7 -7
- data/doc/api/admin/payment_profiles/listing_payment_profiles.json +4 -4
- data/doc/api/admin/payment_profiles/removing_a_payment_profile.json +4 -4
- data/doc/api/admin/payment_profiles/showing_a_payment_profile.json +6 -6
- data/doc/api/admin/payment_profiles/updating_a_payment_profiles.json +4 -4
- data/doc/api/admin/payment_transactions/listing_payment_transactions.json +4 -4
- data/doc/api/admin/payment_transactions/showing_a_payment_transaction.json +6 -6
- data/doc/api/admin/payments/listing_payments.json +4 -4
- data/doc/api/admin/payments/showing_an_payment.json +4 -4
- data/doc/api/admin/prices/creating_a_pricing_sku_price.json +4 -4
- data/doc/api/admin/prices/listing_pricing_sku_prices.json +4 -4
- data/doc/api/admin/prices/removing_a_pricing_sku_price.json +4 -4
- data/doc/api/admin/prices/updating_a_pricing_sku_price.json +4 -4
- data/doc/api/admin/pricing_skus/bulk_upserting_pricing_skus.json +4 -4
- data/doc/api/admin/pricing_skus/creating_an_pricing_sku.json +6 -6
- data/doc/api/admin/pricing_skus/listing_pricing_skus.json +4 -4
- data/doc/api/admin/pricing_skus/removing_an_pricing_sku.json +2 -2
- data/doc/api/admin/pricing_skus/showing_an_pricing_sku.json +4 -4
- data/doc/api/admin/pricing_skus/updating_an_pricing_sku.json +2 -2
- data/doc/api/admin/product_images/creating_a_product_image_from_base64.json +7 -7
- data/doc/api/admin/product_images/creating_a_product_image_from_url.json +7 -7
- data/doc/api/admin/product_images/listing_product_images.json +6 -6
- data/doc/api/admin/product_images/removing_a_product_image.json +4 -4
- data/doc/api/admin/product_images/updating_a_product_image.json +4 -4
- data/doc/api/admin/products/bulk_upserting_products.json +4 -4
- data/doc/api/admin/products/creating_a_product.json +7 -7
- data/doc/api/admin/products/listing_products.json +4 -4
- data/doc/api/admin/products/removing_a_product.json +4 -4
- data/doc/api/admin/products/showing_a_product.json +6 -6
- data/doc/api/admin/products/updating_a_product.json +5 -5
- data/doc/api/admin/promo_code_lists/bulk_upserting_promo_code_lists.json +4 -4
- data/doc/api/admin/promo_code_lists/creating_a_promo_code_list.json +7 -7
- data/doc/api/admin/promo_code_lists/listing_promo_code_lists.json +4 -4
- data/doc/api/admin/promo_code_lists/removing_a_promo_code_list.json +4 -4
- data/doc/api/admin/promo_code_lists/showing_a_promo_code_list.json +6 -6
- data/doc/api/admin/promo_code_lists/updating_a_promo_code_list.json +4 -4
- data/doc/api/admin/recommendation_settings/showing_recommendation_settings.json +6 -6
- data/doc/api/admin/recommendation_settings/updating_recommendation_settings.json +4 -4
- data/doc/api/admin/redirects/bulk_upserting_redirects.json +4 -4
- data/doc/api/admin/redirects/creating_a_redirect.json +7 -7
- data/doc/api/admin/redirects/listing_redirects.json +4 -4
- data/doc/api/admin/redirects/removing_a_redirect.json +4 -4
- data/doc/api/admin/redirects/showing_a_redirect.json +6 -6
- data/doc/api/admin/redirects/updating_a_redirects.json +4 -4
- data/doc/api/admin/release_changes/adding_changes_to_a_release.json +7 -7
- data/doc/api/admin/releases/bulk_upserting_releases.json +4 -4
- data/doc/api/admin/releases/creating_a_release.json +7 -7
- data/doc/api/admin/releases/listing_releases.json +4 -4
- data/doc/api/admin/releases/removing_a_release.json +4 -4
- data/doc/api/admin/releases/showing_a_release.json +6 -6
- data/doc/api/admin/releases/updating_a_release.json +5 -5
- data/doc/api/admin/saved_addresses/creating_a_saved_address.json +7 -7
- data/doc/api/admin/saved_addresses/listing_saved_address.json +6 -6
- data/doc/api/admin/saved_addresses/removing_a_saved_address.json +4 -4
- data/doc/api/admin/saved_addresses/updating_a_saved_address.json +4 -4
- data/doc/api/admin/saved_credit_cards/creating_a_saved_credit_card.json +8 -8
- data/doc/api/admin/saved_credit_cards/listing_saved_credit_cards.json +6 -6
- data/doc/api/admin/saved_credit_cards/removing_a_saved_credit_card.json +4 -4
- data/doc/api/admin/saved_credit_cards/updating_a_saved_credit_card.json +4 -4
- data/doc/api/admin/shipping/listing_shipments.json +4 -4
- data/doc/api/admin/shipping/showing_a_shipment.json +6 -6
- data/doc/api/admin/shipping_rates/creating_a_shipping_rate.json +7 -7
- data/doc/api/admin/shipping_rates/listing_shipping_rates.json +6 -6
- data/doc/api/admin/shipping_rates/removing_a_shipping_rate.json +4 -4
- data/doc/api/admin/shipping_rates/updating_a_shipping_rate.json +4 -4
- data/doc/api/admin/shipping_services/bulk_upserting_shipping_services.json +4 -4
- data/doc/api/admin/shipping_services/creating_a_shipping_service.json +7 -7
- data/doc/api/admin/shipping_services/listing_shipping_services.json +4 -4
- data/doc/api/admin/shipping_services/removing_a_shipping_service.json +4 -4
- data/doc/api/admin/shipping_services/showing_a_shipping_service.json +6 -6
- data/doc/api/admin/shipping_services/updating_a_shipping_service.json +5 -5
- data/doc/api/admin/tax_categories/bulk_upserting_tax_categories.json +4 -4
- data/doc/api/admin/tax_categories/creating_a_tax_category.json +7 -7
- data/doc/api/admin/tax_categories/listing_tax_categories.json +4 -4
- data/doc/api/admin/tax_categories/removing_a_tax_category.json +4 -4
- data/doc/api/admin/tax_categories/showing_a_tax_category.json +6 -6
- data/doc/api/admin/tax_categories/updating_a_tax_categories.json +4 -4
- data/doc/api/admin/tax_rates/creating_a_tax_rate.json +8 -8
- data/doc/api/admin/tax_rates/listing_tax_rates.json +6 -6
- data/doc/api/admin/tax_rates/removing_a_tax_rate.json +4 -4
- data/doc/api/admin/tax_rates/updating_a_tax_rate.json +4 -4
- data/doc/api/admin/users/bulk_upserting_users.json +4 -4
- data/doc/api/admin/users/creating_a_user.json +7 -7
- data/doc/api/admin/users/listing_users.json +4 -4
- data/doc/api/admin/users/removing_a_user.json +4 -4
- data/doc/api/admin/users/showing_a_user.json +6 -6
- data/doc/api/admin/users/updating_a_user.json +5 -5
- data/doc/api/admin/variants/creating_a_product_variant.json +6 -6
- data/doc/api/admin/variants/listing_product_variants.json +6 -6
- data/doc/api/admin/variants/removing_a_product_variant.json +4 -4
- data/doc/api/admin/variants/updating_a_product_variant.json +4 -4
- data/doc/api/storefront/accounts/creating_an_account.json +6 -6
- data/doc/api/storefront/accounts/getting_account_details.json +6 -6
- data/doc/api/storefront/accounts/updating_an_account.json +6 -6
- data/doc/api/storefront/analytics/saving_a_category_view.json +4 -4
- data/doc/api/storefront/analytics/saving_a_product_view.json +4 -4
- data/doc/api/storefront/analytics/saving_a_search.json +4 -4
- data/doc/api/storefront/assets/showing_an_asset.json +8 -8
- data/doc/api/storefront/authentication/creating_an_authentication_token.json +8 -8
- data/doc/api/storefront/authentication/refreshing_an_authentication_token.json +8 -8
- data/doc/api/storefront/authentication/using_an_authentication_token.json +9 -9
- data/doc/api/storefront/cart/adding_a_promo_code.json +9 -9
- data/doc/api/storefront/cart/adding_an_item.json +9 -9
- data/doc/api/storefront/cart/creating_a_new_cart_for_a_user.json +8 -8
- data/doc/api/storefront/cart/creating_a_new_guest_cart.json +6 -6
- data/doc/api/storefront/cart/delete_an_item.json +9 -9
- data/doc/api/storefront/cart/listing_user_s_carts.json +8 -8
- data/doc/api/storefront/cart/showing_cart.json +9 -9
- data/doc/api/storefront/cart/updating_an_item.json +9 -9
- data/doc/api/storefront/categories/showing_a_category.json +7 -7
- data/doc/api/storefront/categories/showing_a_listing_of_categories.json +7 -7
- data/doc/api/storefront/checkout/completing_a_checkout.json +8 -8
- data/doc/api/storefront/checkout/showing_a_checkout.json +8 -8
- data/doc/api/storefront/checkout/updating_a_checkout.json +8 -8
- data/doc/api/storefront/contacts/creating_a_contact.json +6 -6
- data/doc/api/storefront/email_signups/creating_an_email_signup.json +6 -6
- data/doc/api/storefront/email_signups/showing_an_email_signup_content.json +6 -6
- data/doc/api/storefront/menus/listing_menus.json +7 -7
- data/doc/api/storefront/menus/showing_a_menu.json +9 -9
- data/doc/api/storefront/orders/listing_the_user_s_orders.json +8 -8
- data/doc/api/storefront/orders/showing_an_order.json +9 -9
- data/doc/api/storefront/pages/showing_a_page.json +7 -7
- data/doc/api/storefront/password_resets/sending_a_forgot_password_email.json +6 -6
- data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_a_session_id.json +10 -10
- data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_authentication.json +8 -8
- data/doc/api/storefront/products/showing_a_product.json +7 -7
- data/doc/api/storefront/products/showing_a_product_with_a_specific_sku_selected.json +7 -7
- data/doc/api/storefront/recent_views/showing_recent_views_from_authentication.json +7 -7
- data/doc/api/storefront/recent_views/showing_recent_views_with_a_session_id.json +10 -10
- data/doc/api/storefront/recent_views/updating_recent_views_with_a_session_id.json +4 -4
- data/doc/api/storefront/recent_views/updating_recent_views_with_authentication.json +6 -6
- data/doc/api/storefront/saved_addresses/creating_a_saved_address.json +6 -6
- data/doc/api/storefront/saved_addresses/deleting_a_saved_address.json +5 -5
- data/doc/api/storefront/saved_addresses/listing_the_user_s_saved_addresses.json +8 -8
- data/doc/api/storefront/saved_addresses/showing_a_saved_address.json +7 -7
- data/doc/api/storefront/saved_addresses/updating_a_saved_address.json +7 -7
- data/doc/api/storefront/saved_credit_cards/creating_a_saved_credit_card.json +6 -6
- data/doc/api/storefront/saved_credit_cards/deleting_a_saved_credit_card.json +5 -5
- data/doc/api/storefront/saved_credit_cards/listing_the_user_s_saved_credit_cards.json +8 -8
- data/doc/api/storefront/saved_credit_cards/showing_a_saved_credit_card.json +7 -7
- data/doc/api/storefront/saved_credit_cards/updating_a_saved_credit_card.json +7 -7
- data/doc/api/storefront/searches/showing_search_autocomplete_suggestions.json +7 -7
- data/doc/api/storefront/searches/showing_search_results.json +7 -7
- data/doc/api/storefront/system_content/showing_system_content.json +7 -7
- data/doc/api/storefront/system_content/showing_the_home_page.json +7 -7
- data/doc/api/storefront/taxons/showing_a_taxon.json +9 -9
- data/doc/api/storefront/validation_errors/checkout_validation_errors.json +8 -8
- data/doc/api/storefront/validation_errors/general_validation_errors.json +4 -4
- data/lib/workarea/api/version.rb +1 -1
- data/storefront/LICENSE +52 -0
- data/storefront/README.md +4 -7
- data/storefront/workarea-api-storefront.gemspec +6 -5
- data/workarea-api.gemspec +3 -3
- metadata +13 -10
@@ -8,7 +8,7 @@
|
|
8
8
|
"requests": [
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
|
-
"Authorization": "Token token=\"
|
11
|
+
"Authorization": "Token token=\"KUpmy3sLVUCjXZ8PS5k2xD1L\""
|
12
12
|
},
|
13
13
|
"request_query_parameters": {
|
14
14
|
},
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"X-Requested-With": "",
|
28
28
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "26cbdcdd-b8dc-4674-9080-d6980f6d3de5",
|
31
|
+
"X-Runtime": "0.009714",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "77"
|
34
34
|
},
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"request_content_type": null,
|
39
39
|
"response_status": 200,
|
40
40
|
"response_status_text": "OK",
|
41
|
-
"response_body": "{\n \"id\": \"
|
41
|
+
"response_body": "{\n \"id\": \"5d5eca9cd4322a04dfbf6fc9\",\n \"categories\": [\n\n ],\n \"products\": [\n\n ],\n \"searches\": [\n\n ]\n}",
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/recent_views\" -X GET \\\n\t-H \"Authorization: Token token=\\\"
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/recent_views\" -X GET \\\n\t-H \"Authorization: Token token=\\\"KUpmy3sLVUCjXZ8PS5k2xD1L\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Recent views",
|
47
47
|
"description": "Showing recent views from authentication",
|
48
48
|
"route": "/api/storefront/recent_views",
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"http_method": "GET",
|
50
|
+
"explanation": " Display recent views based on the currently authenticated customer.\n"
|
51
51
|
}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"request_headers": {
|
14
14
|
},
|
15
15
|
"request_query_parameters": {
|
16
|
-
"session_id": "
|
16
|
+
"session_id": "5d5eca9dd4322a04dfbf6fd7"
|
17
17
|
},
|
18
18
|
"response_headers": {
|
19
19
|
"X-Frame-Options": "SAMEORIGIN",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
"X-Download-Options": "noopen",
|
23
23
|
"X-Permitted-Cross-Domain-Policies": "none",
|
24
24
|
"Referrer-Policy": "strict-origin-when-cross-origin",
|
25
|
-
"ETag": "W/\"
|
26
|
-
"Last-Modified": "
|
25
|
+
"ETag": "W/\"8650d1d52eb601fb72b95b72bc086ea8\"",
|
26
|
+
"Last-Modified": "Thu, 22 Aug 2019 17:02:21 GMT",
|
27
27
|
"Content-Type": "application/json; charset=utf-8",
|
28
28
|
"Access-Control-Allow-Origin": "*",
|
29
29
|
"Access-Control-Allow-Headers": "*",
|
@@ -31,25 +31,25 @@
|
|
31
31
|
"X-Requested-With": "",
|
32
32
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
33
33
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
34
|
-
"X-Request-Id": "
|
35
|
-
"X-Runtime": "0.
|
34
|
+
"X-Request-Id": "29576e5f-d2b5-46ad-8ad8-ed92ed16e53e",
|
35
|
+
"X-Runtime": "0.015878",
|
36
36
|
"Expires": "0",
|
37
37
|
"Content-Length": "849"
|
38
38
|
},
|
39
39
|
"request_method": "GET",
|
40
|
-
"request_path": "/api/storefront/recent_views?session_id=
|
40
|
+
"request_path": "/api/storefront/recent_views?session_id=5d5eca9dd4322a04dfbf6fd7",
|
41
41
|
"request_body": null,
|
42
42
|
"request_content_type": null,
|
43
43
|
"response_status": 200,
|
44
44
|
"response_status_text": "OK",
|
45
|
-
"response_body": "{\n \"id\": \"
|
45
|
+
"response_body": "{\n \"id\": \"5d5eca9dd4322a04dfbf6fd7\",\n \"categories\": [\n {\n \"id\": \"5d5eca9dd4322a04dfbf6fd4\",\n \"name\": \"Shirts\",\n \"slug\": \"shirts\",\n \"url\": \"http://www.example.com/api/storefront/categories/shirts\"\n }\n ],\n \"products\": [\n {\n \"id\": \"A742F5D48A\",\n \"name\": \"Cool Shirt\",\n \"description\": null,\n \"slug\": \"cool-shirt\",\n \"browser_title\": \"Cool Shirt\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5eca9cd4322a04dfbf6fd3\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n }\n ],\n \"searches\": [\n \"shirt\"\n ]\n}",
|
46
46
|
"response_content_type": "application/json",
|
47
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/recent_views?session_id=
|
47
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/recent_views?session_id=5d5eca9dd4322a04dfbf6fd7\" -X GET "
|
48
48
|
}
|
49
49
|
],
|
50
50
|
"resource": "Recent views",
|
51
51
|
"description": "Showing recent views with a session_id",
|
52
52
|
"route": "/api/storefront/recent_views",
|
53
|
-
"
|
54
|
-
"
|
53
|
+
"http_method": "GET",
|
54
|
+
"explanation": " Display recent views based on a session_id you've kept for an\n anonymous browser (as opposed to displaying them based on\n authentication).\n"
|
55
55
|
}
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"X-Requested-With": "",
|
30
30
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
31
31
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
32
|
-
"X-Request-Id": "
|
33
|
-
"X-Runtime": "0.
|
32
|
+
"X-Request-Id": "e3e031d5-c055-45e8-800a-92ba33797609",
|
33
|
+
"X-Runtime": "0.007861",
|
34
34
|
"Expires": "0",
|
35
35
|
"Content-Length": "0"
|
36
36
|
},
|
@@ -48,6 +48,6 @@
|
|
48
48
|
"resource": "Recent views",
|
49
49
|
"description": "Updating recent views with a session_id",
|
50
50
|
"route": "/api/storefront/recent_views",
|
51
|
-
"
|
52
|
-
"
|
51
|
+
"http_method": "PATCH",
|
52
|
+
"explanation": " You can also use this endpoint to maintain a recent activity for an\n anonymous browser. Use a consistent session_id to maintain\n continuity.\n"
|
53
53
|
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/json",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"qmXCULteWZ4Z6mgbaT3NiHnn\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"X-Requested-With": "",
|
28
28
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "e5c5ca29-6a7d-442c-b80d-899d1c907697",
|
31
|
+
"X-Runtime": "0.009277",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "0"
|
34
34
|
},
|
@@ -40,12 +40,12 @@
|
|
40
40
|
"response_status_text": "OK",
|
41
41
|
"response_body": null,
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl \"https://www.example.com/api/storefront/recent_views\" -d '{\"product_id\":\"367A8BB9B5\",\"category_id\":\"596e739b021823358aabe9df\",\"search\":\"shirts\"}' -X PATCH \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"
|
43
|
+
"curl": "curl \"https://www.example.com/api/storefront/recent_views\" -d '{\"product_id\":\"367A8BB9B5\",\"category_id\":\"596e739b021823358aabe9df\",\"search\":\"shirts\"}' -X PATCH \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"qmXCULteWZ4Z6mgbaT3NiHnn\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Recent views",
|
47
47
|
"description": "Updating recent views with authentication",
|
48
48
|
"route": "/api/storefront/recent_views",
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"http_method": "PATCH",
|
50
|
+
"explanation": " Use this endpoint like this to keep a accurate list of recent\n activity by the authenticated customer. Each of the three resources\n being tracked (products, categories, searches) are optional.\n"
|
51
51
|
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/json",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"csHHNxgYnYkPVuCSrBHhLm8T\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -26,10 +26,10 @@
|
|
26
26
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
27
27
|
"X-Requested-With": "",
|
28
28
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
|
-
"ETag": "W/\"
|
29
|
+
"ETag": "W/\"8d82144b25a27e0100dfd1ee6a795f58\"",
|
30
30
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
31
|
-
"X-Request-Id": "
|
32
|
-
"X-Runtime": "0.
|
31
|
+
"X-Request-Id": "2b28a0d4-fd14-4b7f-aa40-8ba5865e73c1",
|
32
|
+
"X-Runtime": "0.069972",
|
33
33
|
"Expires": "0",
|
34
34
|
"Content-Length": "377"
|
35
35
|
},
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"request_content_type": "application/json",
|
40
40
|
"response_status": 200,
|
41
41
|
"response_status_text": "OK",
|
42
|
-
"response_body": "{\n \"user_id\": \"
|
42
|
+
"response_body": "{\n \"user_id\": \"5d5eca50d4322a04dfbf6c06\",\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5d5eca50d4322a04dfbf6c0a\",\n \"id\": \"5d5eca50d4322a04dfbf6c0a\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"4059 Mt Lee Dr.\",\n \"street_2\": null,\n \"city\": \"Hollywood\",\n \"country\": \"US\",\n \"region\": \"CA\",\n \"postal_code\": \"90068\",\n \"phone_number\": \"7545552390\",\n \"phone_extension\": null\n}",
|
43
43
|
"response_content_type": "application/json",
|
44
|
-
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses\" -d '{\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"street\":\"4059 Mt Lee Dr.\",\"city\":\"Hollywood\",\"region\":\"CA\",\"country\":\"US\",\"postal_code\":\"90068\",\"phone_number\":\"7545552390\"}' -X POST \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"
|
44
|
+
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses\" -d '{\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"street\":\"4059 Mt Lee Dr.\",\"city\":\"Hollywood\",\"region\":\"CA\",\"country\":\"US\",\"postal_code\":\"90068\",\"phone_number\":\"7545552390\"}' -X POST \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"csHHNxgYnYkPVuCSrBHhLm8T\\\"\""
|
45
45
|
}
|
46
46
|
],
|
47
47
|
"resource": "Saved Addresses",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/x-www-form-urlencoded",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"NdMjPTc3rwCYLcoJsw15HAL3\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -26,19 +26,19 @@
|
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
28
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
29
|
-
"X-Request-Id": "
|
30
|
-
"X-Runtime": "0.
|
29
|
+
"X-Request-Id": "bd4637fe-12ee-4baa-b0d7-4ef64a1ac02d",
|
30
|
+
"X-Runtime": "0.006546",
|
31
31
|
"Expires": "0"
|
32
32
|
},
|
33
33
|
"request_method": "DELETE",
|
34
|
-
"request_path": "/api/storefront/saved_addresses/
|
34
|
+
"request_path": "/api/storefront/saved_addresses/5d5eca51d4322a04dfbf6c14",
|
35
35
|
"request_body": null,
|
36
36
|
"request_content_type": "application/x-www-form-urlencoded",
|
37
37
|
"response_status": 204,
|
38
38
|
"response_status_text": "No Content",
|
39
39
|
"response_body": null,
|
40
40
|
"response_content_type": null,
|
41
|
-
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses/
|
41
|
+
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses/5d5eca51d4322a04dfbf6c14\" -d '' -X DELETE \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Authorization: Token token=\\\"NdMjPTc3rwCYLcoJsw15HAL3\\\"\""
|
42
42
|
}
|
43
43
|
],
|
44
44
|
"resource": "Saved Addresses",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"requests": [
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
|
-
"Authorization": "Token token=\"
|
11
|
+
"Authorization": "Token token=\"utvVgqxLKdG2wow2iQaEddgJ\""
|
12
12
|
},
|
13
13
|
"request_query_parameters": {
|
14
14
|
},
|
@@ -25,10 +25,10 @@
|
|
25
25
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
-
"ETag": "W/\"
|
28
|
+
"ETag": "W/\"9f1162d42524808f1bfe2f68244bd2ad\"",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "da123363-5a46-4c68-9c9c-119b4eec1f16",
|
31
|
+
"X-Runtime": "0.016395",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "734"
|
34
34
|
},
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"request_content_type": null,
|
39
39
|
"response_status": 200,
|
40
40
|
"response_status_text": "OK",
|
41
|
-
"response_body": "{\n \"user_id\": \"
|
41
|
+
"response_body": "{\n \"user_id\": \"5d5eca4ed4322a04dfbf6bfb\",\n \"addresses\": [\n {\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5d5eca4ed4322a04dfbf6bfe\",\n \"id\": \"5d5eca4ed4322a04dfbf6bfe\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n {\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5d5eca4ed4322a04dfbf6bff\",\n \"id\": \"5d5eca4ed4322a04dfbf6bff\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"4059 Mt Lee Dr.\",\n \"street_2\": null,\n \"city\": \"Hollywood\",\n \"country\": \"US\",\n \"region\": \"CA\",\n \"postal_code\": \"90068\",\n \"phone_number\": \"7545552390\",\n \"phone_extension\": null\n }\n ]\n}",
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/saved_addresses\" -X GET \\\n\t-H \"Authorization: Token token=\\\"
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/saved_addresses\" -X GET \\\n\t-H \"Authorization: Token token=\\\"utvVgqxLKdG2wow2iQaEddgJ\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Saved Addresses",
|
47
47
|
"description": "Listing the user's saved addresses",
|
48
48
|
"route": "/api/storefront/saved_addresses",
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"http_method": "GET",
|
50
|
+
"explanation": " List a customer's saved addresses. Useful for account management and\n for using saved addresses in checkout.\n"
|
51
51
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"requests": [
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
|
-
"Authorization": "Token token=\"
|
11
|
+
"Authorization": "Token token=\"LJbyDHDtMFqNR18wJnuGGVFz\""
|
12
12
|
},
|
13
13
|
"request_query_parameters": {
|
14
14
|
},
|
@@ -25,22 +25,22 @@
|
|
25
25
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
-
"ETag": "W/\"
|
28
|
+
"ETag": "W/\"37eb0ee0499d77232732215e7dd2a8f4\"",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "b21f1e16-627b-4270-86cf-50b30432faf5",
|
31
|
+
"X-Runtime": "0.007027",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "377"
|
34
34
|
},
|
35
35
|
"request_method": "GET",
|
36
|
-
"request_path": "/api/storefront/saved_addresses/
|
36
|
+
"request_path": "/api/storefront/saved_addresses/5d5eca51d4322a04dfbf6c0f",
|
37
37
|
"request_body": null,
|
38
38
|
"request_content_type": null,
|
39
39
|
"response_status": 200,
|
40
40
|
"response_status_text": "OK",
|
41
|
-
"response_body": "{\n \"user_id\": \"
|
41
|
+
"response_body": "{\n \"user_id\": \"5d5eca50d4322a04dfbf6c0c\",\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5d5eca51d4322a04dfbf6c0f\",\n \"id\": \"5d5eca51d4322a04dfbf6c0f\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n}",
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/saved_addresses/
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/saved_addresses/5d5eca51d4322a04dfbf6c0f\" -X GET \\\n\t-H \"Authorization: Token token=\\\"LJbyDHDtMFqNR18wJnuGGVFz\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Saved Addresses",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/json",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"TRJL1XAs4wqXZPSWRyGFsLiU\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -26,22 +26,22 @@
|
|
26
26
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
27
27
|
"X-Requested-With": "",
|
28
28
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
|
-
"ETag": "W/\"
|
29
|
+
"ETag": "W/\"56baa5da7eccc087e1bf88f0a12ca9ad\"",
|
30
30
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
31
|
-
"X-Request-Id": "
|
32
|
-
"X-Runtime": "0.
|
31
|
+
"X-Request-Id": "ecd8a2b4-6b1a-4c5c-a4b9-5bdf1bcea383",
|
32
|
+
"X-Runtime": "0.070343",
|
33
33
|
"Expires": "0",
|
34
34
|
"Content-Length": "377"
|
35
35
|
},
|
36
36
|
"request_method": "PATCH",
|
37
|
-
"request_path": "/api/storefront/saved_addresses/
|
37
|
+
"request_path": "/api/storefront/saved_addresses/5d5eca4fd4322a04dfbf6c04",
|
38
38
|
"request_body": "{\"street\":\"4059 Mt Lee Dr.\",\"city\":\"Hollywood\",\"region\":\"CA\",\"postal_code\":\"90068\",\"phone_number\":\"7545552390\"}",
|
39
39
|
"request_content_type": "application/json",
|
40
40
|
"response_status": 200,
|
41
41
|
"response_status_text": "OK",
|
42
|
-
"response_body": "{\n \"user_id\": \"
|
42
|
+
"response_body": "{\n \"user_id\": \"5d5eca4fd4322a04dfbf6c01\",\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5d5eca4fd4322a04dfbf6c04\",\n \"id\": \"5d5eca4fd4322a04dfbf6c04\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"4059 Mt Lee Dr.\",\n \"street_2\": null,\n \"city\": \"Hollywood\",\n \"country\": \"US\",\n \"region\": \"CA\",\n \"postal_code\": \"90068\",\n \"phone_number\": \"7545552390\",\n \"phone_extension\": null\n}",
|
43
43
|
"response_content_type": "application/json",
|
44
|
-
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses/
|
44
|
+
"curl": "curl \"https://www.example.com/api/storefront/saved_addresses/5d5eca4fd4322a04dfbf6c04\" -d '{\"street\":\"4059 Mt Lee Dr.\",\"city\":\"Hollywood\",\"region\":\"CA\",\"postal_code\":\"90068\",\"phone_number\":\"7545552390\"}' -X PATCH \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"TRJL1XAs4wqXZPSWRyGFsLiU\\\"\""
|
45
45
|
}
|
46
46
|
],
|
47
47
|
"resource": "Saved Addresses",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/json",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"gFyrUCzJ3YzRCAZvcP9GwvUw\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -26,10 +26,10 @@
|
|
26
26
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
27
27
|
"X-Requested-With": "",
|
28
28
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
|
-
"ETag": "W/\"
|
29
|
+
"ETag": "W/\"c7bf2ab3202f0c653f4049acf27a3908\"",
|
30
30
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
31
|
-
"X-Request-Id": "
|
32
|
-
"X-Runtime": "0.
|
31
|
+
"X-Request-Id": "e4457a5b-7fc8-4c81-8bd2-9ce6749da76d",
|
32
|
+
"X-Runtime": "0.010508",
|
33
33
|
"Expires": "0",
|
34
34
|
"Content-Length": "294"
|
35
35
|
},
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"request_content_type": "application/json",
|
40
40
|
"response_status": 200,
|
41
41
|
"response_status_text": "OK",
|
42
|
-
"response_body": "{\n \"user_id\": \"
|
42
|
+
"response_body": "{\n \"user_id\": \"5d5ec9cfd4322a04dfbf632b\",\n \"id\": \"5d5ec9cfd4322a04dfbf6330\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5d5ec9cfd4322a04dfbf6330\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n \"month\": 7,\n \"year\": 2024,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n}",
|
43
43
|
"response_content_type": "application/json",
|
44
|
-
"curl": "curl \"https://www.example.com/api/storefront/saved_credit_cards\" -d '{\"number\":\"4111111111111111\",\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"month\":\"7\",\"year\":\"2024\",\"cvv\":\"123\"}' -X POST \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"
|
44
|
+
"curl": "curl \"https://www.example.com/api/storefront/saved_credit_cards\" -d '{\"number\":\"4111111111111111\",\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"month\":\"7\",\"year\":\"2024\",\"cvv\":\"123\"}' -X POST \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"gFyrUCzJ3YzRCAZvcP9GwvUw\\\"\""
|
45
45
|
}
|
46
46
|
],
|
47
47
|
"resource": "Saved Credit Cards",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
11
|
"Content-Type": "application/x-www-form-urlencoded",
|
12
|
-
"Authorization": "Token token=\"
|
12
|
+
"Authorization": "Token token=\"2Eh6tA5VZJ9rUZroynrAWX4t\""
|
13
13
|
},
|
14
14
|
"request_query_parameters": {
|
15
15
|
},
|
@@ -26,19 +26,19 @@
|
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
28
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
29
|
-
"X-Request-Id": "
|
30
|
-
"X-Runtime": "0.
|
29
|
+
"X-Request-Id": "af987b0a-b5c8-4943-8678-869a04bd9a75",
|
30
|
+
"X-Runtime": "0.007623",
|
31
31
|
"Expires": "0"
|
32
32
|
},
|
33
33
|
"request_method": "DELETE",
|
34
|
-
"request_path": "/api/storefront/saved_credit_cards/
|
34
|
+
"request_path": "/api/storefront/saved_credit_cards/5d5ec9d0d4322a04dfbf633c",
|
35
35
|
"request_body": null,
|
36
36
|
"request_content_type": "application/x-www-form-urlencoded",
|
37
37
|
"response_status": 204,
|
38
38
|
"response_status_text": "No Content",
|
39
39
|
"response_body": null,
|
40
40
|
"response_content_type": null,
|
41
|
-
"curl": "curl \"https://www.example.com/api/storefront/saved_credit_cards/
|
41
|
+
"curl": "curl \"https://www.example.com/api/storefront/saved_credit_cards/5d5ec9d0d4322a04dfbf633c\" -d '' -X DELETE \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Authorization: Token token=\\\"2Eh6tA5VZJ9rUZroynrAWX4t\\\"\""
|
42
42
|
}
|
43
43
|
],
|
44
44
|
"resource": "Saved Credit Cards",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"requests": [
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
|
-
"Authorization": "Token token=\"
|
11
|
+
"Authorization": "Token token=\"9B4z2rzwUdRdP8GVBseDg2CQ\""
|
12
12
|
},
|
13
13
|
"request_query_parameters": {
|
14
14
|
},
|
@@ -25,10 +25,10 @@
|
|
25
25
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
-
"ETag": "W/\"
|
28
|
+
"ETag": "W/\"74391c9491520c0e402264bff4208c55\"",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "acc4a14f-1545-4d50-8165-2511cb79de7e",
|
31
|
+
"X-Runtime": "0.009153",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "571"
|
34
34
|
},
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"request_content_type": null,
|
39
39
|
"response_status": 200,
|
40
40
|
"response_status_text": "OK",
|
41
|
-
"response_body": "{\n \"user_id\": \"
|
41
|
+
"response_body": "{\n \"user_id\": \"5d5ec9ced4322a04dfbf6324\",\n \"credit_cards\": [\n {\n \"id\": \"5d5ec9ced4322a04dfbf6328\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5d5ec9ced4322a04dfbf6328\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1881\",\n \"month\": 3,\n \"year\": 2023,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n },\n {\n \"id\": \"5d5ec9ced4322a04dfbf6329\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5d5ec9ced4322a04dfbf6329\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n \"month\": 7,\n \"year\": 2024,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n }\n ]\n}",
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/saved_credit_cards\" -X GET \\\n\t-H \"Authorization: Token token=\\\"
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/saved_credit_cards\" -X GET \\\n\t-H \"Authorization: Token token=\\\"9B4z2rzwUdRdP8GVBseDg2CQ\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Saved Credit Cards",
|
47
47
|
"description": "Listing the user's saved credit cards",
|
48
48
|
"route": "/api/storefront/saved_credit_cards",
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"http_method": "GET",
|
50
|
+
"explanation": " List a customer's saved addresses. Useful for account management.\n These addresses will be available to the customer in an\n authenticated checkout.\n"
|
51
51
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"requests": [
|
9
9
|
{
|
10
10
|
"request_headers": {
|
11
|
-
"Authorization": "Token token=\"
|
11
|
+
"Authorization": "Token token=\"3gstq5QbUorVGaQ68esor1nD\""
|
12
12
|
},
|
13
13
|
"request_query_parameters": {
|
14
14
|
},
|
@@ -25,22 +25,22 @@
|
|
25
25
|
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
26
|
"X-Requested-With": "",
|
27
27
|
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
-
"ETag": "W/\"
|
28
|
+
"ETag": "W/\"52292c68f1c4a0050eafa702eb3dd1d6\"",
|
29
29
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
-
"X-Request-Id": "
|
31
|
-
"X-Runtime": "0.
|
30
|
+
"X-Request-Id": "291bedc7-9905-4898-98e8-f70e8107d308",
|
31
|
+
"X-Runtime": "0.006976",
|
32
32
|
"Expires": "0",
|
33
33
|
"Content-Length": "294"
|
34
34
|
},
|
35
35
|
"request_method": "GET",
|
36
|
-
"request_path": "/api/storefront/saved_credit_cards/
|
36
|
+
"request_path": "/api/storefront/saved_credit_cards/5d5ec9d0d4322a04dfbf6336",
|
37
37
|
"request_body": null,
|
38
38
|
"request_content_type": null,
|
39
39
|
"response_status": 200,
|
40
40
|
"response_status_text": "OK",
|
41
|
-
"response_body": "{\n \"user_id\": \"
|
41
|
+
"response_body": "{\n \"user_id\": \"5d5ec9d0d4322a04dfbf6332\",\n \"id\": \"5d5ec9d0d4322a04dfbf6336\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5d5ec9d0d4322a04dfbf6336\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1881\",\n \"month\": 3,\n \"year\": 2023,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n}",
|
42
42
|
"response_content_type": "application/json",
|
43
|
-
"curl": "curl -g \"https://www.example.com/api/storefront/saved_credit_cards/
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/saved_credit_cards/5d5ec9d0d4322a04dfbf6336\" -X GET \\\n\t-H \"Authorization: Token token=\\\"3gstq5QbUorVGaQ68esor1nD\\\"\""
|
44
44
|
}
|
45
45
|
],
|
46
46
|
"resource": "Saved Credit Cards",
|