Get customer's contract data
DeprecatedRequired Scopes: `MEMBERSHIP_SELF_SERVICE_READ` Returns customer's current contract data for memberships
Endpoint
/v1/memberships/{customerId}/self-service/contract-data Path Parameters
customerId required integer (int64) Unique ID of the customer
Responses
Response Body application/json
id integer(int64) required Id of the contract
1000 startDate string(date) required Start date of the contract
"2022-01-15" endDate string(date) required End date of the contract
"2025-10-15" rateName required Name of the contract rate
"Premium" contractStatus required The contracts desired or current status
ACTIVE | Identifies active contracts |
INACTIVE | Identifies inactive contracts |
"ACTIVE" cancelationPeriod Represents a time period
periodValue integer(int32) required Defines how many units a given period lasts
10 periodUnit required Unit of the period
DAY | Represents a day unit |
WEEK | Represents a week unit |
MONTH | Represents month unit |
YEAR | Represents year unit |
"DAY" cancelationStatus required Cancelation status of the contract cancelation
CANCELED | The contract was canceled by the customer. |
PENDING_VERIFICATION | The cancelation is pending verification. |
PENDING_WITHDRAWAL_VERIFICATION | The cancelation withdrawal is pending verification. |
"PENDING_VERIFICATION" cancelationDate string(date) Date the cancelation of the contract was or will be canceled
"2023-01-25" cancelationReason Name of the reason why the contract was canceled
"Officially ordered studio closure" price required deprecated Base price of the contract
19.9 priceDetails required Price details of the contract
basePrice required Represents a financial data
amount required Amount of the finance data tuple
20 currency string(ISO 4217) required Currency of the finance data tuple
"EUR" currentPrice required Represents a financial data
amount required Amount of the finance data tuple
20 currency string(ISO 4217) required Currency of the finance data tuple
"EUR" paymentFrequency required Represents the payment frequency of a contract
id integer(int64) Unique ID of the payment frequency of a contract
203 type required Payment frequency type of a contract
FREE | Represents that the contract payment frequency is free of charge. |
NON_RECURRING | Represents that the contract payment frequency is non recurring, meaning only one payment is necessary here. |
RECURRING | Represents that the contract payment frequency is recurring, meaning that the payment will take place every term. |
MONTH_DAY | Represents that the contract payment frequency is based on month days, with a possibly individual price per month day. |
TERM_BASED | Represents that the contract payment frequency is based on terms, with a possibly individual price per term. |
"FREE" term Represents a term
value integer(int32) required The value of the term
2 unit required Represents a temporal unit
DAY | Represents a day unit |
WEEK | Represents a week unit |
MONTH | Represents month unit |
YEAR | Represents year unit |
"WEEK" price Represents a financial data
amount required Amount of the finance data tuple
20 currency string(ISO 4217) required Currency of the finance data tuple
"EUR" monthDaysToPrices array[object] Month day to prices list, used for contract payment frequency type `MONTH_DAY`
monthDay required The month day of the month day to price mapping
month JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER OCTOBER NOVEMBER DECEMBER monthValue integer(int32) dayOfMonth integer(int32) price required Represents a financial data
amount required Amount of the finance data tuple
20 currency string(ISO 4217) required Currency of the finance data tuple
"EUR" termsToPrices array[object] Terms to prices list, used for contract payment frequency type `TERM_BASED`. Note that the price will become active AFTER the respective term has passed
term required Represents a term
value integer(int32) required The value of the term
2 unit required Represents a temporal unit
DAY | Represents a day unit |
WEEK | Represents a week unit |
MONTH | Represents month unit |
YEAR | Represents year unit |
"WEEK" price required Represents a financial data
amount required Amount of the finance data tuple
20 currency string(ISO 4217) required Currency of the finance data tuple
"EUR" lastPossibleCancelationDate string(date) Latest date the contract can be canceled
"2023-01-25" availableCancelationDates array[string(date)] dates the contract can be canceled to
["2023-01-25","2023-02-25"] cancelationOrigin Cancelation origin of the contract cancelation
STUDIO | The contract was canceled by the studio. This includes also dunning, contract switch, import, contract voucher withdraw and member cash purchase limit rejection origins. |
CUSTOMER | The contract was canceled by the customer. |
"CUSTOMER" rateCodes array[object] Rate codes of this contract
name The name of the rate code
"Standard Rate" identifier Unique identifier for the rate code.
"RC12345" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child"