curl --request GET \
--url https://api.getlago.com/api/v1/payment_receipts \
--header 'Authorization: Bearer <token>'{
"payment_receipts": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"created_at": "2022-04-29T08:59:51Z",
"number": "LAG-1234-001-002",
"payment": {
"lago_id": "4cf085a7-c196-4f07-a543-97c50ec6e8b2",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"invoice_ids": [
"486b147a-02a1-4ccf-8603-f3541fc25e7a"
],
"lago_payable_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"payable_type": "Invoice",
"amount_cents": 1099,
"amount_currency": "USD",
"status": "Completed",
"payment_status": "succeeded",
"type": "manual",
"reference": "ref1",
"payment_provider_code": "stripe_prod",
"payment_provider_type": "stripe",
"external_payment_id": "<string>",
"provider_payment_id": "pi_5eb0285741bc6ba",
"provider_customer_id": "cus_5eb0285bcf941bc6ba",
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": {
"url": "https://hooks.stripe.com/3d_secure_2/hosted?merchant=acct_AAA&payment_intent=pi_BBB&payment_intent_client_secret=pi_BBB&publishable_key=pk_test_CCC",
"return_url": "https://app.example.com"
}
},
"created_at": "2025-01-21T00:10:29Z"
}
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}This endpoint is used to list all existing payment receipts.
curl --request GET \
--url https://api.getlago.com/api/v1/payment_receipts \
--header 'Authorization: Bearer <token>'{
"payment_receipts": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"created_at": "2022-04-29T08:59:51Z",
"number": "LAG-1234-001-002",
"payment": {
"lago_id": "4cf085a7-c196-4f07-a543-97c50ec6e8b2",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"invoice_ids": [
"486b147a-02a1-4ccf-8603-f3541fc25e7a"
],
"lago_payable_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"payable_type": "Invoice",
"amount_cents": 1099,
"amount_currency": "USD",
"status": "Completed",
"payment_status": "succeeded",
"type": "manual",
"reference": "ref1",
"payment_provider_code": "stripe_prod",
"payment_provider_type": "stripe",
"external_payment_id": "<string>",
"provider_payment_id": "pi_5eb0285741bc6ba",
"provider_customer_id": "cus_5eb0285bcf941bc6ba",
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": {
"url": "https://hooks.stripe.com/3d_secure_2/hosted?merchant=acct_AAA&payment_intent=pi_BBB&payment_intent_client_secret=pi_BBB&publishable_key=pk_test_CCC",
"return_url": "https://app.example.com"
}
},
"created_at": "2025-01-21T00:10:29Z"
}
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number.
1
Number of records per page.
20
Filter payment receipts by invoice id.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
PaymentReceipts
Show child attributes
Unique identifier of the payment receipt, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The date and time when the payment receipt was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the payment receipt was initially created.
"2022-04-29T08:59:51Z"
The unique number assigned to the payment receipt.
"LAG-1234-001-002"
Show child attributes
The unique identifier of the payment, created by Lago.
"4cf085a7-c196-4f07-a543-97c50ec6e8b2"
Unique identifier of the customer, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The customer external unique identifier (provided by your own application)
"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
List of invoice IDs associated with the payment.
The unique identifier of the paid resource, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The type of the paid resource, associated with the lago_payable_id.
Invoice, PaymentRequest "Invoice"
The amount of the payment in cents.
1099
The currency of the payment amount.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "USD"
The status of the payment within the payment provider. This can be very different from a payment provider to another.
"Completed"
The normalized payment status by Lago.
succeeded, failed, pending, processing "succeeded"
The type of payment.
manual, provider "manual"
Reference for the payment.
"ref1"
Code of the payment provider
"stripe_prod"
The type of payment provider
adyen, cashfree, gocardless, stripe, flutterwave, moneyhash "stripe"
DEPRECATED: use provider_payment_id
Unique identifier of the payment within the payment provider (if applicable).
"pi_5eb0285741bc6ba"
Unique identifier of the customer within the payment provider
"cus_5eb0285bcf941bc6ba"
The next action to be taken by the customer to complete the payment. Should usually be empty, except when receiving the payment.requires_action webhook.
{
"type": "redirect_to_url",
"redirect_to_url": {
"url": "https://hooks.stripe.com/3d_secure_2/hosted?merchant=acct_AAA&payment_intent=pi_BBB&payment_intent_client_secret=pi_BBB&publishable_key=pk_test_CCC",
"return_url": "https://app.example.com"
}
}Timestamp when the payment was created in Lago's database, not on the payment provider.
"2025-01-21T00:10:29Z"
Show child attributes