A Membership
represents a membership belonging to one or more Customer
s.
The ID of the membership
The ID of the site this membership belongs to
membership_number
The unique membership number of the lead member. This is always a 10 digit numeric string.
Since this field only relates to the lead member, this is now deprecated.
Instead, find the membership for the relevant customer in the members
array.
Possible values are active
, needs_dd_mandate
, needs_attention
, reserved
, inactive
, expired
and upcoming
Where the membership was created
Possible values are self_signup
, app
, import
and unknown
Details about the payment method attached to this membership. This payment method is used to take payment on the monthly billing period. If a payment method hasn't been set up, this will be null.
The date which the membership starts
The date which the membership ends
The datetime which the membership was created
The basket ID which was used to purchase this membership, if applicable.
An external reference for this membership.
The date which the membership will next be billed
next_charge
A summary of the next charge that's due for this membership.
This property is only populated when the membership was retrieved using the `getCustomerMemberships endpoint.
A string describing what kind of action needs to take place
Possible values are no_mandate
, setup_unpaid
, mandate_revoked
, payment_failed
, payment_disputed
, payment_outstanding
and site_id
""
listMemberships
This endpoint lists the Membership
s which are associated to the provided site.
The Membership
s were successfully retrieved
{
"data": [
{
"site_id": "7be18066-91c8-4bfc-5754-12044a53e20b",
"members": [
{
"customer_id": "8ddda55c-ea19-4aba-fde2-133f968538f0",
"membership_number": "1234567890",
"is_lead": false
},
{
"customer_id": "712da9b8-d3b7-e407-8331-7ab42e09bd62",
"membership_number": "1234567890"
},
{
"customer_id": "52fa2c0d-f56d-7a1b-3074-412f6242dfe8",
"is_lead": true
},
{
"customer_id": "766fd593-943c-33ab-77c1-40a4d93d51b2",
"membership_number": "1234567890"
}
],
"type": {
"id": "8e72f490-bd3d-23f6-6737-3e0ca47dfc10",
"name": "Gold tier",
"description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
"terms": "sunt fugiat eiusmod reprehenderit dolore",
"brand_id": "6e46d2ed-f822-d805-4f08-d25bd9266e09",
"offline_payments": false,
"disable_confirmation_email": false,
"private": true,
"minimum_start_date": "1956-04-15T08:03:55.0Z",
"min_members": 2,
"max_members": 4,
"rates": [
{
"id": "51810b63-e208-2b4b-c506-73adf612d076",
"membership_type_id": "4f41db22-1db2-8f22-3a0e-1c0af60f1c61",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M",
"private": true,
"updated_at": "1932-10-24T02:53:10.0Z"
},
{
"id": "ed511cbd-73e3-12fe-99fb-213212bac8ea",
"membership_type_id": "618e0bb1-1da3-ef87-84f0-5ffc73e74006",
"name": "Standard rate",
"currency": "GBP",
"joining_fee": 1000,
"processors": [
"consectetur enim occaecat quis",
"ut elit",
"labore amet elit mollit"
],
"created_at": "1900-03-15T11:21:01.0Z"
}
],
"revenue_schedule": "FREQ=WEEKLY",
"created_at": "1945-02-01T15:10:53.0Z",
"updated_at": "1908-05-23T14:57:06.0Z",
"deleted_at": "1927-02-15T07:35:14.0Z"
},
"status": "active",
"source": "import",
"end_date": "1907-01-24T17:24:37.0Z",
"next_billing_date": "1915-06-10T17:43:45.0Z",
"next_charge": {
"id": "ee778a4f-4d1d-b3e7-6b4b-31ede8ebc7be",
"amount": 3995,
"currency": "GBP",
"status": "processing",
"billing_period_from": "1946-09-05",
"billing_period_to": "1947-11-06"
},
"attention_reason": "payment_failed"
},
{
"id": "aeaef22d-56cf-2d45-36fe-2eae26e7ae06",
"site_id": "ea5ab9d0-7634-638b-708c-51426ea35ee3",
"membership_number": "1234567890",
"customer": {
"id": "dbfa2688-9cdf-30f3-44d3-a44b33d6d78b",
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"phone": "+447900000000",
"has_password": true,
"dob": "1955-09-05",
"brand_id": "c2882978-47d3-0ae8-eed5-ccb5fef30788",
"site_id": "f2e8a19e-2a29-a9cb-7607-06ebebfa8d5e",
"stripe_id": "cus_1234567890",
"express_stripe_id": "cus_1234567890",
"email": "janedoe@example.com",
"labels": [
{
"id": "60499dda-7e31-76d6-8231-fa8f210e2a0c",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "1a0cb5e0-d8b9-da3e-fd09-864c13be66d3",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "8435377a-9aa1-bb1b-2ca0-0be0976ab6dd",
"value": "VIP",
"colour": "ff6634"
}
],
"preferred_locale": "en",
"locked_at": "1913-04-11T01:41:17.0Z",
"created_at": "1966-10-01T17:32:03.0Z",
"updated_at": "1910-01-24T04:51:12.0Z",
"deleted_at": "1962-10-07T09:39:51.0Z",
"last_active_at": "1921-07-10T16:50:06.0Z",
"email_verified_at": "1925-05-10T06:47:54.0Z",
"last_check_in": {
"checked_in_at": "1905-02-15T11:50:08.0Z",
"method": "Scanned"
},
"avatar_id": "000000-000000-000000-000000",
"avatar": {
"id": "a1ba34b8-b64d-1ae5-475c-db96c6b40560",
"file_name": "super-cool-photo.jpg",
"mime_type": "image/jpeg",
"size": 84256,
"url": "https://example.com/media/super-cool-photo.jpg"
},
"external_ref": "id laborum laboris velit cillum"
},
"members": [
{
"customer_id": "b7505360-76c7-659a-ceb6-cb5d10474e6a",
"membership_number": "1234567890",
"is_lead": true
},
{
"customer_id": "0b807a13-990f-e722-c666-77fd92e7506d",
"membership_number": "1234567890"
}
],
"type": {
"id": "7c22aa1c-5333-462a-7e7a-5207bad41fac",
"name": "Gold tier",
"description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
"terms": "aliquip laboris reprehenderit",
"brand_id": "95f651eb-28d7-dd85-ca1d-648cf878430b",
"offline_payments": true,
"disable_confirmation_email": false,
"private": true,
"minimum_start_date": "1961-07-29T04:37:16.0Z",
"min_members": 2,
"max_members": 4,
"rates": [
{
"id": "f1399edb-7207-3ecb-9ce4-e28fea958ed3",
"membership_type_id": "20ad99fe-1617-e70b-cc6c-ddc15eb51644",
"name": "Standard rate",
"price": 5000,
"billing_frequency": "P1M",
"processors": [
"exercitation ea sunt",
"exercitation"
],
"default_duration": "P1Y",
"private": true,
"created_at": "1929-11-27T06:39:38.0Z",
"updated_at": "1968-09-28T15:26:01.0Z"
},
{
"id": "211b3092-01b6-0f3a-f676-566b7d03b8aa",
"membership_type_id": "eb6f421f-58d0-1249-046f-eef2e5f0de0e",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M",
"processors": [
"ullamco qui eiusmod nostrud est",
"exercitation et dolor enim",
"est sunt veniam deserunt",
"eu aliqua veniam"
],
"default_duration": "P1Y",
"private": true,
"created_at": "1931-04-05T23:02:16.0Z"
},
{
"currency": "GBP",
"joining_fee": 1000,
"billing_frequency": "P1M"
},
{
"id": "88366b4c-f64e-b58c-0976-89b60b065682",
"membership_type_id": "907ce4a7-553d-a700-6d3b-90a73eecb6aa",
"name": "Standard rate",
"billing_frequency": "P1M",
"processors": [
"in commodo enim proident adipisicing",
"qui dolore velit irure enim",
"est",
"sed cupidatat"
],
"default_duration": "P1Y",
"created_at": "1910-05-20T20:21:18.0Z",
"updated_at": "1936-07-27T15:40:55.0Z"
}
],
"revenue_schedule": "FREQ=WEEKLY",
"created_at": "1953-11-16T09:29:43.0Z",
"updated_at": "1959-01-10T19:54:28.0Z",
"deleted_at": "1898-05-21T22:45:59.0Z"
},
"rate": {
"id": "02729f35-43b0-31f3-a644-2ef3a088241d",
"membership_type_id": "f82e526a-fe24-ffae-4504-3436345dbd69",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"billing_frequency": "P1M",
"default_duration": "P1Y",
"created_at": "1968-07-19T18:01:44.0Z"
},
"status": "inactive",
"source": "unknown",
"payment_method": {
"id": "ex in ut in",
"last_4": "minim consectetur cillum ex"
},
"start_date": "1899-11-26T22:56:39.0Z",
"end_date": "1947-02-08T12:01:11.0Z",
"created_at": "1901-06-11T01:38:02.0Z",
"basket_id": "66e04549d302040127000041",
"attention_reason": "payment_disputed"
},
{
"id": "74de5eb7-8f5b-f0bb-e050-33cf0397320f",
"site_id": "39744bfd-68a9-a00f-cb18-479b3d998a8f",
"membership_number": "1234567890",
"customer": {
"id": "c079863f-95fa-4837-54aa-6889050e4199",
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"phone": "+447900000000",
"has_password": true,
"dob": "1898-06-14",
"brand_id": "443d0636-48a7-a18f-41d4-1568e113362d",
"site_id": "9c05cd8a-6773-9a98-c730-c9090b3869ee",
"stripe_id": "cus_1234567890",
"express_stripe_id": "cus_1234567890",
"email": "janedoe@example.com",
"labels": [
{
"id": "b487fb40-1db8-39cc-b716-55805b7e116f",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "a9df87e3-6dfd-4870-36e7-36e812801852",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "ea0e9840-50b4-fca6-979f-40182b8decca",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "636f1df0-b9da-0365-9177-ce00e367d43e",
"value": "VIP",
"colour": "ff6634"
}
],
"preferred_locale": "en",
"locked_at": "1891-03-10T20:39:55.0Z",
"created_at": "1899-03-29T10:01:30.0Z",
"updated_at": "1969-04-14T20:34:02.0Z",
"deleted_at": "1932-08-13T15:01:36.0Z",
"last_active_at": "1948-11-01T18:32:23.0Z",
"email_verified_at": "1946-10-16T04:53:51.0Z",
"last_check_in": {
"checked_in_at": "1966-03-13T03:47:38.0Z",
"method": "Scanned"
},
"avatar_id": "000000-000000-000000-000000",
"avatar": {
"id": "e27f42db-e99e-970d-9d7e-5d89caa3f912",
"file_name": "super-cool-photo.jpg",
"mime_type": "image/jpeg",
"size": 84256,
"url": "https://example.com/media/super-cool-photo.jpg"
},
"external_ref": "sunt pariatur"
},
"members": [
{
"customer_id": "623a6424-7698-b4f8-7836-2212c1f2a810",
"membership_number": "1234567890"
},
{
"is_lead": true
}
],
"type": {
"id": "f0d86be9-3339-26c0-b28d-4509933cebeb",
"name": "Gold tier",
"description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
"terms": "minim eu dolor exercitation Ut",
"brand_id": "96532a97-2883-9ff7-d9eb-4d818f919050",
"offline_payments": true,
"disable_confirmation_email": true,
"private": true,
"minimum_start_date": "1913-11-27T09:56:16.0Z",
"min_members": 2,
"max_members": 4,
"rates": [
{
"id": "0a3e76d7-7067-3557-7a63-d0bd254da2ba",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M",
"processors": [
"in nulla deserunt",
"mollit sit",
"eu dolor"
],
"default_duration": "P1Y",
"private": true,
"created_at": "1939-10-17T02:19:02.0Z"
},
{
"id": "7eec41f3-78b1-4eb5-67b9-2820266c978e",
"membership_type_id": "46f2eb71-10e1-f27a-3ac8-1d7ba5f67c30",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M",
"processors": [
"magna nostrud do proident",
"Excepteur ex est consectetur fugiat"
],
"default_duration": "P1Y",
"private": true,
"updated_at": "1940-03-01T17:44:16.0Z"
}
],
"revenue_schedule": "FREQ=WEEKLY",
"created_at": "1949-12-10T21:19:41.0Z",
"updated_at": "1947-03-19T06:54:57.0Z",
"deleted_at": "1956-11-11T05:32:04.0Z"
},
"rate": {
"id": "1a17dba9-95e9-2632-416f-74713b4bac0d",
"membership_type_id": "964d651c-b7bc-c1e2-3cdd-7d3867696ebe",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M",
"processors": [
"in exercitation"
],
"default_duration": "P1Y",
"private": true,
"created_at": "1918-11-05T22:11:33.0Z",
"updated_at": "1891-02-20T12:48:44.0Z"
},
"status": "reserved",
"source": "import",
"payment_method": {
"last_4": "ut Lorem nisi deserunt",
"status": "revoked",
"card_brand": "amex"
},
"end_date": "1951-08-14T19:23:13.0Z",
"created_at": "1928-07-14T13:17:52.0Z",
"basket_id": "66e04549d302040127000042",
"external_ref": "fugiat",
"next_billing_date": "1932-07-06T05:48:13.0Z",
"next_charge": {
"id": "ee42d66a-090a-6097-ec31-b89272e0a92f",
"amount": 3995,
"currency": "GBP",
"status": "processing",
"billing_period_from": "1969-03-30",
"billing_period_to": "1947-10-28"
},
"attention_reason": "no_mandate"
}
],
"meta": {
"from": 1,
"to": 2,
"total": 2,
"current_page": 1,
"last_page": 2,
"per_page": 15,
"path": "http://example.com/api"
},
"links": {
"first": "http://example.com?page=1",
"next": "https://example.com?page=3",
"prev": "https://example.com?page=1",
"last": "https://example.com?page=4"
}
}
getMembership
Use this endpoint to retrieve a Membership
by its ID.
membershipId
The ID of the membership
{
"data": {
"id": "fc706144-0c53-c34f-c277-4f26b3a103b0",
"site_id": "03765567-8a2f-9bdd-c001-923f64904c39",
"membership_number": "1234567890",
"customer": {
"id": "afcb6468-4f7f-b17a-12c4-6e80df9cd2a7",
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"phone": "+447900000000",
"has_password": true,
"dob": "1942-07-14",
"brand_id": "9dac9327-b7d7-34ae-dcd6-64a2ecca3ddd",
"site_id": "6f0dfb99-9928-61fa-b9ed-5bd8cdd88617",
"stripe_id": "cus_1234567890",
"express_stripe_id": "cus_1234567890",
"email": "janedoe@example.com",
"labels": [
{
"id": "d4f42c85-59c8-05f4-9c37-16b887a11185",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "c43e4e32-8cfa-7804-c7af-0dd7a65d14d6",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "9b25e456-fa17-2708-8855-ddb34bbb7ded",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "473a3b8a-b739-569a-5d2d-e51cbc823d15",
"value": "VIP",
"colour": "ff6634"
},
{
"id": "dfa004fa-2020-93ad-459b-e65f6f1d9a1d",
"value": "VIP",
"colour": "ff6634"
}
],
"preferred_locale": "en",
"locked_at": "1950-09-02T09:18:49.0Z",
"created_at": "1947-03-05T01:19:54.0Z",
"updated_at": "1945-04-07T06:15:38.0Z",
"deleted_at": "1946-02-01T18:01:53.0Z",
"last_active_at": "1969-06-27T03:20:01.0Z",
"email_verified_at": "1953-01-31T09:28:53.0Z",
"last_check_in": {
"checked_in_at": "1914-05-28T06:54:37.0Z",
"method": "Scanned"
},
"avatar_id": "000000-000000-000000-000000",
"avatar": {
"id": "be5bac14-c3d0-ea35-ce8f-02091815b47d",
"file_name": "super-cool-photo.jpg",
"mime_type": "image/jpeg",
"size": 84256,
"url": "https://example.com/media/super-cool-photo.jpg"
},
"external_ref": "incididunt dolor enim Excepteur in"
},
"type": {
"id": "7980b978-6b56-7188-2a88-66e81a65f8e6",
"name": "Gold tier",
"description": "Enjoy exclusive benefits as part of being a member in our Gold tier",
"terms": "officia dolor nostrud",
"brand_id": "f98b1659-603c-ce27-67e6-6b5fe4693297",
"offline_payments": true,
"disable_confirmation_email": false,
"private": false,
"minimum_start_date": "1893-04-14T03:23:55.0Z",
"min_members": 2,
"max_members": 4,
"rates": [
{
"id": "c15c193a-696f-285b-3de4-cd700e8e18ef",
"currency": "GBP",
"tax": 1250,
"billing_frequency": "P1M",
"default_duration": "P1Y",
"private": true,
"created_at": "1955-05-30T02:45:26.0Z"
},
{
"id": "68229d63-5f53-06e5-1c12-0560d63d98cf",
"membership_type_id": "0d2b4042-dc8c-3175-689b-f4a8c6d92ac7",
"name": "Standard rate",
"currency": "GBP",
"price": 5000,
"joining_fee": 1000,
"tax": 1250,
"billing_frequency": "P1M"
},
{
"id": "8b8e4114-1eb8-4b6a-2b24-7a9b73bcb30b",
"membership_type_id": "2f912ce0-9a34-b65f-9b63-7df20af15759",
"name": "Standard rate",
"currency": "GBP"
}
],
"revenue_schedule": "FREQ=WEEKLY",
"created_at": "1897-10-18T17:14:49.0Z",
"updated_at": "1904-05-17T03:16:51.0Z",
"deleted_at": "1916-04-13T21:37:14.0Z"
},
"status": "needs_dd_mandate",
"source": "unknown",
"payment_method": {
"id": "proident ex voluptate ad",
"type": "direct_debit",
"last_4": "in deserunt sed",
"status": "revoked",
"card_brand": "amex"
},
"basket_id": "66e04549d302040127000043",
"next_billing_date": "1941-09-16T19:17:32.0Z",
"attention_reason": "payment_outstanding"
}
}
{
"message": "The requested resource could not be found"
}
actionAddMembershipChargePayment
This endpoint allows a manual (off-Trybe) payment to be recorded against a membership charge.
membershipId
The ID of the membership
chargeId
The ID of the charge
payment_type_id
The ID of the custom payment type this payment should be recorded as
{
"data": {
"id": "43a022c8-08aa-472c-f40d-9c3724c3e82d",
"membership": {
"id": "c1331655-82ac-5d9f-57dc-c8c9b57ad47d",
"membership_number": "00000014",
"type_name": "Gold Membership",
"customer_id": "833fb965-8181-42fd-526a-1b23fd7de5ed"
},
"processor": "adyen",
"processor_data": {
"cardholder_name": "Mrs J Jones",
"last_4": 4001,
"processor_type": "Cash",
"processor_type_id": "66e04549d302040127000044"
},
"amount": 3995,
"currency": "gbp",
"tax": 1000,
"status": "succeeded",
"can_download_receipt": false,
"amount_refunded": "sit velit",
"refunded": "reprehenderit eiusmod ex",
"refunds": [
{
"id": "21f90cbd-3ae9-9091-8b99-fbe10957af4f",
"status": "succeeded",
"amount": 995,
"currency": "gbp",
"notes": "Gesture of good will",
"failure_reason": "invalid_details",
"processor_data": {
"processor": "adyen",
"processor_id": "re_64301e0b2df9d11814010ea6"
},
"created_at": "1965-04-04T02:33:50.0Z",
"updated_at": "1919-10-23T11:51:07.0Z"
}
],
"site_id": "d2121af0-b656-1fb2-b5f6-6d6986da099d",
"billing_period_from": "1926-12-23",
"billing_period_to": "1891-09-07",
"created_at": "1925-02-14T06:38:54.0Z",
"updated_at": "1897-08-18T12:42:34.0Z"
}
}
{
"message": "The requested resource could not be found"
}