curl --request GET \
--url https://alphainsider.com/api/getUpcomingInvoice \
--header 'Authorization: <authorization>'{
"success": true,
"response": {
"invoice_id": null,
"user_id": "user_2",
"description": "October - November 2024 Invoices",
"status": "pending",
"updated_at": null,
"created_at": null,
"amount": "10000",
"amount_refunded": "0",
"source": {
"source_id": "7mb8VEEjb4zCzbU4U-l1Z",
"user_id": "user_2",
"type": "card",
"direction": "in",
"primary": true,
"description": "Card (VISA ....4242)",
"name": "John Doe",
"city": "New York",
"country": "US",
"line_one": "123 Sesame St",
"line_two": "",
"district": "NY",
"postal": "10001",
"status": "active",
"updated_at": "2024-10-22T14:18:35.209Z",
"created_at": "2024-06-10T14:57:33.313Z"
}
}
}Get upcoming invoice.
curl --request GET \
--url https://alphainsider.com/api/getUpcomingInvoice \
--header 'Authorization: <authorization>'{
"success": true,
"response": {
"invoice_id": null,
"user_id": "user_2",
"description": "October - November 2024 Invoices",
"status": "pending",
"updated_at": null,
"created_at": null,
"amount": "10000",
"amount_refunded": "0",
"source": {
"source_id": "7mb8VEEjb4zCzbU4U-l1Z",
"user_id": "user_2",
"type": "card",
"direction": "in",
"primary": true,
"description": "Card (VISA ....4242)",
"name": "John Doe",
"city": "New York",
"country": "US",
"line_one": "123 Sesame St",
"line_two": "",
"district": "NY",
"postal": "10001",
"status": "active",
"updated_at": "2024-10-22T14:18:35.209Z",
"created_at": "2024-06-10T14:57:33.313Z"
}
}
}User API token.
Request was successful.