Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

GET /v1/coupons/{couponId}

GET/v1/coupons/{couponId}
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
couponIdstringrequired
min length 1
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
Responses
200

Success

dataobjectrequired
Show properties
couponIdstringrequired
min length 1
codestringrequired
min length 1
namestringrequired
min length 1
statusstringrequired
Allowed:activeterminated
discountTypestringrequired
Allowed:fixed_amountpercentage
durationstringrequired
Allowed:oncerepeatingforever
reusablebooleanrequired
targetsobjectrequired
Show properties
priceIdsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
meterIdsstring[] | null
Show properties
Any of:
string[]
Array of string
string
null
null
metadataobjectrequired
createdAtstringrequired
min length 1
descriptionstring | null
Show properties
Any of:
string
string
null
null
amountnumber | null
Show properties
Any of:
number
number
null
null
currencystring | null
Show properties
Any of:
string
string
null
null
percentagenumber | null
Show properties
Any of:
number
number
null
null
durationInBillingPeriodsnumber | null
Show properties
Any of:
number
number
null
null
expiresAtstring | null
Show properties
Any of:
string
string
null
null
terminatedAtstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Request
curl "https://api.vortex.nyc/v1/coupons/:couponId?environment=...&merchantAccountId=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "couponId": "string",
    "code": "string",
    "name": "string",
    "status": "active",
    "discountType": "fixed_amount",
    "duration": "once",
    "reusable": true,
    "targets": {
      "priceIds": [
        "string"
      ],
      "meterIds": [
        "string"
      ]
    },
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "description": "string",
    "amount": 0,
    "currency": "string",
    "percentage": 0,
    "durationInBillingPeriods": 0,
    "expiresAt": "string",
    "terminatedAt": "string"
  },
  "requestId": "string"
}

Was this page helpful?