Payments

Stripe payments, refunds and sales made outside Firmado.

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/companies/{id}/payments

What a company paid: its invoices’ and proposals’ payments.

Read/{id}/paymentsOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 50 · default 10

Response

45 fields
FieldTypeAlways there
dataarray of objectYes
data[].amountintegerYes
data[].appointmentnull in the examplesYes
data[].atstring (date-time)Yes
data[].currencystringYes
data[].dealobject | nullYes
data[].deal.idstring (uuid)Yes
data[].deal.referencenull in the examplesYes
data[].deal.titlestringYes
data[].filenull in the examplesYes
data[].idstring (uuid)Yes
data[].invoiceobject | nullYes
data[].invoice.idstring (uuid)Yes
data[].invoice.numberstringYes
data[].kindstringYes
data[].methodstring | nullYes
data[].payerEmailstring | null (email)Yes
data[].payerNamestring | nullYes
data[].recordedobject | nullYes
data[].recorded.channelnull in the examplesYes
data[].recorded.companyobjectYes
data[].recorded.company.idstring (uuid)Yes
data[].recorded.company.namestringYes
data[].recorded.contactobject | nullYes
data[].recorded.contact.idstring (uuid)Yes
data[].recorded.contact.namestringYes
data[].recorded.descriptionstring | nullYes
data[].recorded.itemsarray of objectYes
data[].recorded.items[].descriptionnull in the examplesYes
data[].recorded.items[].discountobject | nullYes
data[].recorded.items[].idstring (uuid)Yes
data[].recorded.items[].namestringYes
data[].recorded.items[].quantityintegerYes
data[].recorded.items[].serviceIdstring | null (uuid)Yes
data[].recorded.items[].unitPriceintegerYes
data[].recorded.recordedBystringYes
data[].recorded.referencenull in the examplesYes
data[].sourcestringYes
data[].statusstringYes
pageintegerYes
pageSizeintegerYes
paidTotalsarray of objectYes
paidTotals[].amountintegerYes
paidTotals[].currencystringYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/companies/{id}/payments" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [
    {
      "amount": 1,
      "appointment": null,
      "at": "2026-11-21T14:00:00.000Z",
      "currency": "USD",
      "deal": {},
      "file": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "invoice": {},
      "kind": "…",
      "method": "…",
      "payerEmail": "[email protected]",
      "payerName": "Ana Lima",
      "recorded": {},
      "source": "…",
      "status": "…"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "paidTotals": [
    {
      "amount": 1,
      "currency": "USD"
    }
  ],
  "total": 1
}

GET/v1/contacts/{id}/payments

What a contact paid, newest first.

Read/{id}/paymentsOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 50 · default 10

Response

45 fields
FieldTypeAlways there
dataarray of objectYes
data[].amountintegerYes
data[].appointmentnull in the examplesYes
data[].atstring (date-time)Yes
data[].currencystringYes
data[].dealobject | nullYes
data[].deal.idstring (uuid)Yes
data[].deal.referencenull in the examplesYes
data[].deal.titlestringYes
data[].filenull in the examplesYes
data[].idstring (uuid)Yes
data[].invoiceobject | nullYes
data[].invoice.idstring (uuid)Yes
data[].invoice.numberstringYes
data[].kindstringYes
data[].methodstring | nullYes
data[].payerEmailstring | null (email)Yes
data[].payerNamestring | nullYes
data[].recordedobject | nullYes
data[].recorded.channelstring | nullYes
data[].recorded.companyobject | nullYes
data[].recorded.company.idstring (uuid)Yes
data[].recorded.company.namestringYes
data[].recorded.contactobjectYes
data[].recorded.contact.idstring (uuid)Yes
data[].recorded.contact.namestringYes
data[].recorded.descriptionstring | nullYes
data[].recorded.itemsarray of objectYes
data[].recorded.items[].descriptionnull in the examplesYes
data[].recorded.items[].discountobject | nullYes
data[].recorded.items[].idstring (uuid)Yes
data[].recorded.items[].namestringYes
data[].recorded.items[].quantityintegerYes
data[].recorded.items[].serviceIdstring | null (uuid)Yes
data[].recorded.items[].unitPriceintegerYes
data[].recorded.recordedBystringYes
data[].recorded.referencestring | nullYes
data[].sourcestringYes
data[].statusstringYes
pageintegerYes
pageSizeintegerYes
paidTotalsarray of objectYes
paidTotals[].amountintegerYes
paidTotals[].currencystringYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/contacts/{id}/payments" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [
    {
      "amount": 1,
      "appointment": null,
      "at": "2026-11-21T14:00:00.000Z",
      "currency": "USD",
      "deal": {},
      "file": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "invoice": {},
      "kind": "…",
      "method": "…",
      "payerEmail": "[email protected]",
      "payerName": "Ana Lima",
      "recorded": {},
      "source": "…",
      "status": "…"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "paidTotals": [
    {
      "amount": 1,
      "currency": "USD"
    }
  ],
  "total": 1
}

POST/v1/manual-payments

Records a sale made outside Firmado; a repeated reference is kept once.

CreateOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
contactIdstring (uuid) | nullNo
companyIdstring (uuid) | nullNo
descriptionstring | nullNo
itemsarray of objectNomax items 200
items[].idstringNomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNo
items[].namestringYesmin length 1 · max length 200
items[].descriptionstring | nullNo
items[].quantitynumberNomin 0 · max 100000 · default 1
items[].unitPriceintegerYesmin 0 · max 10000000000000
items[].discountobject | nullNo
amountinteger | nullNo
currencystringYespattern ^[A-Z]{3}$
status"paid" | "processing" | "refunded"Nodefault "paid"
paidAtstring (date-time)No
methodstring | nullNo
payerNamestring | nullNo
payerEmailstring (email) | null | ""No
channelstring | nullNo
referencestringNomin length 1 · max length 120 · pattern ^[\w.:-]+$
createContactbooleanNodefault true

Response

28 fields
FieldTypeAlways there
amountintegerYes
channelstring | nullYes
companyIdstring | null (uuid)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionstring | nullYes
idstring (uuid)Yes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountobject | nullYes
items[].discount.typestringYes
items[].discount.valueintegerYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdstring | null (uuid)Yes
items[].unitPriceintegerYes
methodstring | nullYes
organizationIdstring (uuid)Yes
paidAtstring (date-time)Yes
payerEmailstring | null (email)Yes
payerNamestring | nullYes
referencestring | nullYes
statusstringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
curl -X POST "https://api.firmado.app/v1/manual-payments" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "currency": "USD",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": "…"
}'

Response (201), with sample values:

{
  "amount": 1,
  "channel": "…",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "description": "…",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "items": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "discount": {},
      "quantity": 1,
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "unitPrice": 1,
      "description": null
    }
  ],
  "method": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "payerEmail": "[email protected]",
  "payerName": "Ana Lima",
  "reference": "…",
  "status": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

DELETE/v1/manual-payments/{id}

Deletes a sale made outside Firmado.

DeleteOn success: 204.Permission: Delete.

Path parameters

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

GET/v1/manual-payments/{id}

Returns a sale made outside Firmado.

Get oneOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

19 fields
FieldTypeAlways there
amountintegerYes
channelnull in the examplesYes
companyIdnull in the examplesYes
contactIdstring (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionstringYes
idstring (uuid)Yes
itemsarray of anyYes
methodnull in the examplesYes
organizationIdstring (uuid)Yes
paidAtstring (date-time)Yes
payerEmailnull in the examplesYes
payerNamenull in the examplesYes
referencenull in the examplesYes
statusstringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
curl -X GET "https://api.firmado.app/v1/manual-payments/{id}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": null,
  "description": "…",
  "items": [],
  "amount": 1,
  "currency": "USD",
  "status": "…",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "method": null,
  "payerName": null,
  "payerEmail": null,
  "channel": null,
  "reference": null,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

PATCH/v1/manual-payments/{id}

Changes a sale made outside Firmado.

UpdateOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
contactIdstring (uuid) | nullNo
companyIdstring (uuid) | nullNo
descriptionstring | nullNo
itemsarray of objectNomax items 200
items[].idstringNomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNo
items[].namestringYesmin length 1 · max length 200
items[].descriptionstring | nullNo
items[].quantitynumberNomin 0 · max 100000 · default 1
items[].unitPriceintegerYesmin 0 · max 10000000000000
items[].discountobject | nullNo
amountinteger | nullNo
currencystringNopattern ^[A-Z]{3}$
status"paid" | "processing" | "refunded"No
paidAtstring (date-time)No
methodstring | nullNo
payerNamestring | nullNo
payerEmailstring (email) | null | ""No
channelstring | nullNo

Response

26 fields
FieldTypeAlways there
amountintegerYes
channelnull in the examplesYes
companyIdstring (uuid)Yes
contactIdnull in the examplesYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionstringYes
idstring (uuid)Yes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
methodnull in the examplesYes
organizationIdstring (uuid)Yes
paidAtstring (date-time)Yes
payerEmailnull in the examplesYes
payerNamenull in the examplesYes
referencenull in the examplesYes
statusstringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
curl -X PATCH "https://api.firmado.app/v1/manual-payments/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": "…",
  "items": [
    {
      "name": "Ana Lima",
      "unitPrice": 0,
      "id": "…",
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    }
  ]
}'

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": null,
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": "…",
  "items": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "discount": null,
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1,
      "description": null
    }
  ],
  "amount": 1,
  "currency": "USD",
  "status": "…",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "method": null,
  "payerName": null,
  "payerEmail": null,
  "channel": null,
  "reference": null,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

DELETE/v1/manual-payments/reference/{reference}

Takes back a sale by its reference (returned, canceled).

Delete/reference/{reference}On success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
referencestringYes
Example
curl -X DELETE "https://api.firmado.app/v1/manual-payments/reference/{reference}" \
  -H "X-Api-Key: fmd_..."

GET/v1/manual-payments/reference/{reference}

Finds a sale by the sender’s own reference.

Read/reference/{reference}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
referencestringYes

Response

19 fields
FieldTypeAlways there
amountintegerYes
channelstringYes
companyIdnull in the examplesYes
contactIdstring (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionstringYes
idstring (uuid)Yes
itemsarray of anyYes
methodnull in the examplesYes
organizationIdstring (uuid)Yes
paidAtstring (date-time)Yes
payerEmailstring (email)Yes
payerNamestringYes
referencestringYes
statusstringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
curl -X GET "https://api.firmado.app/v1/manual-payments/reference/{reference}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": null,
  "description": "…",
  "items": [],
  "amount": 1,
  "currency": "USD",
  "status": "…",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "method": null,
  "payerName": "Ana Lima",
  "payerEmail": "[email protected]",
  "channel": "…",
  "reference": "…",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

GET/v1/payments

Lists the Stripe payments received and the sales made outside Firmado.

ListOn success: 200.Permission: Read.

Query parameters

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 50 · default 50
qstringNomin length 1 · max length 200
status"open" | "processing" | "paid" | "failed" | "expired" | "refunded"No
source"deal" | "appointment" | "invoice" | "file"No
contactIdstring (uuid)No
createdFromstring (date-time)No
createdBeforestring (date-time)No

Response

36 fields
FieldTypeAlways there
dataarray of objectYes
data[].amountintegerYes
data[].applicationFeeintegerYes
data[].appointmentobject | nullYes
data[].appointment.idstring (uuid)Yes
data[].appointment.startsAtstring (date-time)Yes
data[].appointment.titlestringYes
data[].contactobject | nullYes
data[].contact.idstring (uuid)Yes
data[].contact.namestringYes
data[].createdAtstring (date-time)Yes
data[].currencystringYes
data[].dealobject | nullYes
data[].deal.idstring (uuid)Yes
data[].deal.referencenull in the examplesYes
data[].deal.titlestringYes
data[].fileobject | nullYes
data[].file.idstring (uuid)Yes
data[].file.titlestringYes
data[].idstring (uuid)Yes
data[].invoiceobject | nullYes
data[].invoice.idstring (uuid)Yes
data[].invoice.numberstringYes
data[].paidAtstring (date-time)Yes
data[].payerEmailstring (email)Yes
data[].payerNamestringYes
data[].refundReasonstring | nullYes
data[].refundedAtstring | null (date-time)Yes
data[].sourcestringYes
data[].statusstringYes
pageintegerYes
pageSizeintegerYes
paidTotalsarray of objectYes
paidTotals[].amountintegerYes
paidTotals[].currencystringYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/payments" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [
    {
      "amount": 1,
      "applicationFee": 1,
      "appointment": {},
      "contact": {},
      "createdAt": "2026-11-21T14:00:00.000Z",
      "currency": "USD",
      "deal": {},
      "file": {},
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "invoice": {},
      "paidAt": "2026-11-21T14:00:00.000Z",
      "payerEmail": "[email protected]",
      "payerName": "Ana Lima",
      "refundReason": "…",
      "refundedAt": "2026-11-21T14:00:00.000Z",
      "source": "…",
      "status": "…"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "paidTotals": [
    {
      "amount": 1,
      "currency": "USD"
    }
  ],
  "total": 1
}

POST/v1/payments/{id}/refund

Refunds a Stripe payment in full (administrators).

Update/{id}/refundOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
reasonstring | nullNo

Response

19 fields
FieldTypeAlways there
amountintegerYes
applicationFeeintegerYes
appointmentnull in the examplesYes
contactnull in the examplesYes
createdAtstring (date-time)Yes
currencystringYes
dealnull in the examplesYes
filenull in the examplesYes
idstring (uuid)Yes
invoiceobjectYes
invoice.idstring (uuid)Yes
invoice.numberstringYes
paidAtstring (date-time)Yes
payerEmailstring (email)Yes
payerNamestringYes
refundReasonstringYes
refundedAtstring (date-time)Yes
sourcestringYes
statusstringYes
Example
curl -X POST "https://api.firmado.app/v1/payments/{id}/refund" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "…"
}'

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "source": "…",
  "status": "…",
  "amount": 1,
  "currency": "USD",
  "applicationFee": 1,
  "payerName": "Ana Lima",
  "payerEmail": "[email protected]",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "refundedAt": "2026-11-21T14:00:00.000Z",
  "refundReason": "…",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "contact": null,
  "deal": null,
  "appointment": null,
  "invoice": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "number": "…"
  },
  "file": null
}

Webhook events

Changes of this feature that webhooks can send.

  • manual_payment.createdCreate
  • manual_payment.updatedUpdate
  • manual_payment.deletedDelete