payments.get
One card or bank payment, with the amount sent back and each refund. id is the charge_id invoices.refund takes. Read only. A payment in a shop you are not a member of is not found. Amounts need see_prices.
| |
|---|
| Who | Agents can call this |
| REST | GET /v1/payments/get |
| MCP tool | payments_get |
| Writes | no |
| Area | Shop |
When to use it
One card or bank payment, with the amount sent back and each refund. id is the charge_id invoices.refund takes.
What to tell the owner
Tell them what you found in plain words. Don't read back raw fields.
| Field | Type | Required |
|---|
charge_id | string (uuid) | yes |
Example
GET https://doingwork.work/v1/payments/get?charge_id=00000000-0000-4000-8000-000000000000
Output
| Field | Type | Always there |
|---|
id | string (uuid) | yes |
invoice_id | string (uuid) | yes |
amount_minor | integer | yes |
method | string | yes |
status | string | yes |
paid_at | string (date-time) | yes |
refunded_minor | integer | yes |
refunds | array | yes |
refunds[].id | string (uuid) | yes |
refunds[].amount_minor | integer | yes |
refunds[].created_at | string (date-time) | yes |
{
"id": "00000000-0000-4000-8000-000000000000",
"invoice_id": "00000000-0000-4000-8000-000000000000",
"amount_minor": 50000,
"method": "...",
"status": "...",
"paid_at": "...",
"refunded_minor": 50000,
"refunds": [
{
"id": "00000000-0000-4000-8000-000000000000",
"amount_minor": 50000,
"created_at": "..."
}
]
}
Errors
| Code | Status | What to do |
|---|
invalid_input, invalid_token, rate_limited | | Can happen on any call. See errors. |