Payment checks
When your customer disputes a payment — "I paid and was not credited", "my withdrawal did not arrive" — your support asks Nice Pay to check that one payment. A check is a thread for that payment: you write, Nice Pay answers after checking with the desk or the gateway, and you can reply until it is closed. Nice Pay never contacts your customer.
Raise a check
POST /v1/payins/{id}/checksReference
- Scope:
payins:write - Success: HTTP 201
POST /v1/payouts/{id}/checksReference
- Scope:
payouts:write - Success: HTTP 201
| Field | Notes |
|---|---|
note | what to check, in your words — what your customer says happened (3–1,000 characters) |
reference | optional: the reference your customer gave — a UTR, a bank reference or a transaction hash |
proof_upload_ids | optional: up to 12 images sent first with POST/v1/uploads |
- A pay-in can be checked in any state. One check is open per pay-in at a time, and one per reference anywhere: a second answers
409 invalid_state— add to the open one. - A payout can be checked once it was sent (
sentorsucceeded). A payout still on its way ends by itself (payout.succeededorpayout.failed). One live check per payout. - The answer is
201with the check. The scope ispayins:writefor a pay-in andpayouts:writefor a payout.
Send an image first
POST/v1/uploads?purpose=check_proof (scope payins:write). Send the image itself as the body — Content-Type: image/png, image/jpeg or image/webp, up to 5 MB The request is signed like any other: the signature covers the image's bytes. We scan it for viruses, decode it and encode it again from its pixels (nothing hidden in the file survives), and answer 201 with an upl_… id. Use the id in a check or a message within 15 minutes, once. A refused image is 400 invalid_request with the reason; 503 means it cannot be scanned right now — send it again later.
Read and answer the thread
GET /v1/checks/{id}Reference
- Scope:
payins:read - Success: HTTP 200
GET /v1/checksReference
- Scope:
payins:read - Success: HTTP 200
POST /v1/checks/{id}/messagesReference
- Scope:
payins:write - Success: HTTP 201
status:open(Nice Pay is checking),answered(the desk or gateway answered:answerisconfirmedordenied),closed(ended;close_reasonsays why,creditedis true when a pay-in was found and credited).waiting_for:nice_payafter you write,merchantafter Nice Pay answers;nullonce closed.messages: your messages (author: "merchant") and Nice Pay's ("nice_pay"), oldest first. Each image has aurlvalid for five minutes — fetch the check again for fresh links.GET/v1/checkslists your checks, newest first; filter withpayin=pi_…,payout=po_…orstatus=open|closed.- A closed check takes no more messages; raise a new one on the same payment if you need to.
Events
check.answered, check.message and check.closed carry the check (without image links). None of them moves money. A pay-in found by a check ends as payin.succeeded and a payout taken back as payout.reversed, the same events as always: credit or refund only on those.
Mistakes that lose money
- Crediting your customer when a check is answered
confirmed. Wait forpayin.succeededon that pay-in: it comes once, and only then is the money yours. - Refunding on
check.closed. A payout ends unpaid only bypayout.failedorpayout.reversed.