Loyalty

The loyalty program: rules, rewards, members and redemptions.

Values for the examples

Type them once and every example on this page uses them. The API key stays on this page only and is never saved.

GET/v1/loyalty/companies/{companyId}

The loyalty cards of a company’s contacts.

Read/companies/{companyId}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
companyIdstringYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/companies/{companyId}" \
  -H "X-Api-Key: fmd_..."

GET/v1/loyalty/contacts/{contactId}

A contact’s card: member or not, balance, tier, history and redemptions.

Read/contacts/{contactId}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
contactIdstringYes

Response

78 fields
FieldTypeAlways there
memberobject | nullYes
member.balanceintegerYes
member.cardUrlstring (uri)Yes
member.contactIdstring (uuid)Yes
member.createdAtstring (date-time)Yes
member.currencystringYes
member.idstring (uuid)Yes
member.lastActivityAtstring (date-time)Yes
member.lifetimePointsintegerYes
member.nextTierobject | nullYes
member.nextTier.namestringYes
member.nextTier.pointsToGointegerYes
member.purchasesintegerYes
member.spentintegerYes
member.tierobject | nullYes
member.tier.indexintegerYes
member.tier.namestringYes
programobjectYes
program.activebooleanYes
program.autoEnrollbooleanYes
program.currencystringYes
program.eventRulesarray of objectYes
program.eventRules[].eventstringYes
program.eventRules[].perDayintegerYes
program.eventRules[].pointsintegerYes
program.expirationMonthsinteger | nullYes
program.minPurchaseAmountintegerYes
program.namestring | nullYes
program.organizationIdstring (uuid)Yes
program.pointsLabelstring | nullYes
program.pointsPerPurchaseintegerYes
program.pointsPerUnitintegerYes
program.selfRedeembooleanYes
program.sourcesobjectYes
program.sources.invoicesbooleanYes
program.sources.manualPaymentsbooleanYes
program.sources.paymentsbooleanYes
program.termsstring | nullYes
program.tiersarray of objectYes
program.tiers[].minPointsintegerYes
program.tiers[].multiplierPercentintegerYes
program.tiers[].namestringYes
program.unitAmountintegerYes
program.updatedAtstring (date-time)Yes
program.welcomePointsintegerYes
redemptionsarray of objectYes
redemptions[].canceledAtstring | null (date-time)Yes
redemptions[].codestringYes
redemptions[].createdAtstring (date-time)Yes
redemptions[].createdBynull in the examplesYes
redemptions[].fulfilledAtnull in the examplesYes
redemptions[].fulfilledBynull in the examplesYes
redemptions[].idstring (uuid)Yes
redemptions[].memberIdstring (uuid)Yes
redemptions[].organizationIdstring (uuid)Yes
redemptions[].pointsintegerYes
redemptions[].rewardobjectYes
redemptions[].reward.currencystringYes
redemptions[].reward.kindstringYes
redemptions[].reward.namestringYes
redemptions[].reward.valuenull in the examplesYes
redemptions[].rewardIdstring (uuid)Yes
redemptions[].sourcestringYes
redemptions[].statusstringYes
transactionsarray of objectYes
transactions[].amountinteger | nullYes
transactions[].createdAtstring (date-time)Yes
transactions[].createdBystring | null (uuid)Yes
transactions[].currencystring | nullYes
transactions[].idstring (uuid)Yes
transactions[].kindstringYes
transactions[].memberIdstring (uuid)Yes
transactions[].notestring | nullYes
transactions[].organizationIdstring (uuid)Yes
transactions[].pointsintegerYes
transactions[].reversedAtstring | null (date-time)Yes
transactions[].sourcestringYes
transactions[].sourceKeystring | nullYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/contacts/{contactId}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "member": {
    "balance": 1,
    "cardUrl": "https://example.com",
    "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "createdAt": "2026-11-21T14:00:00.000Z",
    "currency": "USD",
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "lastActivityAt": "2026-11-21T14:00:00.000Z",
    "lifetimePoints": 1,
    "nextTier": {
      "name": "Ana Lima",
      "pointsToGo": 1
    },
    "purchases": 1,
    "spent": 1,
    "tier": {
      "index": 1,
      "name": "Ana Lima"
    }
  },
  "program": {
    "active": true,
    "autoEnroll": true,
    "currency": "USD",
    "eventRules": [
      {}
    ],
    "expirationMonths": 1,
    "minPurchaseAmount": 1,
    "name": "Ana Lima",
    "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "pointsLabel": "…",
    "pointsPerPurchase": 1,
    "pointsPerUnit": 1,
    "selfRedeem": true,
    "sources": {
      "invoices": true,
      "manualPayments": true,
      "payments": true
    },
    "terms": "…",
    "tiers": [
      {}
    ],
    "unitAmount": 1,
    "updatedAt": "2026-11-21T14:00:00.000Z",
    "welcomePoints": 1
  },
  "redemptions": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "reward": {},
      "points": 1,
      "code": "…",
      "status": "…",
      "source": "…",
      "createdBy": null,
      "fulfilledAt": null,
      "fulfilledBy": null,
      "canceledAt": "2026-11-21T14:00:00.000Z",
      "createdAt": "2026-11-21T14:00:00.000Z"
    }
  ],
  "transactions": [
    {
      "amount": 1,
      "createdAt": "2026-11-21T14:00:00.000Z",
      "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "currency": "USD",
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "kind": "…",
      "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "note": "…",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "points": 1,
      "reversedAt": "2026-11-21T14:00:00.000Z",
      "source": "…",
      "sourceKey": "…"
    }
  ]
}

POST/v1/loyalty/contacts/{contactId}/adjust

Adds or takes away points by hand, with the reason.

Update/contacts/{contactId}/adjustOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
contactIdstringYes

Body

FieldTypeRequiredNotes
pointsintegerYesmin -10000000 · max 10000000
notestringYesmin length 1 · max length 500

Response

55 fields
FieldTypeAlways there
memberobjectYes
member.balanceintegerYes
member.cardUrlstring (uri)Yes
member.contactIdstring (uuid)Yes
member.createdAtstring (date-time)Yes
member.currencystringYes
member.idstring (uuid)Yes
member.lastActivityAtstring (date-time)Yes
member.lifetimePointsintegerYes
member.nextTierobjectYes
member.nextTier.namestringYes
member.nextTier.pointsToGointegerYes
member.purchasesintegerYes
member.spentintegerYes
member.tiernull in the examplesYes
programobjectYes
program.activebooleanYes
program.autoEnrollbooleanYes
program.currencystringYes
program.eventRulesarray of anyYes
program.expirationMonthsnull in the examplesYes
program.minPurchaseAmountintegerYes
program.namestringYes
program.organizationIdstring (uuid)Yes
program.pointsLabelstringYes
program.pointsPerPurchaseintegerYes
program.pointsPerUnitintegerYes
program.selfRedeembooleanYes
program.sourcesobjectYes
program.sources.invoicesbooleanYes
program.sources.manualPaymentsbooleanYes
program.sources.paymentsbooleanYes
program.termsstringYes
program.tiersarray of objectYes
program.tiers[].minPointsintegerYes
program.tiers[].multiplierPercentintegerYes
program.tiers[].namestringYes
program.unitAmountintegerYes
program.updatedAtstring (date-time)Yes
program.welcomePointsintegerYes
redemptionsarray of anyYes
transactionsarray of objectYes
transactions[].amountnull in the examplesYes
transactions[].createdAtstring (date-time)Yes
transactions[].createdBystring (uuid)Yes
transactions[].currencynull in the examplesYes
transactions[].idstring (uuid)Yes
transactions[].kindstringYes
transactions[].memberIdstring (uuid)Yes
transactions[].notestring | nullYes
transactions[].organizationIdstring (uuid)Yes
transactions[].pointsintegerYes
transactions[].reversedAtnull in the examplesYes
transactions[].sourcestringYes
transactions[].sourceKeystring | nullYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/contacts/{contactId}/adjust" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "points": -10000000,
  "note": "…"
}'

Response (200), with sample values:

{
  "program": {
    "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "active": true,
    "name": "Ana Lima",
    "pointsLabel": "…",
    "currency": "USD",
    "pointsPerPurchase": 1,
    "pointsPerUnit": 1,
    "unitAmount": 1,
    "minPurchaseAmount": 1,
    "welcomePoints": 1,
    "expirationMonths": null,
    "tiers": [
      {}
    ],
    "eventRules": [],
    "sources": {
      "invoices": true,
      "payments": true,
      "manualPayments": true
    },
    "autoEnroll": true,
    "selfRedeem": true,
    "terms": "…",
    "updatedAt": "2026-11-21T14:00:00.000Z"
  },
  "member": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "balance": 1,
    "lifetimePoints": 1,
    "purchases": 1,
    "spent": 1,
    "currency": "USD",
    "tier": null,
    "nextTier": {
      "name": "Ana Lima",
      "pointsToGo": 1
    },
    "cardUrl": "https://example.com",
    "lastActivityAt": "2026-11-21T14:00:00.000Z",
    "createdAt": "2026-11-21T14:00:00.000Z"
  },
  "transactions": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "kind": "…",
      "points": 1,
      "source": "…",
      "sourceKey": "…",
      "amount": null,
      "currency": null,
      "note": "…",
      "reversedAt": null,
      "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "createdAt": "2026-11-21T14:00:00.000Z"
    }
  ],
  "redemptions": []
}

POST/v1/loyalty/contacts/{contactId}/enroll

Makes a contact a member, with the welcome points.

Create/contacts/{contactId}/enrollOn success: 200.Permission: Create.

Path parameters

FieldTypeRequiredNotes
contactIdstringYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/contacts/{contactId}/enroll" \
  -H "X-Api-Key: fmd_..."

POST/v1/loyalty/contacts/{contactId}/send

Emails a contact the link to their card.

Update/contacts/{contactId}/sendOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
contactIdstringYes

Body

FieldTypeRequiredNotes
emailstring (email)Nomax length 320
Example
curl -X POST "https://api.firmado.app/v1/loyalty/contacts/{contactId}/send" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]"
}'

GET/v1/loyalty/members

Lists the members with their balance and tier.

Read/membersOn success: 200.Permission: Read.

Query parameters

FieldTypeRequiredNotes
qstringNomax length 100
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 100 · default 25
sort"balance" | "lifetimePoints" | "lastActivityAt" | "createdAt"Nodefault "balance"

Response

4 fields
FieldTypeAlways there
dataarray of anyYes
pageintegerYes
pageSizeintegerYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/members" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

GET/v1/loyalty/overview

The program’s numbers: members, points given and spent, redemptions.

Read/overviewOn success: 200.Permission: Read.

Response

37 fields
FieldTypeAlways there
last30objectYes
last30.earnedintegerYes
last30.expiredintegerYes
last30.redeemedintegerYes
membersintegerYes
outstandingintegerYes
pendingRedemptionsintegerYes
programobjectYes
program.activebooleanYes
program.autoEnrollbooleanYes
program.currencystringYes
program.eventRulesarray of anyYes
program.expirationMonthsnull in the examplesYes
program.minPurchaseAmountintegerYes
program.namestringYes
program.organizationIdstring (uuid)Yes
program.pointsLabelstringYes
program.pointsPerPurchaseintegerYes
program.pointsPerUnitintegerYes
program.selfRedeembooleanYes
program.sourcesobjectYes
program.sources.invoicesbooleanYes
program.sources.manualPaymentsbooleanYes
program.sources.paymentsbooleanYes
program.termsstringYes
program.tiersarray of objectYes
program.tiers[].minPointsintegerYes
program.tiers[].multiplierPercentintegerYes
program.tiers[].namestringYes
program.unitAmountintegerYes
program.updatedAtstring (date-time)Yes
program.welcomePointsintegerYes
spentintegerYes
topRewardsarray of objectYes
topRewards[].namestringYes
topRewards[].rewardIdstring (uuid)Yes
topRewards[].totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/overview" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "program": {
    "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "active": true,
    "name": "Ana Lima",
    "pointsLabel": "…",
    "currency": "USD",
    "pointsPerPurchase": 1,
    "pointsPerUnit": 1,
    "unitAmount": 1,
    "minPurchaseAmount": 1,
    "welcomePoints": 1,
    "expirationMonths": null,
    "tiers": [
      {}
    ],
    "eventRules": [],
    "sources": {
      "invoices": true,
      "payments": true,
      "manualPayments": true
    },
    "autoEnroll": true,
    "selfRedeem": true,
    "terms": "…",
    "updatedAt": "2026-11-21T14:00:00.000Z"
  },
  "members": 1,
  "outstanding": 1,
  "spent": 1,
  "last30": {
    "earned": 1,
    "redeemed": 1,
    "expired": 1
  },
  "pendingRedemptions": 1,
  "topRewards": [
    {
      "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "total": 1
    }
  ]
}

GET/v1/loyalty/program

The program’s rules: how purchases earn, tiers and expiration.

Read/programOn success: 200.Permission: Read.

Response

21 fields
FieldTypeAlways there
activebooleanYes
autoEnrollbooleanYes
currencystringYes
eventRulesarray of anyYes
expirationMonthsnull in the examplesYes
minPurchaseAmountintegerYes
namenull in the examplesYes
organizationIdstring (uuid)Yes
pointsLabelnull in the examplesYes
pointsPerPurchaseintegerYes
pointsPerUnitintegerYes
selfRedeembooleanYes
sourcesobjectYes
sources.invoicesbooleanYes
sources.manualPaymentsbooleanYes
sources.paymentsbooleanYes
termsnull in the examplesYes
tiersarray of anyYes
unitAmountintegerYes
updatedAtstring (date-time)Yes
welcomePointsintegerYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/program" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "active": true,
  "name": null,
  "pointsLabel": null,
  "currency": "USD",
  "pointsPerPurchase": 1,
  "pointsPerUnit": 1,
  "unitAmount": 1,
  "minPurchaseAmount": 1,
  "welcomePoints": 1,
  "expirationMonths": null,
  "tiers": [],
  "eventRules": [],
  "sources": {
    "payments": true,
    "invoices": true,
    "manualPayments": true
  },
  "autoEnroll": true,
  "selfRedeem": true,
  "terms": null,
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

PUT/v1/loyalty/program

Saves the program’s rules (administrators).

Update/programOn success: 200.Permission: Update.

Body

FieldTypeRequiredNotes
activebooleanYes
namestring | nullNo
pointsLabelstring | nullNo
currencystringYespattern ^[A-Z]{3}$
pointsPerPurchaseintegerYesmin 0 · max 1000000
pointsPerUnitintegerYesmin 0 · max 1000000
unitAmountintegerYesmin 1 · max 1000000000000
minPurchaseAmountintegerYesmin 0 · max 1000000000000
welcomePointsintegerYesmin 0 · max 1000000
expirationMonthsinteger | nullYes
tiersarray of objectYesmax items 5
tiers[].namestringYesmin length 1 · max length 40
tiers[].minPointsintegerYesmin 0 · max 1000000000
tiers[].multiplierPercentintegerNomin 100 · max 1000 · default 100
eventRulesarray of objectNomax items 10
eventRules[].eventstringYes
eventRules[].pointsintegerYesmin 1 · max 1000000
eventRules[].perDayinteger | nullNodefault null
sourcesobjectYes
sources.paymentsbooleanYes
sources.invoicesbooleanYes
sources.manualPaymentsbooleanYes
autoEnrollbooleanYes
selfRedeembooleanYes
termsstring | nullNo

Response

27 fields
FieldTypeAlways there
activebooleanYes
autoEnrollbooleanYes
currencystringYes
eventRulesarray of objectYes
eventRules[].eventstringYes
eventRules[].perDayintegerYes
eventRules[].pointsintegerYes
expirationMonthsnull in the examplesYes
minPurchaseAmountintegerYes
namestring | nullYes
organizationIdstring (uuid)Yes
pointsLabelstring | nullYes
pointsPerPurchaseintegerYes
pointsPerUnitintegerYes
selfRedeembooleanYes
sourcesobjectYes
sources.invoicesbooleanYes
sources.manualPaymentsbooleanYes
sources.paymentsbooleanYes
termsstring | nullYes
tiersarray of objectYes
tiers[].minPointsintegerYes
tiers[].multiplierPercentintegerYes
tiers[].namestringYes
unitAmountintegerYes
updatedAtstring (date-time)Yes
welcomePointsintegerYes
Example
curl -X PUT "https://api.firmado.app/v1/loyalty/program" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "active": true,
  "currency": "USD",
  "pointsPerPurchase": 0,
  "pointsPerUnit": 0,
  "unitAmount": 1,
  "minPurchaseAmount": 0,
  "welcomePoints": 0,
  "expirationMonths": 1,
  "tiers": [
    {
      "name": "Ana Lima",
      "minPoints": 0,
      "multiplierPercent": 100
    }
  ],
  "sources": {
    "payments": true,
    "invoices": true,
    "manualPayments": true
  },
  "autoEnroll": true,
  "selfRedeem": true
}'

Response (200), with sample values:

{
  "active": true,
  "autoEnroll": true,
  "currency": "USD",
  "eventRules": [
    {
      "event": "…",
      "perDay": 1,
      "points": 1
    }
  ],
  "expirationMonths": null,
  "minPurchaseAmount": 1,
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "pointsLabel": "…",
  "pointsPerPurchase": 1,
  "pointsPerUnit": 1,
  "selfRedeem": true,
  "sources": {
    "invoices": true,
    "manualPayments": true,
    "payments": true
  },
  "terms": "…",
  "tiers": [
    {
      "name": "Ana Lima",
      "minPoints": 1,
      "multiplierPercent": 1
    }
  ],
  "unitAmount": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "welcomePoints": 1
}

GET/v1/loyalty/redemptions

Lists the rewards taken, by status.

Read/redemptionsOn success: 200.Permission: Read.

Query parameters

FieldTypeRequiredNotes
status"pending" | "fulfilled" | "canceled"No
codestringNomax length 20
contactIdstring (uuid)No
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 100 · default 25

Response

24 fields
FieldTypeAlways there
dataarray of objectYes
data[].canceledAtnull in the examplesYes
data[].codestringYes
data[].contactIdstring (uuid)Yes
data[].createdAtstring (date-time)Yes
data[].createdBynull in the examplesYes
data[].fulfilledAtnull in the examplesYes
data[].fulfilledBynull in the examplesYes
data[].idstring (uuid)Yes
data[].memberIdstring (uuid)Yes
data[].namestringYes
data[].organizationIdstring (uuid)Yes
data[].pointsintegerYes
data[].rewardobjectYes
data[].reward.currencystringYes
data[].reward.kindstringYes
data[].reward.namestringYes
data[].reward.valuenull in the examplesYes
data[].rewardIdstring (uuid)Yes
data[].sourcestringYes
data[].statusstringYes
pageintegerYes
pageSizeintegerYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/redemptions" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "reward": {},
      "points": 1,
      "code": "…",
      "status": "…",
      "source": "…",
      "createdBy": null,
      "fulfilledAt": null,
      "fulfilledBy": null,
      "canceledAt": null,
      "createdAt": "2026-11-21T14:00:00.000Z",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

POST/v1/loyalty/redemptions

Takes a reward for a contact, spending their points.

Create/redemptionsOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
contactIdstring (uuid)Yes
rewardIdstring (uuid)Yes

Response

18 fields
FieldTypeAlways there
canceledAtnull in the examplesYes
codestringYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
fulfilledAtnull in the examplesYes
fulfilledBynull in the examplesYes
idstring (uuid)Yes
memberIdstring (uuid)Yes
organizationIdstring (uuid)Yes
pointsintegerYes
rewardobjectYes
reward.currencystringYes
reward.kindstringYes
reward.namestringYes
reward.valuenull in the examplesYes
rewardIdstring (uuid)Yes
sourcestringYes
statusstringYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/redemptions" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'

Response (201), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "reward": {
    "kind": "…",
    "name": "Ana Lima",
    "value": null,
    "currency": "USD"
  },
  "points": 1,
  "code": "…",
  "status": "…",
  "source": "…",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "fulfilledAt": null,
  "fulfilledBy": null,
  "canceledAt": null,
  "createdAt": "2026-11-21T14:00:00.000Z"
}

POST/v1/loyalty/redemptions/{id}/cancel

Cancels a reward not handed over; the points go back.

Update/redemptions/{id}/cancelOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

18 fields
FieldTypeAlways there
canceledAtstring (date-time)Yes
codestringYes
createdAtstring (date-time)Yes
createdBynull in the examplesYes
fulfilledAtnull in the examplesYes
fulfilledBynull in the examplesYes
idstring (uuid)Yes
memberIdstring (uuid)Yes
organizationIdstring (uuid)Yes
pointsintegerYes
rewardobjectYes
reward.currencystringYes
reward.kindstringYes
reward.namestringYes
reward.valuenull in the examplesYes
rewardIdstring (uuid)Yes
sourcestringYes
statusstringYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/redemptions/{id}/cancel" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "reward": {
    "kind": "…",
    "name": "Ana Lima",
    "value": null,
    "currency": "USD"
  },
  "points": 1,
  "code": "…",
  "status": "…",
  "source": "…",
  "createdBy": null,
  "fulfilledAt": null,
  "fulfilledBy": null,
  "canceledAt": "2026-11-21T14:00:00.000Z",
  "createdAt": "2026-11-21T14:00:00.000Z"
}

POST/v1/loyalty/redemptions/{id}/fulfill

Marks a reward as handed over.

Update/redemptions/{id}/fulfillOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

18 fields
FieldTypeAlways there
canceledAtnull in the examplesYes
codestringYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
fulfilledAtstring (date-time)Yes
fulfilledBystring (uuid)Yes
idstring (uuid)Yes
memberIdstring (uuid)Yes
organizationIdstring (uuid)Yes
pointsintegerYes
rewardobjectYes
reward.currencystringYes
reward.kindstringYes
reward.namestringYes
reward.valuenull in the examplesYes
rewardIdstring (uuid)Yes
sourcestringYes
statusstringYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/redemptions/{id}/fulfill" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "memberId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "rewardId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "reward": {
    "kind": "…",
    "name": "Ana Lima",
    "value": null,
    "currency": "USD"
  },
  "points": 1,
  "code": "…",
  "status": "…",
  "source": "…",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "fulfilledAt": "2026-11-21T14:00:00.000Z",
  "fulfilledBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "canceledAt": null,
  "createdAt": "2026-11-21T14:00:00.000Z"
}

GET/v1/loyalty/rewards

Lists the rewards members can take.

Read/rewardsOn success: 200.Permission: Read.

Response

14 fields
FieldTypeAlways there
[].activebooleanYes
[].costintegerYes
[].createdAtstring (date-time)Yes
[].descriptionnull in the examplesYes
[].idstring (uuid)Yes
[].kindstringYes
[].minTiernull in the examplesYes
[].namestringYes
[].organizationIdstring (uuid)Yes
[].perMemberinteger | nullYes
[].positionintegerYes
[].stockinteger | nullYes
[].updatedAtstring (date-time)Yes
[].valueinteger | nullYes
Example
curl -X GET "https://api.firmado.app/v1/loyalty/rewards" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

[
  {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima",
    "description": null,
    "kind": "…",
    "value": 1,
    "cost": 1,
    "stock": 1,
    "perMember": 1,
    "minTier": null,
    "active": true,
    "position": 1,
    "createdAt": "2026-11-21T14:00:00.000Z",
    "updatedAt": "2026-11-21T14:00:00.000Z"
  }
]

POST/v1/loyalty/rewards

Creates a reward: an item, a discount or cashback, and its points.

Create/rewardsOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
namestringYesmin length 1 · max length 120
descriptionstring | nullNo
kind"item" | "discount_percent" | "discount_amount" | "cashback"Yes
valueinteger | nullNo
costintegerYesmin 1 · max 1000000000
stockinteger | nullNo
perMemberinteger | nullNo
minTierinteger | nullNo
activebooleanNodefault true
positionintegerNomin 0 · max 1000 · default 0

Response

14 fields
FieldTypeAlways there
activebooleanYes
costintegerYes
createdAtstring (date-time)Yes
descriptionnull in the examplesYes
idstring (uuid)Yes
kindstringYes
minTiernull in the examplesYes
namestringYes
organizationIdstring (uuid)Yes
perMemberinteger | nullYes
positionintegerYes
stockinteger | nullYes
updatedAtstring (date-time)Yes
valueinteger | nullYes
Example
curl -X POST "https://api.firmado.app/v1/loyalty/rewards" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "kind": "item",
  "cost": 1,
  "description": "…"
}'

Response (201), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "name": "Ana Lima",
  "description": null,
  "kind": "…",
  "value": 1,
  "cost": 1,
  "stock": 1,
  "perMember": 1,
  "minTier": null,
  "active": true,
  "position": 1,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

DELETE/v1/loyalty/rewards/{id}

Deletes a reward; rewards already taken stay.

Delete/rewards/{id}On success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/loyalty/rewards/{id}" \
  -H "X-Api-Key: fmd_..."

PUT/v1/loyalty/rewards/{id}

Changes a reward.

Update/rewards/{id}On success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringYesmin length 1 · max length 120
descriptionstring | nullNo
kind"item" | "discount_percent" | "discount_amount" | "cashback"Yes
valueinteger | nullNo
costintegerYesmin 1 · max 1000000000
stockinteger | nullNo
perMemberinteger | nullNo
minTierinteger | nullNo
activebooleanNodefault true
positionintegerNomin 0 · max 1000 · default 0
Example
curl -X PUT "https://api.firmado.app/v1/loyalty/rewards/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "kind": "item",
  "cost": 1,
  "description": "…"
}'

Webhook events

Changes of this feature that webhooks can send.

  • loyalty_program.updatedUpdate
  • loyalty_member.joinedCreate
  • loyalty.points_changedUpdate
  • loyalty_reward.createdCreate
  • loyalty_reward.updatedUpdate
  • loyalty_reward.deletedDelete
  • loyalty_redemption.createdCreate
  • loyalty_redemption.updatedUpdate