Download OpenAPI specification:Download
Welcome to the Customer API Reference. This API allows you to view and manage subscriptions on behalf of specific customer in your application. With it, you can let logged in customers to access detailed subscription information, and even perform operations such as creating, updating, and cancelling subscriptions. This guide will provide detailed instructions on how to use the various endpoints and data models, making it easier than ever to integrate your custom subscriber portal with the platform.
This API works with two authorization modes:
To use the implicit authorization simply use the endpoint behind the Shopify App Proxy by replacing /customer
prefix with /apps/juo/api
. The request will be automatically authenticated with currently logged customer in the Shopify store.
The explicit authorization requires passing a short lived Bearer token in the request's Authorization
header which can be obtained with "Verify" endpoint.
Get build-a-box configuration
id required | string non-empty |
{- "title": "string",
- "parentProduct": "string",
- "minProductsCount": 0,
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "freeVariants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
]
}
Get available products
id required | string non-empty |
contractId required | string non-empty |
q | string non-empty |
[- {
- "id": "string",
- "title": "string",
- "description": "string",
- "featuredImage": {
- "url": "string",
- "altText": "string"
}, - "hasOnlyDefaultVariant": true,
- "variants": [
- {
- "id": "string",
- "availableForSale": true,
- "title": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "basePrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "image": {
- "url": "string",
- "altText": "string"
}
}
]
}
]
Get products by ids
ids required | Array of strings[ items [ 1 .. 20 ] characters ] |
[- {
- "id": "string",
- "title": "string",
- "featuredImage": {
- "id": "string",
- "url": "string",
- "altText": "string"
}
}
]
Get product variants
id required | string non-empty |
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
required | string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string or string |
[- {
- "id": "string",
- "title": "string",
- "availableForSale": true,
- "price": {
- "amount": "string",
- "currencyCode": "string"
}
}
]
Activate payment method
methodId required | string non-empty |
contractId required | string |
{- "contractId": "string"
}
{ }
[- {
- "id": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "hasCancellationDiscount": true,
- "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}
}
]
contractId required | string non-empty ^(?!gid://).+$ |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "hasCancellationDiscount": true,
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
], - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}
}
contractId required | string non-empty ^(?!gid://).+$ |
firstName required | string non-empty |
{- "firstName": "string"
}
{ }
contractId required | string non-empty ^(?!gid://).+$ |
cancellationReason | string non-empty |
{- "cancellationReason": "string"
}
{ }
contractId required | string non-empty ^(?!gid://).+$ |
[- {
- "id": "string",
- "name": "string",
- "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY"
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY"
}
}
]
contractId required | string non-empty ^(?!gid://).+$ |
plan required | string non-empty |
date required | string <date-time> |
{- "date": "2019-08-24T14:15:22Z"
}
{ }
contractId required | string non-empty |
shippingMethodHandle required | string non-empty |
{- "shippingMethodHandle": "string"
}
{ }
contractId required | string non-empty |
parentId required | string non-empty |
required | Array of objects |
shippingMethodHandle | string non-empty |
{- "parentId": "string",
- "items": [
- {
- "variantId": "string",
- "quantity": 1
}
], - "shippingMethodHandle": "string"
}
{ }
Get last order
contractId required | string non-empty ^(?!gid://).+$ |
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lineItems": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
]
}
contractId required | string non-empty |
productVariantId required | string non-empty |
quantity | number >= 1 |
renewalLimit | number >= 1 |
shippingMethodHandle | string non-empty |
{- "productVariantId": "string",
- "quantity": 1,
- "renewalLimit": 1,
- "shippingMethodHandle": "string"
}
{ }
contractId required | string non-empty |
lineId required | string non-empty |
q | string non-empty |
string or string |
[- {
- "id": "string",
- "title": "string",
- "description": "string",
- "featuredImage": {
- "url": "string",
- "altText": "string"
}, - "hasOnlyDefaultVariant": true,
- "variants": [
- {
- "id": "string",
- "availableForSale": true,
- "title": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "basePrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "image": {
- "url": "string",
- "altText": "string"
}
}
]
}
]
contractId required | string non-empty |
lineId required | string non-empty |
productVariantId required | string non-empty |
quantity required | integer >= 1 |
shippingMethodHandle | string non-empty |
{- "quantity": 1,
- "shippingMethodHandle": "string"
}
{ }
contractId required | string non-empty |
lineId required | string non-empty |
{- "shippingMethodHandle": "string"
}
{ }
Get settings
lang required | string Enum: "pl" "en" "de" "nl" |
{- "customerPortal": {
- "subscriptionsManagement": {
- "lines": {
- "edit": true,
- "remove": true,
- "add": true
}, - "cancel": true,
- "pause": true,
- "skip": true,
- "delivery": {
- "editAddress": true,
- "editMethod": true
}, - "redeemDiscount": true
}
}, - "retention": {
- "cancellationPoll": {
- "enabled": true,
- "messageTitle": "string",
- "messageDescription": "string",
- "answers": {
- "property1": {
- "title": "string",
- "action": "show-confirmation"
}, - "property2": {
- "title": "string",
- "action": "show-confirmation"
}
}
}, - "discountOnCancellation": {
- "enabled": true,
- "discount": {
- "type": "percentage",
- "value": 0
}, - "usageLimit": 0,
- "messageTitle": "string",
- "messageDescription": "string"
}
}
}
Welcome to the Admin API Reference. This API allows you to view and manage all subscriptions in your application. With it, you can access detailed subscription information, and perform operations such as creating, updating, and cancelling subscriptions. This guide will provide detailed instructions on how to use the various endpoints and data models, making it easier than ever to integrate your custom workflows with the platform.
The Admin API uses token based authentication, every request must include the token in the X-Juo-Access-Token
header. The API tokens can be obtained in the Settings page.
[- {
- "id": 1,
- "title": "string",
- "description": "string",
}
]
{- "enabled": true,
- "memberships": [
- {
- "id": "string",
- "status": "ACTIVE",
- "customer": {
- "id": 0,
- "displayName": "string",
- "email": null
}, - "expiresAt": "2019-08-24T14:15:22Z",
- "subscription": {
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
]
}
id required | string non-empty |
{- "id": "string",
- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "type": "FIXED_AMOUNT",
- "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "combineLines": true,
- "excludeSubscriptions": true,
- "isDeleted": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
id required | string non-empty |
title | string |
message | string |
status | string Enum: "ACTIVE" "INACTIVE" |
Array of objects | |
type | string Enum: "FIXED_AMOUNT" "PERCENTAGE" |
Array of objects | |
combineLines | boolean |
excludeSubscriptions | boolean |
object |
{- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "type": "FIXED_AMOUNT",
- "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "combineLines": true,
- "excludeSubscriptions": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
required | object |
{- "discount": {
- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "type": "FIXED_AMOUNT",
- "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "combineLines": true,
- "excludeSubscriptions": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
}
{- "id": "string"
}
[- {
- "id": "string",
- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "type": "FIXED_AMOUNT",
- "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "combineLines": true,
- "excludeSubscriptions": true,
- "isDeleted": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
]
{
}
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
start | string <date> |
end | string <date> |
contractId | string non-empty |
[- {
- "owner_entity": "string",
- "owner_id": "string",
- "actor_type": "string",
- "actor_id": null,
- "date": "2019-08-24T14:15:22Z",
- "data": {
- "event": "subscription:frequency-changed",
- "payload": {
- "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}
}
}
}
]
required | string or string or string |
redirectPath required | string <uri-reference> |
{- "tier": "developer",
- "redirectPath": "../dictionary"
}
{- "confirmationUrl": null
}
{- "id": "string",
- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "parentProduct": "string",
- "minProductsCount": 0,
- "minProductsCountForFreeProduct": 1,
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "freeVariants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "isDeleted": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
id required | string non-empty |
title | string |
message | string |
status | string Enum: "ACTIVE" "INACTIVE" |
parentProduct | string |
minProductsCount | number |
minProductsCountForFreeProduct | number >= 1 |
Array of objects | |
Array of objects | |
Array of objects | |
object |
{- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "parentProduct": "string",
- "minProductsCount": 0,
- "minProductsCountForFreeProduct": 1,
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "freeVariants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
[- {
- "id": "string",
- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "parentProduct": "string",
- "minProductsCount": 0,
- "minProductsCountForFreeProduct": 1,
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "freeVariants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "isDeleted": true,
- "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
]
title required | string |
message required | string |
status required | string Enum: "ACTIVE" "INACTIVE" |
parentProduct required | string |
minProductsCount required | number |
minProductsCountForFreeProduct required | number >= 1 |
required | Array of objects |
required | Array of objects |
required | Array of objects |
required | object |
{- "title": "string",
- "message": "string",
- "status": "ACTIVE",
- "parentProduct": "string",
- "minProductsCount": 0,
- "minProductsCountForFreeProduct": 1,
- "variants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "tiers": [
- {
- "value": 0,
- "productsCount": 0
}
], - "freeVariants": [
- {
- "id": "string",
- "variants": [
- {
- "id": "string"
}
]
}
], - "combinesWith": {
- "productDiscounts": true,
- "orderDiscounts": true,
- "shippingDiscounts": true
}
}
{- "id": "string"
}
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parentProduct": "string",
- "sellingPlan": {
- "id": 1,
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": null,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "cutoff": null,
- "preAnchorBehavior": "ASAP"
}
}, - "prepaid": {
- "orders": 2,
- "discount": { }
}, - "steps": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "startDay": "2019-08-24",
- "endDay": "2019-08-24",
- "fulfillmentDay": null,
- "billingDay": null,
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1
}
]
}
]
}
]
parentProductId required | string^\d+$ |
required | object |
required | null or object |
{- "parentProductId": "string",
- "sellingPlan": {
- "name": "string",
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "cutoff": 1,
- "preAnchorBehavior": "ASAP"
}, - "pricingPolicies": [
- {
- "type": "fixed",
- "adjustment": {
- "type": "percentage",
- "value": 100
}
}
]
}, - "prepaid": { }
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
id required | string non-empty |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parentProduct": "string",
- "sellingPlan": {
- "id": 1,
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": null,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "cutoff": null,
- "preAnchorBehavior": "ASAP"
}
}, - "prepaid": {
- "orders": 2,
- "discount": { }
}, - "steps": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "startDay": "2019-08-24",
- "endDay": "2019-08-24",
- "fulfillmentDay": null,
- "billingDay": null,
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1
}
]
}
]
}
id required | string <uuid> non-empty |
parentProductId | string^\d+$ |
object | |
null or object |
{- "parentProductId": "string",
- "sellingPlan": {
- "name": "string",
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "cutoff": 1,
- "preAnchorBehavior": "ASAP"
}, - "pricingPolicies": [
- {
- "type": "fixed",
- "adjustment": {
- "type": "percentage",
- "value": 100
}
}
]
}, - "prepaid": { }
}
id required | string <uuid> non-empty |
title required | string non-empty |
required | Array of objects |
startDay | string <date> |
{- "title": "string",
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1
}
], - "startDay": "2019-08-24"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
id required | string <uuid> non-empty |
stepId required | string <uuid> non-empty |
title | string non-empty |
Array of objects |
{- "title": "string",
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1
}
]
}
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
q | string non-empty |
status | Array of strings non-empty Items Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "NEVER_SUBSCRIBED" "PAUSED" |
string or string | |
reverse | boolean |
[- {
- "id": "string",
- "email": "string",
- "displayName": "string",
- "productSubscriberStatus": "ACTIVE",
- "contractsCount": {
- "active": "string"
}
}
]
{
}
id required | string non-empty |
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
[- {
- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "title": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}
}
]
}
]
id required | string non-empty |
expiresIn | integer ( 0 .. 259200000 ] |
{- "expiresIn": 259200000
}
{- "delegatedToken": "string",
}
start required | string <date> |
end required | string <date> |
required | string or string |
[- {
- "date": "2019-08-24T14:15:22Z",
- "new": 0,
- "newCumulative": 0,
- "retained": null
}
]
start required | string <date> |
end required | string <date> |
required | string or string |
[- {
- "date": "2019-08-24T14:15:22Z",
- "new": 0,
- "newCumulative": 0,
- "retained": null
}
]
Returns the aggregated value from the specified time range
required | string or string or string or string |
start required | string <date-time> |
end required | string <date-time> |
required | string or string or string or string or string or string |
object |
{- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "aggregate": "min",
- "dimensions": {
- "property1": "string",
- "property2": "string"
}
}
{- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "value": 0
}
Returns the aggregated values from most of every time window within the specified time range
required | string or string or string or string |
start required | string <date-time> |
end required | string <date-time> |
required | string or string or string or string |
required | string or string or string or string or string or string |
object |
{- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "window": "hour",
- "aggregate": "min",
- "dimensions": {
- "property1": "string",
- "property2": "string"
}
}
[- {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "value": 0
}
]
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
required | string or string or string or string or string Default: "active" |
order required | string Default: "desc" |
start required | string <date-time> |
end required | string <date-time> |
[- {
- "productId": "string",
- "revenue": 0,
- "arpu": 0,
- "renewing7": 0,
- "renewing30": 0,
- "active": 0
}
]
{
}
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
required | string or string or string or string Default: "totalQuantity" |
order required | string Default: "desc" |
start required | string <date-time> |
end required | string <date-time> |
[- {
- "productId": "string",
- "totalQuantity": 0,
- "averageQuantity": 0,
- "recurringRevenue": 0,
- "revenue": 0
}
]
id required | string non-empty |
{- "id": "string",
- "title": "string",
- "status": "inactive",
- "parentProduct": "string",
- "steps": [
- {
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1,
- "condition": {
- "type": "always",
- "input": null
}
}
], - "rules": [
- {
- "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}, - "condition": {
- "type": "always",
- "input": null
}
}
]
}
], - "isDeleted": true,
- "repeatFrom": 0,
- "useParentProductPrice": true,
- "removeParentProductWhenFinished": true,
- "fulfillParentProduct": true,
- "hideProducts": true
}
id required | string non-empty |
title | string non-empty |
status | string Enum: "inactive" "active" |
parentProduct | string non-empty |
Array of objects | |
repeatFrom | integer >= 0 |
useParentProductPrice | boolean |
removeParentProductWhenFinished | boolean |
fulfillParentProduct | boolean |
hideProducts | boolean |
{- "title": "string",
- "status": "inactive",
- "parentProduct": "string",
- "steps": [
- {
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1,
- "condition": {
- "type": "always",
- "input": null
}
}
], - "rules": [
- {
- "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}, - "condition": {
- "type": "always",
- "input": null
}
}
]
}
], - "repeatFrom": 0,
- "useParentProductPrice": true,
- "removeParentProductWhenFinished": true,
- "fulfillParentProduct": true,
- "hideProducts": true
}
[- {
- "id": "string",
- "title": "string",
- "status": "inactive",
- "parentProduct": "string",
- "steps": [
- {
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1,
- "condition": {
- "type": "always",
- "input": null
}
}
], - "rules": [
- {
- "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}, - "condition": {
- "type": "always",
- "input": null
}
}
]
}
], - "isDeleted": true,
- "repeatFrom": 0,
- "useParentProductPrice": true,
- "removeParentProductWhenFinished": true,
- "fulfillParentProduct": true,
- "hideProducts": true
}
]
title required | string non-empty |
status required | string Enum: "inactive" "active" |
parentProduct required | string non-empty |
required | Array of objects |
repeatFrom required | integer >= 0 |
useParentProductPrice required | boolean |
removeParentProductWhenFinished required | boolean |
fulfillParentProduct required | boolean |
hideProducts required | boolean |
{- "title": "string",
- "status": "inactive",
- "parentProduct": "string",
- "steps": [
- {
- "variants": [
- {
- "id": "string",
- "productId": "string",
- "quantity": 1,
- "condition": {
- "type": "always",
- "input": null
}
}
], - "rules": [
- {
- "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}, - "condition": {
- "type": "always",
- "input": null
}
}
]
}
], - "repeatFrom": 0,
- "useParentProductPrice": true,
- "removeParentProductWhenFinished": true,
- "fulfillParentProduct": true,
- "hideProducts": true
}
{- "id": "string"
}
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
[- {
- "id": "string",
- "billingPolicy": {
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": null,
- "type": "MONTHDAY"
}
], - "interval": "DAY",
- "intervalCount": 1,
- "minCycles": null,
- "maxCycles": null
}, - "createdAt": "2019-08-24T14:15:22Z",
- "currencyCode": "AED",
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
], - "customer": { },
- "customerPaymentMethodId": null,
- "deliveryMethod": { },
- "deliveryPolicy": {
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": null,
- "type": "MONTHDAY"
}
], - "interval": "DAY",
- "intervalCount": 1
}, - "deliveryPrice": {
- "amount": "string",
- "currencyCode": "AED"
}, - "discounts": [
- {
- "id": "string",
- "entitledLines": {
- "all": true
}, - "recurringCycleLimit": null,
- "rejectionReason": null,
- "targetType": "LINE_ITEM",
- "title": null,
- "type": "AUTOMATIC_DISCOUNT",
- "usageCount": 0,
- "value": {
- "type": "FIXED_AMOUNT",
- "amount": {
- "amount": "string",
- "currencyCode": "AED"
}, - "appliesOnEachItem": true
}
}
], - "lines": [
- {
- "id": "string",
- "currentPrice": {
- "amount": "string",
- "currencyCode": "AED"
}, - "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
], - "pricingPolicy": { },
- "productId": null,
- "quantity": 1,
- "sellingPlanId": null,
- "sellingPlanName": null,
- "sku": null,
- "title": null,
- "variantId": null,
- "variantTitle": null
}
], - "nextBillingDate": null,
- "note": null,
- "orders": [
- "string"
], - "status": "ACTIVE",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentCycle": 1
}
]
id required | number >= 1 |
name | string non-empty |
merchantCode | string non-empty |
description | string or null non-empty |
{- "name": "string",
- "merchantCode": "string",
- "description": "string"
}
id required | number >= 1 |
productVariantIds required | Array of integers non-empty [ items >= 1 ] |
{- "productVariantIds": [
- 1
]
}
id required | number >= 1 |
productVariantIds required | Array of integers non-empty [ items >= 1 ] |
{- "productVariantIds": [
- 1
]
}
id required | string^\d+$ |
required | object or object or object or object or object or object or object or object or object |
required | object or object or object or object or object |
{- "condition": {
- "type": "always",
- "input": null
}, - "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}
}
{- "id": "string"
}
id required | string^\d+$ |
ruleId required | string |
object or object or object or object or object or object or object or object or object | |
object or object or object or object or object |
{- "condition": {
- "type": "always",
- "input": null
}, - "action": {
- "type": "add-free-product",
- "input": {
- "variantId": "string"
}
}
}
id required | number >= 1 |
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
[- {
- "id": 1,
- "name": "string",
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": null,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "cutoffDay": null,
- "day": 1,
- "month": 1,
- "type": "YEARDAY"
}
], - "cutoff": null,
- "preAnchorBehavior": "ASAP"
}, - "pricingPolicies": [
- {
- "type": "fixed",
- "adjustment": {
- "type": "percentage",
- "value": 100
}
}
]
}
]
id required | number >= 1 |
name required | string non-empty |
required | object |
required | object |
Array of objects or objects |
{- "name": "string",
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "cutoff": 1,
- "preAnchorBehavior": "ASAP"
}, - "pricingPolicies": [
- {
- "type": "fixed",
- "adjustment": {
- "type": "percentage",
- "value": 100
}
}
]
}
id required | number >= 1 |
planId required | number >= 1 |
name required | string non-empty |
required | object |
required | object |
Array of objects or objects |
{- "name": "string",
- "billingPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "daysBefore": null
}, - "deliveryPolicy": {
- "interval": "DAY",
- "intervalCount": 1,
- "anchors": [
- {
- "type": "YEARDAY",
- "cutoffDay": null,
- "month": 1,
- "day": 1
}
], - "cutoff": 1,
- "preAnchorBehavior": "ASAP"
}, - "pricingPolicies": [
- {
- "type": "fixed",
- "adjustment": {
- "type": "percentage",
- "value": 100
}
}
]
}
lang required | string Enum: "pl" "en" "de" "nl" |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object |
{- "emailTemplates": {
- "generic": {
- "logoUrl": null,
- "companyName": "string"
}, - "subscriptionBilled": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionPurchased": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionBillingFailed": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionRenewal": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionCancelled": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionOutOfStock": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionBillingActionRequired": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}
}, - "smsTemplates": {
- "featureEnabled": true,
- "featureRequested": true,
- "generic": {
- "fromField": "string"
}, - "allowedSendingHours": [
- {
- "hours": [
- 24,
- 24
], - "days": [
- 1,
- 1
]
}
], - "subscriptionRenewal": {
- "enabled": true,
- "message": "string"
}, - "subscriptionBillingActionRequired": {
- "enabled": true,
- "message": "string"
}, - "orderUnpaid": {
- "enabled": true,
- "message": "string"
}
}, - "renewalConditions": {
- "requireInStock": true
}, - "customerPortal": {
- "subscriptionsManagement": {
- "lines": {
- "edit": true,
- "remove": true,
- "add": true
}, - "cancel": true,
- "pause": true,
- "skip": true,
- "delivery": {
- "editAddress": true,
- "editMethod": true
}, - "redeemDiscount": true
}, - "theme": {
- "text": {
- "main": {
- "color": "string"
}, - "secondary": {
- "color": "string"
}
}, - "buttons": {
- "main": {
- "backgroundColor": "string",
- "borderColor": "string",
- "borderRadius": "string",
- "color": "string"
}, - "secondary": {
- "backgroundColor": "string",
- "borderColor": "string",
- "borderRadius": "string",
- "color": "string"
}
}
}
}, - "retention": {
- "cancellationPoll": {
- "enabled": true,
- "messageTitle": "string",
- "messageDescription": "string",
- "answers": {
- "property1": {
- "title": "string",
- "action": "show-confirmation"
}, - "property2": {
- "title": "string",
- "action": "show-confirmation"
}
}
}, - "discountOnCancellation": {
- "enabled": true,
- "discount": {
- "type": "percentage",
- "value": 0
}, - "usageLimit": 0,
- "messageTitle": "string",
- "messageDescription": "string"
}
}, - "customer": {
- "tags": {
- "bySubscriptionCycle": {
- "first": "string",
- "recurring": "string"
}, - "bySubscriptionStatus": {
- "active": "string",
- "cancelled": "string",
- "expired": "string",
- "failed": "string",
- "paused": "string"
}
}
}, - "order": {
- "tags": {
- "byBuildABox": {
- "generic": "string"
}, - "bySubscription": {
- "generic": "string",
- "ref": {
- "prefix": "string"
}, - "purchase": "string",
- "cycle": {
- "prefix": "string"
}
}
}, - "upgradeToSubscription": {
- "rules": {
- "addFreeProduct": { }
}, - "unpaidTimeout": 0
}
}, - "subscription": {
- "retainProductsPrice": true,
- "availableShippingRatesStrategy": "subscription",
- "dynamicDeliveryPrice": true,
- "mergeSubscriptionsByRenewal": true,
- "dunningFlow": {
- "duration": "string"
}, - "renewalNotifications": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "when": {
- "hours": [
- 0,
- 0
]
}, - "action": {
- "type": "sendSMS",
- "message": "string"
}
}
], - "renewalNotificationsDaysBefore": 0
}, - "integrations": {
- "klaviyo": {
- "enabled": true,
- "apiKey": "string"
}, - "recharge": {
- "enabled": true,
- "apiKey": "string"
}
}, - "subscriptionIntent": {
- "enabled": true
}
}
lang required | string Enum: "pl" "en" "de" "nl" |
initial | boolean |
{- "emailTemplates": {
- "generic": {
- "logoUrl": null,
- "companyName": "string"
}, - "subscriptionBilled": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionPurchased": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionBillingFailed": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionRenewal": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionCancelled": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionOutOfStock": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}, - "subscriptionBillingActionRequired": {
- "enabled": true,
- "customTemplate": null,
- "subject": "string",
- "title": "string",
- "message": "string",
- "contact": "string",
- "signature": "string"
}
}, - "smsTemplates": {
- "featureEnabled": true,
- "featureRequested": true,
- "generic": {
- "fromField": "string"
}, - "allowedSendingHours": [
- {
- "hours": [
- 24,
- 24
], - "days": [
- 1,
- 1
]
}
], - "subscriptionRenewal": {
- "enabled": true,
- "message": "string"
}, - "subscriptionBillingActionRequired": {
- "enabled": true,
- "message": "string"
}, - "orderUnpaid": {
- "enabled": true,
- "message": "string"
}
}, - "renewalConditions": {
- "requireInStock": true
}, - "customerPortal": {
- "subscriptionsManagement": {
- "lines": {
- "edit": true,
- "remove": true,
- "add": true
}, - "cancel": true,
- "pause": true,
- "skip": true,
- "delivery": {
- "editAddress": true,
- "editMethod": true
}, - "redeemDiscount": true
}, - "theme": {
- "text": {
- "main": {
- "color": "string"
}, - "secondary": {
- "color": "string"
}
}, - "buttons": {
- "main": {
- "backgroundColor": "string",
- "borderColor": "string",
- "borderRadius": "string",
- "color": "string"
}, - "secondary": {
- "backgroundColor": "string",
- "borderColor": "string",
- "borderRadius": "string",
- "color": "string"
}
}
}
}, - "retention": {
- "cancellationPoll": {
- "enabled": true,
- "messageTitle": "string",
- "messageDescription": "string",
- "answers": {
- "property1": {
- "title": "string",
- "action": "show-confirmation"
}, - "property2": {
- "title": "string",
- "action": "show-confirmation"
}
}
}, - "discountOnCancellation": {
- "enabled": true,
- "discount": {
- "type": "percentage",
- "value": 0
}, - "usageLimit": 0,
- "messageTitle": "string",
- "messageDescription": "string"
}
}, - "customer": {
- "tags": {
- "bySubscriptionCycle": {
- "first": "string",
- "recurring": "string"
}, - "bySubscriptionStatus": {
- "active": "string",
- "cancelled": "string",
- "expired": "string",
- "failed": "string",
- "paused": "string"
}
}
}, - "order": {
- "tags": {
- "byBuildABox": {
- "generic": "string"
}, - "bySubscription": {
- "generic": "string",
- "ref": {
- "prefix": "string"
}, - "purchase": "string",
- "cycle": {
- "prefix": "string"
}
}
}, - "upgradeToSubscription": {
- "rules": {
- "addFreeProduct": { }
}, - "unpaidTimeout": 0
}
}, - "subscription": {
- "retainProductsPrice": true,
- "availableShippingRatesStrategy": "subscription",
- "dynamicDeliveryPrice": true,
- "mergeSubscriptionsByRenewal": true,
- "dunningFlow": {
- "duration": "string"
}, - "renewalNotifications": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "when": {
- "hours": [
- 0,
- 0
]
}, - "action": {
- "type": "sendSMS",
- "message": "string"
}
}
], - "renewalNotificationsDaysBefore": 0
}, - "integrations": {
- "klaviyo": {
- "enabled": true,
- "apiKey": "string"
}, - "recharge": {
- "enabled": true,
- "apiKey": "string"
}
}, - "subscriptionIntent": {
- "enabled": true
}
}
after | string |
limit | integer [ 1 .. 50 ] |
before | string |
q | string non-empty |
status | Array of strings non-empty Items Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "PAUSED" |
string or string or string or string or string | |
reverse | boolean |
[- {
- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "title": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}
}
]
}
]
contractId required | string non-empty |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextFulfillment": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "note": "string",
- "hasCancellationDiscount": true,
- "cancellationReason": "string",
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
contractId required | string non-empty |
firstName required | string |
lastName required | string |
address1 required | string |
address2 | string |
zip required | string |
city required | string |
countryCode required | string = 2 characters |
province | string |
phone | string |
{- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}
contractId required | string non-empty |
deliveryPrice required | string non-empty ^(?=.)\d*(\.\d+)?$ |
{- "deliveryPrice": "string"
}
contractId required | string non-empty |
[- {
- "handle": "string",
- "price": {
- "amount": "string",
- "currencyCode": "string"
}, - "title": "string",
- "isActive": true
}
]
contractId required | string non-empty |
shippingMethodHandle required | string non-empty |
{- "shippingMethodHandle": "string"
}
contractId required | string non-empty |
productVariantId required | string non-empty |
renewalLimit | number >= 1 |
{- "productVariantId": "string",
- "renewalLimit": 1
}
contractId required | string non-empty |
lineId required | string non-empty |
productVariantId | string non-empty |
quantity | integer >= 1 |
Array of objects |
{- "productVariantId": "string",
- "quantity": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
contractId required | string non-empty |
[- {
- "id": "string",
- "name": "string",
- "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY"
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY"
}
}
]
contractId required | string non-empty |
string or object | |
date | string <date-time> |
currentCycle | integer >= 0 |
{- "plan": "string",
- "date": "2019-08-24T14:15:22Z",
- "currentCycle": 0
}
contractId required | string non-empty |
lineId required | string non-empty |
q | string non-empty |
string or string |
[- {
- "id": "string",
- "title": "string",
- "featuredImage": {
- "url": "string",
- "altText": "string"
}, - "hasOnlyDefaultVariant": true,
- "variants": [
- {
- "id": "string",
- "availableForSale": true,
- "title": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "basePrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "image": {
- "url": "string",
- "altText": "string"
}
}
]
}
]
{
}
contractId required | string non-empty ^(?!gid://).+$ |
lines | Array of strings non-empty [\d+] |
usageLimit | integer >= 1 |
title required | string non-empty |
required | object or object |
{- "lines": [
- "string"
], - "usageLimit": 1,
- "title": "string",
- "value": {
- "type": "percentage",
- "percentage": 100
}
}
{- "enabled": true,
- "memberships": [
- {
- "id": "string",
- "status": "ACTIVE",
- "customer": {
- "id": 0,
- "displayName": "string",
- "email": null
}, - "expiresAt": "2019-08-24T14:15:22Z",
- "subscription": {
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
]
}
Get renewal status
renewalId required | string non-empty ^(?!gid://).+$ |
{- "paid": true,
- "store": {
- "name": "string",
- "logoUrl": null
}, - "amount": "string",
- "currencyCode": "AED",
- "billingAttemptId": null,
- "availablePaymentMethods": [
- {
- "method": "blik",
- "availableAliases": [
- {
- "value": "string",
- "label": "string"
}
]
}
], - "lines": [
- {
- "title": "string",
- "variantTitle": null,
- "price": "string",
- "quantity": 1,
- "variantImage": { }
}
], - "deliveryPrice": "string"
}
Charge
renewalId required | string non-empty ^(?!gid://).+$ |
method required | string Value: "blik" |
code required | string = 6 characters |
{- "method": "blik",
- "alias": "string"
}
{- "billingAttemptId": "string"
}
Get renewal status
renewalId required | string non-empty ^(?!gid://).+$ |
{- "paid": true,
- "store": {
- "name": "string",
- "logoUrl": null
}, - "amount": "string",
- "currencyCode": "AED",
- "billingAttemptId": null,
- "availablePaymentMethods": [
- {
- "method": "blik",
- "availableAliases": [
- {
- "value": "string",
- "label": "string"
}
]
}
], - "lines": [
- {
- "title": "string",
- "variantTitle": null,
- "price": "string",
- "quantity": 1,
- "variantImage": { }
}
], - "deliveryPrice": "string"
}
Charge
renewalId required | string non-empty ^(?!gid://).+$ |
method required | string Value: "blik" |
code required | string = 6 characters |
{- "method": "blik",
- "alias": "string"
}
{- "billingAttemptId": "string"
}
id required | string non-empty ^(?!gid://).+$ |
ref required | string non-empty |
status required | string Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "PAUSED" |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
required | null or object |
nextBillingDate | string <date-time> |
nextFulfillment | string <date-time> |
object | |
object | |
required | object |
required | object |
lineCount required | integer >= 1 |
required | Array of objects |
object | |
required | object |
deliveryDiscountedPrice | string |
lastPaymentStatus | string Enum: "FAILED" "SUCCEEDED" |
object | |
isEditable required | boolean |
requiredBillingCyclesLeft | integer >= 0 |
Array of objects | |
note | string |
hasCancellationDiscount | boolean |
cancellationReason | string non-empty |
currentCycle required | integer >= 0 |
remainingOrdersCount | integer >= 1 |
Array of objects |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextFulfillment": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "note": "string",
- "hasCancellationDiscount": true,
- "cancellationReason": "string",
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
id required | string non-empty ^(?!gid://).+$ |
ref required | string non-empty |
status required | string Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "PAUSED" |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
required | null or object |
nextBillingDate | string <date-time> |
nextFulfillment | string <date-time> |
object | |
object | |
required | object |
required | object |
lineCount required | integer >= 1 |
required | Array of objects |
object | |
required | object |
deliveryDiscountedPrice | string |
lastPaymentStatus | string Enum: "FAILED" "SUCCEEDED" |
object | |
isEditable required | boolean |
requiredBillingCyclesLeft | integer >= 0 |
Array of objects | |
note | string |
hasCancellationDiscount | boolean |
cancellationReason | string non-empty |
currentCycle required | integer >= 0 |
remainingOrdersCount | integer >= 1 |
Array of objects |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextFulfillment": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "note": "string",
- "hasCancellationDiscount": true,
- "cancellationReason": "string",
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
id required | string non-empty ^(?!gid://).+$ |
ref required | string non-empty |
status required | string Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "PAUSED" |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
required | null or object |
nextBillingDate | string <date-time> |
nextFulfillment | string <date-time> |
object | |
object | |
required | object |
required | object |
lineCount required | integer >= 1 |
required | Array of objects |
object | |
required | object |
deliveryDiscountedPrice | string |
lastPaymentStatus | string Enum: "FAILED" "SUCCEEDED" |
object | |
isEditable required | boolean |
requiredBillingCyclesLeft | integer >= 0 |
Array of objects | |
note | string |
hasCancellationDiscount | boolean |
cancellationReason | string non-empty |
currentCycle required | integer >= 0 |
remainingOrdersCount | integer >= 1 |
Array of objects |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextFulfillment": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "note": "string",
- "hasCancellationDiscount": true,
- "cancellationReason": "string",
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
id required | string non-empty ^(?!gid://).+$ |
ref required | string non-empty |
status required | string Enum: "ACTIVE" "CANCELLED" "EXPIRED" "FAILED" "PAUSED" |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
required | null or object |
nextBillingDate | string <date-time> |
nextFulfillment | string <date-time> |
object | |
object | |
required | object |
required | object |
lineCount required | integer >= 1 |
required | Array of objects |
object | |
required | object |
deliveryDiscountedPrice | string |
lastPaymentStatus | string Enum: "FAILED" "SUCCEEDED" |
object | |
isEditable required | boolean |
requiredBillingCyclesLeft | integer >= 0 |
Array of objects | |
note | string |
hasCancellationDiscount | boolean |
cancellationReason | string non-empty |
currentCycle required | integer >= 0 |
remainingOrdersCount | integer >= 1 |
Array of objects |
{- "id": "string",
- "ref": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "customer": { },
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "nextFulfillment": "2019-08-24T14:15:22Z",
- "nextBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "attempt": 0
}, - "lastBillingAttempt": {
- "date": "2019-08-24T14:15:22Z",
- "ready": true,
- "failReason": "out-of-stock",
}, - "deliveryPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "billingPolicy": {
- "intervalCount": 0,
- "interval": "DAY",
- "minCycles": 0,
- "maxCycles": 1,
- "anchors": [
- {
- "day": 0,
- "type": "MONTHDAY"
}
]
}, - "lineCount": 1,
- "lines": [
- {
- "id": "string",
- "title": "string",
- "quantity": 1,
- "variantTitle": "string",
- "currentPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "lineDiscountedPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "variantId": "string",
- "variantImage": {
- "url": "string",
- "altText": "string"
}, - "variantAvailableForSale": true,
- "parentLineId": "string",
- "parentProductId": "string",
- "productId": "string",
- "parentProductHandle": "string",
- "renewalLimit": 0,
- "isVirtual": true,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "deliveryMethod": {
- "address": {
- "firstName": "string",
- "lastName": "string",
- "address1": "string",
- "address2": "string",
- "zip": "string",
- "city": "string",
- "countryCode": "st",
- "province": "string",
- "phone": "string"
}, - "pickupOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string",
- "location": {
- "name": "string",
- "address": {
- "formatted": [
- "string"
]
}
}
}, - "shippingOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}, - "localDeliveryOption": {
- "title": "string",
- "presentmentTitle": "string",
- "description": "string"
}
}, - "deliveryPrice": {
- "amount": 0,
- "currencyCode": "string"
}, - "deliveryDiscountedPrice": "string",
- "lastPaymentStatus": "FAILED",
- "customerPaymentMethod": {
- "id": "string",
- "instrument": {
- "type": "credit_card",
- "brand": "string",
- "maskedNumber": "string"
}, - "active": true
}, - "isEditable": true,
- "requiredBillingCyclesLeft": 0,
- "discounts": [
- {
- "id": "string",
- "title": "string",
- "targetType": "Line",
- "value": {
- "amount": "string",
- "type": "FixedAmount"
}
}
], - "note": "string",
- "hasCancellationDiscount": true,
- "cancellationReason": "string",
- "currentCycle": 0,
- "remainingOrdersCount": 1,
- "customAttributes": [
- {
- "key": "string",
- "value": "string"
}
]
}
id required | string non-empty ^(?!gid://).+$ |
status required | string Enum: "ACTIVE" "INACTIVE" "EXPIRED" |
required | object |
expiresAt | string <date-time> |
required | object |
{- "id": "string",
- "status": "ACTIVE",
- "customer": {
- "id": 0,
- "displayName": "string",
- "email": null
}, - "expiresAt": "2019-08-24T14:15:22Z",
- "subscription": {
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
id required | string non-empty ^(?!gid://).+$ |
status required | string Enum: "ACTIVE" "INACTIVE" "EXPIRED" |
required | object |
expiresAt | string <date-time> |
required | object |
{- "id": "string",
- "status": "ACTIVE",
- "customer": {
- "id": 0,
- "displayName": "string",
- "email": null
}, - "expiresAt": "2019-08-24T14:15:22Z",
- "subscription": {
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
id required | string non-empty ^(?!gid://).+$ |
status required | string Enum: "ACTIVE" "INACTIVE" "EXPIRED" |
required | object |
expiresAt | string <date-time> |
required | object |
{- "id": "string",
- "status": "ACTIVE",
- "customer": {
- "id": 0,
- "displayName": "string",
- "email": null
}, - "expiresAt": "2019-08-24T14:15:22Z",
- "subscription": {
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
Work in Progress
There are numerous UI Components that help with creating a custom subscriber portal. These UI Components reduce the pain of building a complex portal from scratch. They provide the necessary I/O logic and offer a high level of flexibility, making it possible to build any subscriber experience without the need to reinvent the wheel.
Components:
<Subscription>
High-level component that includes all subscription details and available actions. Use this if you don’t want to customize the look and behavior of the subscription pane.<SubscriptionContext>
Sets a subscription context, use this if you want to customize the subscription pane and want to use components that require a subscription context.<SubscriptionLines>
Requires a subscription context. Displays a list of all subscription lines with available actions per subscription line.<SubscriptionAction>
Requires a subscription context. This component triggers a specified action upon interaction with slotted content.Basic example:
<!-- Just place the component in HTML to show subscription details -->
<Subscription id="1001">
Advanced example:
<SubscriptionContext id="1001">
<div class="subscription">
<SubscriptionLines />
<SubscriptionAction action="add-product">
<button>+ Add product</button>
</SubscriptionAction>
<aside class="subscription__actions">
<SubscriptionAction action="cancel">
<button>Cancel</button>
</SubscriptionAction>
<SubscriptionAction action="pause">
<button>Pause</button>
</SubscriptionAction>
</aside>
</div>
</SubscriptionContext>
page | integer >= 1 Default: 1 |
limit | integer [ 1 .. 250 ] Default: 50 |
{- "addresses": [
- {
- "address1": "string",
- "address2": null,
- "cart_note": null,
- "city": "string",
- "company": null,
- "country": "string",
- "country_code": "st",
- "first_name": null,
- "last_name": "string",
- "phone": null,
- "province": null,
- "zip": "string",
- "cart_attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "customer_id": "string",
- "discount_id": null,
- "id": "string",
- "is_gift": true,
- "note_attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "original_shipping_lines": [
- {
- "code": null,
- "price": null,
- "title": null
}
], - "presentment_currency": "str",
- "shipping_lines_override": [
- {
- "code": null,
- "price": null,
- "title": null
}
], - "updatedAt": null
}
]
}
page | integer >= 1 Default: 1 |
limit | integer [ 1 .. 250 ] Default: 50 |
{- "customers": [
- {
- "analytics_data": {
- "utm_params": [
- {
- "utm_campaign": null,
- "utm_content": null,
- "utm_data_source": null,
- "utm_medium": null,
- "utm_source": null,
- "utm_term": null,
- "utm_timestamp": null
}
]
}, - "accepts_marketing": true,
- "billing_address1": null,
- "billing_address2": null,
- "billing_city": null,
- "billing_company": null,
- "billing_country": null,
- "billing_phone": null,
- "billing_province": null,
- "billing_zip": null,
- "created_at": "2019-08-24T14:15:22Z",
- "email": null,
- "first_charge_processed_at": null,
- "first_name": null,
- "has_card_error_in_dunning": true,
- "has_valid_payment_method": true,
- "hash": null,
- "id": 1,
- "last_name": "string",
- "number_active_subscriptions": 0,
- "number_subscriptions": 0,
- "phone": null,
- "processor_type": null,
- "reason_payment_method_not_valid": null,
- "shopify_customer_id": null,
- "status": null,
- "stripe_customer_token": null,
- "tax_exempt": true,
- "updated_at": null
}
]
}
page | integer >= 1 Default: 1 |
limit | integer [ 1 .. 250 ] Default: 50 |
{- "discounts": [
- {
- "applies_to": null,
- "applies_to_id": null,
- "applies_to_product_type": null,
- "applies_to_resource": null,
- "channel_settings": {
- "api": {
- "can_apply": true
}, - "checkout_page": {
- "can_apply": true
}, - "customer_portal": {
- "can_apply": true
}, - "merchant_portal": {
- "can_apply": true
}
}, - "code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "discount_type": "string",
- "duration": null,
- "duration_usage_limit": null,
- "ends_at": null,
- "external_discount_id": null,
- "external_discount_source": null,
- "first_time_customer_restriction": null,
- "id": 0,
- "once_per_customer": true,
- "prerequisite_subtotal_min": null,
- "starts_at": null,
- "status": "string",
- "times_used": 0,
- "updated_at": "2019-08-24T14:15:22Z",
- "usage_limit": null,
- "value": 0
}
]
}
page | integer >= 1 Default: 1 |
limit | integer [ 1 .. 250 ] Default: 50 |
{- "orders": [
- {
- "address_id": "string",
- "address_is_active": true,
- "billing_address": { },
- "browser_ip": null,
- "charge_id": null,
- "charge_status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "str",
- "customer": { },
- "customer_id": null,
- "discount_codes": [
- {
- "amount": 0,
- "code": "string",
- "recharge_discount_id": 0,
- "type": "string"
}
], - "email": null,
- "error": null,
- "first_name": null,
- "hash": "string",
- "id": null,
- "is_prepaid": true,
- "last_name": null,
- "line_items": [
- {
- "external_inventory_policy": null,
- "grams": null,
- "images": {
- "large": null,
- "medium": null,
- "original": null,
- "small": null
}, - "price": 0,
- "product_title": "string",
- "properties": [
- {
- "name": "string",
- "value": "string"
}
], - "quantity": 0,
- "shopify_product_id": null,
- "shopify_variant_id": null,
- "sku": null,
- "subscription_id": null,
- "tax_lines": [
- {
- "price": 0,
- "rate": null,
- "title": "string",
- "channel_liable": true,
- "price_set": {
- "shop_money": {
- "amount": 0,
- "currency_code": "str"
}, - "presentment_money": {
- "amount": 0,
- "currency_code": "str"
}
}
}
], - "title": "string",
- "variant_title": null
}
], - "note": null,
- "note_attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "payment_processor": null,
- "processed_at": null,
- "redacted": true,
- "scheduled_at": null,
- "shipped_date": null,
- "shipping_address": { },
- "shipping_date": null,
- "shipping_lines": [
- {
- "code": null,
- "description": null,
- "price": 0,
- "source": null,
- "tax_lines": [
- {
- "price": 0,
- "rate": null,
- "title": "string",
- "channel_liable": true,
- "price_set": {
- "shop_money": {
- "amount": 0,
- "currency_code": "str"
}, - "presentment_money": {
- "amount": 0,
- "currency_code": "str"
}
}
}
], - "title": "string"
}
], - "shopify_cart_token": null,
- "shopify_customer_id": null,
- "shopify_id": 0,
- "shopify_order_id": 0,
- "shopify_order_number": 0,
- "status": "string",
- "subtotal_price": 0,
- "tags": "string",
- "total_discounts": 0,
- "total_duties": 0,
- "total_line_items_price": 0,
- "total_price": 0,
- "total_refunds": 0,
- "total_tax": 0,
- "total_weight": 0,
- "transaction_id": null,
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
page | integer >= 1 Default: 1 |
limit | integer [ 1 .. 250 ] Default: 50 |
{- "subscriptions": [
- {
- "address_id": "string",
- "analytics_data": {
- "utm_params": [
- {
- "utm_campaign": null,
- "utm_content": null,
- "utm_data_source": null,
- "utm_medium": null,
- "utm_source": null,
- "utm_term": null,
- "utm_timestamp": null
}
]
}, - "cancellation_reason": null,
- "cancellation_reason_comments": null,
- "cancelled_at": null,
- "charge_interval_frequency": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "customer_id": null,
- "email": null,
- "expire_after_specific_number_of_charges": null,
- "has_queued_charges": true,
- "id": "string",
- "is_prepaid": true,
- "is_skippable": true,
- "is_swappable": true,
- "max_retries_reached": true,
- "next_charge_scheduled_at": null,
- "order_day_of_month": null,
- "order_day_of_week": null,
- "order_interval_frequency": 1,
- "order_interval_unit": "day",
- "status": "active",
- "updated_at": "2019-08-24T14:15:22Z",
- "presentment_currency": "str",
- "price": 0,
- "product_title": "string",
- "properties": [
- {
- "name": "string",
- "value": "string"
}
], - "quantity": 1,
- "recharge_product_id": null,
- "shopify_product_id": null,
- "shopify_variant_id": null,
- "sku": null,
- "sku_override": true,
- "variant_title": null
}
]
}