Aller au contenu
Reponse.ai LogoDocs
DocsAPISDKsGuides

Rechercher dans la documentation

Rechercher un article...

Premiers pas

  • Overview
  • Architecture
  • Installation
  • Authentication
  • First Request

Produits & Collections

  • Products — List
  • Products — Get
  • Products — Metafields
  • Collections — List
  • Collections — Get
  • Collections — Products

Panier & Checkout

  • Cart — Create
  • Cart — Get
  • Cart — Add Item
  • Cart — Update Item
  • Cart — Remove Item
  • Cart — Apply Promotion
  • Checkout — Stripe
  • Checkout — Payment Intent
  • Checkout — ACP

Commandes & Fulfillment

  • Orders — Create
  • Orders — Get
  • Orders — Confirm
  • Orders — Cancel
  • Orders — Fulfill
  • Orders — Refund

Commerce

  • Inventory — Get
  • Inventory — Update
  • Shipping — Rates
  • Discounts — List
  • Discounts — Create
  • Discounts — Validate
  • Subscriptions — Manage

Fidélité & Cartes cadeaux

  • Loyalty — Balance
  • Loyalty — Redeem
  • Loyalty — Referral
  • Gift Cards — List
  • Gift Cards — Redeem

Tickets & Support

  • Tickets — List
  • Tickets — Create
  • Tickets — Reply

Plateforme

  • Product Feed — JSON
  • Product Feed — CSV
  • Theme — Get
  • Approvals — Execute
  • Approvals — Reject
  • Geocode

SDKs

  • SDK Overview
  • TypeScript SDK
  • React Hooks

Guides

  • Chat Widget
  • Shopify Sync
  • Storefront Starter
  • Loyalty Program
  • Discounts & Promotions
  • Subscriptions
  • Klaviyo Integration
  • Custom Domains
  • Agentic Commerce (ACP)
  • A2A Protocol
  • AI Engines
  • MCP Server

Webhooks

  • Webhooks Overview
  • Events Reference
  • Shopify Webhooks
  • Stripe Webhooks
  • Reviews (Stamped / Trustpilot)
  • Logistics
  • Email Inbound

Ressources

  • Environment Variables
  • Rate Limits
  • Changelog
DocsCommerceSubscriptions — Manage

Subscriptions — Manage

Modifie un abonnement (reporter ou expédier maintenant).

1 min de lecture/Mis à jour le 19 août 2026
Sur cette page

Vue d'ensemble

Met à jour un abonnement actif. Utilisez `delay` avec une `target_date` future pour repousser la prochaine livraison, ou `ship_now` pour déclencher la prochaine commande immédiatement. Seuls les abonnements actifs peuvent être modifiés.

Authentification

Cet endpoint requiert un token Bearer. Incluez votre clé API workspace dans le header `Authorization`.

Authorization: Bearer <votre_cle_api>

Requête

**PATCH** `/v1/subscriptions/:id`

Paramètres de chemin

NomTypeRequisDescription
idstring (uuid)✅L'ID de l'abonnement.

Paramètres du corps

NomTypeRequisDescription
actionstring✅delay ou ship_now.
target_datestring (ISO)❌Requis pour delay; doit être après la fin de période actuelle.

Réponse

json
{ "success": true }

Exemple SDK

typescript
await reponse.subscriptions.update({ path: { id }, body: { action: "delay", target_date: "2026-07-01" } });

Erreurs

StatutSignification
400Action invalide, target_date manquante/invalide, ou abonnement non actif.
404Abonnement introuvable.
PrécédentDiscounts — Validate
SuivantLoyalty — Balance