v18

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014211,6201.8 MB
gitpod.v1.BillingService

GetCoupon

Retrieves a specific coupon by its code.

Use this method to:

  • Validate coupon codes during checkout
  • Display coupon details to users
  • Check coupon availability and expiration

Examples

  • Get coupon by code:

    Retrieves coupon details for validation.

    couponCode: "WELCOME2024"
    organizationId: "123e4567-e89b-12d3-a456-426614174000"
    
post/gitpod.v1.BillingService/GetCoupon

Request body

couponCodestring required

coupon_code is the code of the coupon to retrieve

organizationIdstring uuid required

organization_id is the organization context for per-organization validation

Response

Success