Invoice
GET
/invoices/{id}/paymentsList Payments
Auto-added to mirror backend route GET /invoices/:id/payments. Headers cloned from a sibling; body/params are placeholders.
Request
Example
curl -X GET 'https://api.paycose.com/api/v1/app1/platform/wallet/invoices/{{id}}/payments' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}'Headers
| Name | Value | Description |
|---|---|---|
| X-Session-Token | {{session_token}} | |
| X-Country | {{country}} | |
| X-Test-Mode | {{x_test_mode}} | true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request. |
Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"id": "<string>",
"object": "<string>",
"livemode": false,
"created_at": "<RFC3339 timestamp>",
"invoice": "<string>",
"status": "<string>",
"amount_requested": 0,
"amount_paid": 0,
"currency": "<string>",
"is_default": false,
"payment": {
"type": "<string>",
"payment_intent": "<string>",
"charge": "<string>"
}
}500500 Internal Server Error
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}