API Reference
- Getting started
- Add-ons
- Analytics
- Billable metrics
- Coupons
- Credit notes
- Customer usage
- Customers
- Events
- Fees
- Invoices
- Organizations
- Payments
- Payment receipts
- Payment requests
- Plans
- Resources
- Subscriptions
- Taxes
- Wallets
- Webhook endpoints
- Webhooks
Create a payment
This endpoint is used to create a manual payment
curl --request POST \
--url https://api.getlago.com/api/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"payment": {
"invoice_id": "486b147a-02a1-4ccf-8603-f3541fc25e7a",
"amount_cents": 100,
"reference": "ref1",
"paid_at": "2025-02-20"
}
}'
{
"payment": {
"lago_id": "4cf085a7-c196-4f07-a543-97c50ec6e8b2",
"invoice_ids": [
"486b147a-02a1-4ccf-8603-f3541fc25e7a"
],
"amount_cents": 100,
"amount_currency": "USD",
"payment_status": "succeeded",
"type": "manual",
"reference": "ref1",
"external_payment_id": null,
"created_at": "2025-02-20T00:00:00Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Unique identifier assigned to the invoice
"486b147a-02a1-4ccf-8603-f3541fc25e7a"
The payment amount in cents
100
Reference for the payment
"ref1"
The date the payment was made
"2025-02-20"
Response
The unique identifier of the payment, created by Lago.
"4cf085a7-c196-4f07-a543-97c50ec6e8b2"
List of invoice IDs associated with the payment.
The amount of the payment in cents.
100
The currency of the payment amount.
"USD"
The current status of the payment.
"succeeded"
The type of payment.
"manual"
Reference for the payment.
"ref1"
External identifier for the payment (if applicable).
null
Timestamp when the payment was created.
"2025-02-20T00:00:00Z"
Was this page helpful?
curl --request POST \
--url https://api.getlago.com/api/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"payment": {
"invoice_id": "486b147a-02a1-4ccf-8603-f3541fc25e7a",
"amount_cents": 100,
"reference": "ref1",
"paid_at": "2025-02-20"
}
}'
{
"payment": {
"lago_id": "4cf085a7-c196-4f07-a543-97c50ec6e8b2",
"invoice_ids": [
"486b147a-02a1-4ccf-8603-f3541fc25e7a"
],
"amount_cents": 100,
"amount_currency": "USD",
"payment_status": "succeeded",
"type": "manual",
"reference": "ref1",
"external_payment_id": null,
"created_at": "2025-02-20T00:00:00Z"
}
}