Attach a new Payment Method to the organization

POST /api/organization-group/{organizationGroupId}/payment/paymentmethod/

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

application/json

Responses

POST /api/organization-group/{organizationGroupId}/payment/paymentmethod/
curl \
 -X POST http://localhost: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"
}