Attach a new Payment Method to the organization
Attach (Create or Update if not created already) a new payment method to the Organization. The payment method must be already associated to the PaymentProvider (Stripe) customer, this method will just associate that payment method to the current Gatego subscription
Headers
-
Specify effective organization_id for Admin and Group Organization Admins. This is a global header for all endpoints only taken into consideration when it makes sense (it won't be used in Auth, for example)
Path parameters
-
organizationGroupId
Body
-
email string
-
provider_payment_method_id string
POST /api/organization-group/{organizationGroupId}/payment/paymentmethod/
curl \
-X POST http://127.0.0.1:8080/api/organization-group/{organizationGroupId}/payment/paymentmethod/ \
-H "Content-Type: application/json" \
-d '{"email":"string","provider_payment_method_id":"string"}'
Request examples
# Headers
# Payload
{
"email": "string",
"provider_payment_method_id": "string"
}