Moving from v0 to v1

Each API v0 call and the v1 call that replaces it, or why there is none yet.

v0 has 63 calls. 46 have a v1 successor; 17 do not, and each says why below. A call marked No v1 call yet keeps working on v0 until v1 has one.

What changes besides the path

  • Keys. v1 takes a v1 API key in Authorization: Bearer <key>. A v0 key does not work on v1. Create v1 keys in the dashboard under Developers › API keys.
  • Retries. Send an Idempotency-Key header (1 to 255 characters). Every create and every call that moves money needs one; other writes accept one. It replaces the refund's idempotencyKey body field. A replayed answer carries Idempotent-Replayed.
  • Lists. Pages take limit (1 to 100, default 20) and cursor. The answer is { data, nextCursor }; pass nextCursor back as cursor until it is null.
  • Errors. Errors come as application/problem+json with a requestId. Quote it when you contact support.
  • Writes. Most v1 writes are POST or PATCH on the resource itself, not on /update or /create paths.

Discounts

v0 callv1 call
GET /v0/discounts/listGET /v1/discounts
POST /v0/discounts/createPOST /v1/discounts
GET /v0/discounts/{discountId}GET /v1/discounts/{discountId}
PATCH /v0/discounts/{discountId}/updatePATCH /v1/discounts/{discountId}
PATCH /v0/discounts/{discountId}/archivePOST /v1/discounts/{discountId}/archive

Offers

v0 callv1 call
GET /v0/offers/listGET /v1/products or GET /v1/products/{productId}
POST /v0/offers/createPOST /v1/offers
GET /v0/offers/{offerId}GET /v1/offers/{offerId}
PATCH /v0/offers/{offerId}/updatePATCH /v1/offers/{offerId}
PATCH /v0/offers/{offerId}/archivePOST /v1/offers/{offerId}/archive
POST /v0/offers/{offerId}/keys/addPOST /v1/offers/{offerId}/keys
DELETE /v0/offers/{offerId}/keys/removeAllUnsoldPOST /v1/offers/{offerId}/keys/remove-unsold
DELETE /v0/offers/{offerId}/keys/{keyId}/removeUnsoldPOST /v1/offers/{offerId}/keys/{keyId}/remove

Orders

v0 callv1 call
GET /v0/orders/listGET /v1/orders
GET /v0/orders/{orderIdOrNumber}GET /v1/orders/{orderId}
PATCH /v0/orders/{orderIdOrNumber}/updateNot in v1. v1 has no order edit: an order's status and amounts follow its payment. To cancel an order, use POST /v1/orders/{orderId}/cancel.
PATCH /v0/orders/{orderIdOrNumber}/cancelNo v1 call yet. Cancelling an order is not in the published v1 spec yet.
PATCH /v0/orders/{orderIdOrNumber}/refundNo v1 call yet. Creating a refund is not in the published v1 spec yet.
POST /v0/orders/{orderIdOrNumber}/items/{cartOfferId}/downloadPOST /v1/orders/{orderId}/items/{itemId}/download

Payments

v0 callv1 call
GET /v0/payments/listNo v1 call yet. v1 has no payment resource yet. GET /v1/orders lists orders, not each renewal or refund payment.
GET /v0/payments/{paymentId}No v1 call yet. v1 has no payment resource yet. GET /v1/charges/{chargeId} reads only charges created through v1.
PATCH /v0/payments/{paymentId}/cancelNo v1 call yet. Cancelling an order is not in the published v1 spec yet.

Customer portal

v0 callv1 call
GET /v0/portal/urlNo v1 call yet. Opening a customer portal session is not in the published v1 spec yet.

Products

v0 callv1 call
GET /v0/products/listGET /v1/products
POST /v0/products/createPOST /v1/products
GET /v0/products/{productId}GET /v1/products/{productId}
PATCH /v0/products/{productId}/archivePOST /v1/products/{productId}/archive
PATCH /v0/products/{productId}/updatePATCH /v1/products/{productId}
POST /v0/products/{productId}/duplicatePOST /v1/products/{productId}/duplicate
POST /v0/products/{productId}/variants/addPOST /v1/products/{productId}/variants
PATCH /v0/products/{productId}/variants/{variantId}/updatePATCH /v1/variants/{variantId}
PATCH /v0/products/{productId}/variants/{variantId}/archivePOST /v1/variants/{variantId}/archive
POST /v0/products/{productId}/plans/addPOST /v1/offers
PATCH /v0/products/{productId}/plans/{planId}/updatePATCH /v1/offers/{offerId}
PATCH /v0/products/{productId}/plans/{planId}/archivePOST /v1/offers/{offerId}/archive

Reports

v0 callv1 call
GET /v0/reports/ordersNo v1 call yet. No v1 call returns the order report's columns yet; GET /v1/orders does not carry them.

Subscriptions

v0 callv1 call
GET /v0/subscriptions/listGET /v1/subscriptions
POST /v0/subscriptions/createNo v1 call yet. Creating, updating and previewing the next payment of a subscription is not in the published v1 spec yet.
GET /v0/subscriptions/{subscriptionIdOrNumber}GET /v1/subscriptions/{subscriptionId}
GET /v0/subscriptions/{subscriptionIdOrNumber}/upcomingPaymentNo v1 call yet. Creating, updating and previewing the next payment of a subscription is not in the published v1 spec yet.
PATCH /v0/subscriptions/{subscriptionIdOrNumber}/updateNo v1 call yet. Creating, updating and previewing the next payment of a subscription is not in the published v1 spec yet.
POST /v0/subscriptions/{subscriptionIdOrNumber}/chargePOST /v1/charges
PATCH /v0/subscriptions/{subscriptionIdOrNumber}/cancelPOST /v1/subscriptions/{subscriptionId}/cancel
PATCH /v0/subscriptions/{subscriptionIdOrNumber}/pauseCollectionPOST /v1/subscriptions/{subscriptionId}/pause
PATCH /v0/subscriptions/{subscriptionIdOrNumber}/endTrialPOST /v1/subscriptions/{subscriptionId}/end-trial
POST /v0/subscriptions/{subscriptionIdOrNumber}/paymentMethodSessionNo v1 call yet. Starting a payment method session is not in the published v1 spec yet.

Tax

v0 callv1 call
POST /v0/tax/calculatePOST /v1/tax-calculations

Users

v0 callv1 call
GET /v0/users/listGET /v1/customers
POST /v0/users/createNo v1 call yet. Creating, updating, archiving and restoring a customer is not in the published v1 spec yet.
GET /v0/users/{userId}GET /v1/customers/{customerId}
PATCH /v0/users/{userId}/updateNo v1 call yet. Creating, updating, archiving and restoring a customer is not in the published v1 spec yet.
PATCH /v0/users/{userId}/archiveNo v1 call yet. Creating, updating, archiving and restoring a customer is not in the published v1 spec yet.
PATCH /v0/users/{userId}/unarchiveNo v1 call yet. Creating, updating, archiving and restoring a customer is not in the published v1 spec yet.
GET /v0/users/{userId}/inventoryGET /v1/customers/{customerId}/inventory

Checkout elements

v0 callv1 call
POST /v0/elements/checkout/createPOST /v1/checkout-sessions
GET /v0/elements/checkout/listGET /v1/checkout-sessions

Webhooks

v0 callv1 call
GET /v0/webhooks/listGET /v1/webhook-endpoints
POST /v0/webhooks/createPOST /v1/webhook-endpoints
POST /v0/webhooks/sendTestEventPOST /v1/webhook-endpoints/{endpointId}/test
GET /v0/webhooks/{webhookId}GET /v1/webhook-endpoints/{endpointId}
PATCH /v0/webhooks/{webhookId}/updatePATCH /v1/webhook-endpoints/{endpointId}
PATCH /v0/webhooks/{webhookId}/archivePOST /v1/webhook-endpoints/{endpointId}/remove
GET /v0/webhooks/{webhookId}/attemptsNo v1 call yet. v1 can retry a delivery by its id but cannot list deliveries yet.

Last updated