Get an invoice
Path parameters
idstringRequired
The id of the invoice.
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Responses
200
The request was successful.
application/json
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
429
The user has exceeded the rate limit.
application/json
get
GET /api/v1/invoices/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"user": {
"id": "Plamxinzg18snza",
"code": "EXAMPLE",
"avatar": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50",
"packageId": "1Plamxinzg18snza",
"packageCode": "PACKAGE",
"emailAddress": "[email protected]",
"nickName": "example",
"roles": [
"admin",
"support"
]
},
"payment": {
"code": null,
"name": null,
"amountGross": 100,
"amountFee": 10,
"amountNet": 90,
"commission": 10,
"currencyCode": "USD",
"description": "Description",
"invoiceNo": "INV-001",
"paymentType": "PaymentType",
"notes": "Notes",
"status": "Completed",
"id": "sApKpllz4sAplsmzha"
},
"packageCode": "PACKAGE_ID",
"userAddressId": "USER_ADDRESS_ID",
"subscriptionTypeId": "SUBSCRIPTION_TYPE_ID",
"type": "Provisional",
"code": "INV-20240304",
"name": "Monthly Subscription",
"description": "Invoice for the monthly subscription package.",
"notes": "Payment due within 7 days.",
"tags": "subscription, monthly",
"reminderedCount": 1,
"deliveryInstructions": "Send via email",
"confirmedDeliveryDate": "2025-06-25T06:56:00.5295451Z",
"invoiceDate": "2025-06-23T06:56:00.5295454Z",
"overdueDate": "2025-07-23T06:56:00.5295455Z",
"status": "Paid",
"testMode": false
},
"errors": []
}
Last updated
Was this helpful?