Get the organization's campaign standing
GET/api/v1/billing/campaign
Where the organization stands with the credit campaigns running now.
campaignis the running sign-up campaign (credit for saving a first card), ornull.statusis the organization's standing with it:eligible(it will be paid when a card is saved),granted,pending(under review),ineligible, ornot_applicable(no campaign, a card is already saved, or the organization signed up before the campaign began).reasonis a short machine-readable explanation forpendingandineligible, otherwise"".integrationis the running first-integration campaign (credit for the first integration in a product), ornull, andgiftsthe credit it — or an earlier one — paid the organization recently, newest first.
Requires the billing:usage:read scope.
Authorization
Responses
200
The campaign standing.
dataOrgCampaignShow OrgCampaign properties
campaignPublicCampaign | null- PublicCampaign
Show PublicCampaign properties
idstringkindstringproductsarray of stringThe products a first-integration campaign pays for;[]for a sign-up campaign.namestringbanner_textstringbanner_linkstringehunumberThe credit paid, in EHU.ends_atstring (date-time)
- null
statusstringreasonstringintegrationPublicCampaign | null- PublicCampaign
Show PublicCampaign properties
idstringkindstringproductsarray of stringThe products a first-integration campaign pays for;[]for a sign-up campaign.namestringbanner_textstringbanner_linkstringehunumberThe credit paid, in EHU.ends_atstring (date-time)
- null
giftsarray of objectidstringproductstringehunumbergranted_atstring (date-time) | nullexpires_atstring (date-time) | null
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
The campaign could not be loaded (CAMPAIGN_UNAVAILABLE). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X GET 'https://evohub.io/api/v1/billing/campaign' \
-H 'Authorization: Bearer <TOKEN>'
