{"_id":"59a45d447ee621000fc9d3db","category":{"_id":"59a45d447ee621000fc9d3c3","version":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:21:09.840Z","from_sync":false,"order":11,"slug":"errors","title":"Errors"},"user":"560d5913af97231900938124","parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","version":{"_id":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:13:23.840Z","releaseDate":"2017-08-28T18:13:23.840Z","categories":["59a45d447ee621000fc9d3b8","59a45d447ee621000fc9d3b9","59a45d447ee621000fc9d3ba","59a45d447ee621000fc9d3bb","59a45d447ee621000fc9d3bc","59a45d447ee621000fc9d3bd","59a45d447ee621000fc9d3be","59a45d447ee621000fc9d3bf","59a45d447ee621000fc9d3c0","59a45d447ee621000fc9d3c1","59a45d447ee621000fc9d3c2","59a45d447ee621000fc9d3c3","59a45d447ee621000fc9d3c4","59a45d447ee621000fc9d3c5","59a45d447ee621000fc9d3c6","59a45d447ee621000fc9d3c7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-XML","version":"8976-XML"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-08-01T11:19:24.022Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":42,"body":"These errors can be returned in response to a subscription or billing plan request.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Name\",\n    \"h-2\": \"Description\",\n    \"0-1\": \"INVALID_CHARGE_FREQUENCY\",\n    \"0-0\": \"24001\",\n    \"1-0\": \"24002\",\n    \"2-0\": \"24003\",\n    \"3-0\": \"24004\",\n    \"4-0\": \"24005\",\n    \"5-0\": \"24006\",\n    \"6-0\": \"24007\",\n    \"7-0\": \"24008\",\n    \"8-0\": \"24009\",\n    \"9-0\": \"24010\",\n    \"10-0\": \"24011\",\n    \"11-0\": \"24013\",\n    \"12-0\": \"24014\",\n    \"13-0\": \"24015\",\n    \"14-0\": \"24016\",\n    \"15-0\": \"24017\",\n    \"17-0\": \"26001\",\n    \"16-0\": \"24018\",\n    \"18-0\": \"26002\",\n    \"19-0\": \"26003\",\n    \"21-0\": \"90010\",\n    \"22-0\": \"90011\",\n    \"23-0\": \"90012\",\n    \"24-0\": \"90013\",\n    \"25-0\": \"90014\",\n    \"26-0\": \"90015\",\n    \"27-0\": \"90016\",\n    \"28-0\": \"90017\",\n    \"29-0\": \"90018\",\n    \"30-0\": \"90019\",\n    \"31-0\": \"90020\",\n    \"20-0\": \"90009\",\n    \"32-0\": \"90021\",\n    \"33-0\": \"90022\",\n    \"34-0\": \"90023\",\n    \"1-1\": \"MISSING_REQUIRED_FIELD\",\n    \"0-2\": \"Charge frequency ${chargeFrequency} is invalid\",\n    \"1-2\": \"${fieldName} is a required field.\",\n    \"2-1\": \"INVALID_BILLING_PLAN_CONFIGURATION\",\n    \"2-2\": \"Billing plan configuration provided is not supported. ${param1} cannot be used with ${param2}\",\n    \"3-1\": \"API_CONFIGURATION_ISSUE\",\n    \"3-2\": \"Request failed. Please contact Bluesnap for assistance\",\n    \"4-1\": \"RECURRING_PRICE_MINIMUM_LIMIT_NOT_REACHED\",\n    \"4-2\": \"Recurring Price should be higher than 1 USD or its equivalent in the chosen currency.\",\n    \"5-1\": \"PRICE_MUST_BE_POSITIVE\",\n    \"5-2\": \"Prices are always positive numbers.\",\n    \"6-1\": \"INVALID_GRACE_PERIOD\",\n    \"6-2\": \"Grace period value provided is not valid.\",\n    \"7-1\": \"INVALID_TRIAL_DAYS\",\n    \"7-2\": \"Trial days value provided is not valid.\",\n    \"8-1\": \"INVALID_MAX_NUMBER_OF_CHARGES\",\n    \"8-2\": \"Maximum number of charges value provided is not valid.\",\n    \"9-1\": \"INVALID_BILLING_PLAN_NAME_LENGTH\",\n    \"9-2\": \"Billing plan name must be between 1 and 199 characters\",\n    \"10-1\": \"CURRENCY_NOT_FOUND\",\n    \"10-2\": \"The currency provided is not found.\",\n    \"11-1\": \"ERROR_IN_REQUEST\",\n    \"11-2\": \"An unexpected error happened while processing your request. Please contact BlueSnap support for assistance.\",\n    \"12-1\": \"NON_UPDATABLE_FIELD\",\n    \"12-2\": \"${fieldName} cannot be updated. Please create a new plan instead.\",\n    \"13-1\": \"CANNOT_ADD_ELEMENT\",\n    \"13-2\": \"Cannot add ${elementName} to a plan that didn't already have one. Please create a new plan instead.\",\n    \"16-1\": \"CANNOT_DELETE_ELEMENT\",\n    \"16-2\": \"Cannot remove ${elementName} from a plan that already had one. Please create a new plan instead.\",\n    \"14-1\": \"INVALID_STATUS\",\n    \"14-2\": \"Status provided is invalid\",\n    \"15-1\": \"CANNOT_CREATE_INACTIVE_PLAN\",\n    \"15-2\": \"Cannot create an inactive billing plan\",\n    \"17-1\": \"NEGATIVE_PAGE_SIZE\",\n    \"18-1\": \"MAX_PAGE_SIZE_EXCEEDED\",\n    \"19-1\": \"INVALID_PAGINATION_PARAMETERS\",\n    \"17-2\": \"PageSize cannot be a negative number\",\n    \"18-2\": \"PageSize exceeds the maximum allowed size\",\n    \"19-2\": \"Cannot paginate using before and after at the same time\",\n    \"20-1\": \"SUBSCRIPTION_NOT_FOUND\",\n    \"20-2\": \"Subscription was not found.\",\n    \"21-1\": \"NON_OVERRIDABLE_PLAN_TYPE\",\n    \"21-2\": \"Billing plan type does not support initial charge.\",\n    \"22-1\": \"NON_OVERRIDABLE_TRIAL_DAYS\",\n    \"22-2\": \"Cannot override trial-period-days\",\n    \"23-1\": \"NON_OVERRIDABLE_INITIAL_CHARGE\",\n    \"23-2\": \"Cannot override initial-charge-amount\",\n    \"24-1\": \"NO_VAULTED_SHOPPER_FOUND\",\n    \"24-2\": \"Invalid vaultedShopperId-${vaultedShopperId} :no vaulted shopper found with given id\",\n    \"25-1\": \"NEGATIVE_QUANTITY\",\n    \"25-2\": \"Invalid quantity ${quantity} :subscription quantity should be greater than zero\",\n    \"26-1\": \"INVALID_CURRENCY\",\n    \"26-2\": \"Currency: ${currencyCode} is not a valid currency code according to the ISO 4217 standard.\",\n    \"27-1\": \"INVALID_OVERRIDE_TRIAL_DAYS\",\n    \"27-2\": \"Invalid value ${trialDays} :override trial days must be a number\",\n    \"28-1\": \"INVALID_RECURRING_CHARGE_AMOUNT\",\n    \"28-2\": \"Invalid value ${recurringChargeAmount} :recurring chargeamount should be a greater than zero\",\n    \"29-1\": \"INVALID_INITIAL_CHARGE_AMOUNT\",\n    \"29-2\": \"Invalid value ${initialChargeAmount} :initial chargeamount should be a greater than zero\",\n    \"30-1\": \"INCORRECT_PAYMENT_DETAILS\",\n    \"30-2\": \"recurring charge failed because the payment details were incorrect or insufficient\",\n    \"31-1\": \"MULTIPLE_CARDS_FOUND_NONE_SELECTED\",\n    \"31-2\": \"recurring charge failed because given vaulted shopper has multiple cards but none of them are selected\",\n    \"32-1\": \"SWITCH_PLAN_ERROR\",\n    \"32-2\": \"Failure during the switch contract procedure\",\n    \"33-1\": \"INVALID_DATE_FORMAT\",\n    \"33-2\": \"Expected date format is YYYY-MM-DD\",\n    \"34-1\": \"CANNOT_UPDATE_CANCELED_SUBSCRIPTION\",\n    \"34-2\": \"Please activate subscription before making modifications to it.\"\n  },\n  \"cols\": 3,\n  \"rows\": 35\n}\n[/block]","excerpt":"","slug":"subscription-billing-plan-errors","type":"basic","title":"Subscription & Billing Plan Errors"}

Subscription & Billing Plan Errors


These errors can be returned in response to a subscription or billing plan request.

Code
Name
Description

24001

INVALID_CHARGE_FREQUENCY

Charge frequency ${chargeFrequency} is invalid

24002

MISSING_REQUIRED_FIELD

${fieldName} is a required field.

24003

INVALID_BILLING_PLAN_CONFIGURATION

Billing plan configuration provided is not supported. ${param1} cannot be used with ${param2}

24004

API_CONFIGURATION_ISSUE

Request failed. Please contact Bluesnap for assistance

24005

RECURRING_PRICE_MINIMUM_LIMIT_NOT_REACHED

Recurring Price should be higher than 1 USD or its equivalent in the chosen currency.

24006

PRICE_MUST_BE_POSITIVE

Prices are always positive numbers.

24007

INVALID_GRACE_PERIOD

Grace period value provided is not valid.

24008

INVALID_TRIAL_DAYS

Trial days value provided is not valid.

24009

INVALID_MAX_NUMBER_OF_CHARGES

Maximum number of charges value provided is not valid.

24010

INVALID_BILLING_PLAN_NAME_LENGTH

Billing plan name must be between 1 and 199 characters

24011

CURRENCY_NOT_FOUND

The currency provided is not found.

24013

ERROR_IN_REQUEST

An unexpected error happened while processing your request. Please contact BlueSnap support for assistance.

24014

NON_UPDATABLE_FIELD

${fieldName} cannot be updated. Please create a new plan instead.

24015

CANNOT_ADD_ELEMENT

Cannot add ${elementName} to a plan that didn't already have one. Please create a new plan instead.

24016

INVALID_STATUS

Status provided is invalid

24017

CANNOT_CREATE_INACTIVE_PLAN

Cannot create an inactive billing plan

24018

CANNOT_DELETE_ELEMENT

Cannot remove ${elementName} from a plan that already had one. Please create a new plan instead.

26001

NEGATIVE_PAGE_SIZE

PageSize cannot be a negative number

26002

MAX_PAGE_SIZE_EXCEEDED

PageSize exceeds the maximum allowed size

26003

INVALID_PAGINATION_PARAMETERS

Cannot paginate using before and after at the same time

90009

SUBSCRIPTION_NOT_FOUND

Subscription was not found.

90010

NON_OVERRIDABLE_PLAN_TYPE

Billing plan type does not support initial charge.

90011

NON_OVERRIDABLE_TRIAL_DAYS

Cannot override trial-period-days

90012

NON_OVERRIDABLE_INITIAL_CHARGE

Cannot override initial-charge-amount

90013

NO_VAULTED_SHOPPER_FOUND

Invalid vaultedShopperId-${vaultedShopperId} :no vaulted shopper found with given id

90014

NEGATIVE_QUANTITY

Invalid quantity ${quantity} :subscription quantity should be greater than zero

90015

INVALID_CURRENCY

Currency: ${currencyCode} is not a valid currency code according to the ISO 4217 standard.

90016

INVALID_OVERRIDE_TRIAL_DAYS

Invalid value ${trialDays} :override trial days must be a number

90017

INVALID_RECURRING_CHARGE_AMOUNT

Invalid value ${recurringChargeAmount} :recurring chargeamount should be a greater than zero

90018

INVALID_INITIAL_CHARGE_AMOUNT

Invalid value ${initialChargeAmount} :initial chargeamount should be a greater than zero

90019

INCORRECT_PAYMENT_DETAILS

recurring charge failed because the payment details were incorrect or insufficient

90020

MULTIPLE_CARDS_FOUND_NONE_SELECTED

recurring charge failed because given vaulted shopper has multiple cards but none of them are selected

90021

SWITCH_PLAN_ERROR

Failure during the switch contract procedure

90022

INVALID_DATE_FORMAT

Expected date format is YYYY-MM-DD

90023

CANNOT_UPDATE_CANCELED_SUBSCRIPTION

Please activate subscription before making modifications to it.