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

GET/v1/coupons
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
limitstring
matches ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
offsetstring
matches ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
Responses
200

Success

dataobjectrequired
Show properties
itemsobject[]required
Show properties
Array of object
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
totalnumberrequired
hasMorebooleanrequired
nextOffsetnumber | null
Show properties
Any of:
number
number
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Request
curl "https://api.vortex.nyc/v1/coupons?environment=...&merchantAccountId=...&limit=...&offset=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "items": [
      {
        "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"
      }
    ],
    "total": 0,
    "hasMore": true,
    "nextOffset": 0
  },
  "requestId": "string"
}

Was this page helpful?