Attach a new Payment Method to the organization

POST /api/organization/{organizationId}/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/{organizationId}/payment/paymentmethod/
curl \
 -X POST https://api-dev.gatego.io:443/api/organization/{organizationId}/payment/paymentmethod/ \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"email":"string","provider_payment_method_id":"string"}'
Request example
# Headers

# Payload
{
  "email": "string",
  "provider_payment_method_id": "string"
}