This collection allows you to check, create and remove payment details associated with the current user.
Note
In order to use the requests in this collection you need to authenticate to the API with your username and password by using this request.
Important
This endpoint supports only cards associated with the Stripe integration.
No other types of payment details or integrations are supported at the moment.
Important
Multi-location billing isn't supported when adding payment details with these endpoints.
The recorded payment details will always be associated only with the customer's home location.
Here is the list of the payment details object properties:
Payment Details
Property | Type | Required | Description |
---|---|---|---|
locations | array Location | false | The location for which the card can be used. This array always contains only the default location of the member for which the card is being recorded. |
type | object | true | The payment gateway associated with the payment details. This should always be set to "stripe". |
method | string | true | The type of payment detail. This should always be set to "card". |
data.stripe_token | string | true | The token generated by Stripe's API for the card that will be recorded. This needs to be generated separately. |
isPersonal | boolean | true | Determines whether the card is a member's personal card or whether it should be associated with their company. |