Pay a person abroad by SWIFT
Send a USD SWIFT payout to an individual, and answer a document pause by uploading a document and resuming the transfer.
Use this recipe to send a USD SWIFT payout to an individual. If the bank asks for a supporting document, the transfer pauses, and you upload the document and resume the transfer.
Who it is for. This recipe is for a US relocation company that pays an individual contractor's USD account in Abuja, where the bank asks for supporting documents.
Status. Available to Nigeria (NG) from bank-held USD accounts. Not yet available elsewhere.
Money example
transfer_status paused. Nothing is paid out yet.Before you start
account_owner_type to individual.Find out what is required
The paused response tells you what to send. It carries requirements[].type supporting_document and expires_at. The transfer.requires_information webhook carries the same details.
A pause can also start later, shortly before the payout, if the bank's requirement changed. In that case you get only the webhook. Paused transfers explains every field of a pause.
Steps
1. Save the payee
Send the same request as for a supplier, but for a person and without an intermediary bank:
The response is HTTP 202 with status pending and the payee id, here a8098c1a-f86e-41c6-8b1e-4f2c3d7e9b10. Wait for the external_account.active webhook.
2. Send the payout
Store reference. It is the id you use to resume the transfer. GET /v1/transactions/0e1f2a3b-4c5d-4e6f-8a7b-9c0d1e2f3a4b shows status paused. Do not tell your user the payment has gone.
3. Upload the document
Upload the document for the customer who sends the transfer. The file can be at most 700 KB. In sandbox, keep it under 500 KB.
The response carries the document id, here 9f4c2e1a-7b3d-4c5e-8f6a-1b2c3d4e5f60.
4. Resume the transfer
A document pause accepts only supporting_document_ids. Use a new Idempotency-Key on every attempt.
resumed: true means the transfer goes ahead. Follow it as usual. status names an internal step, so do not build logic on it.
What can go wrong
| Response | Why | Fix |
|---|---|---|
400 this transfer is paused for a supporting document: resume it with supporting_document_ids only, without remitter_verification or additional_information | The resume body has extra fields | Send only supporting_document_ids |
400 invalid request body: json: unknown field "documents" | The resume endpoint rejects unknown fields, unlike the transfer endpoint | Use the exact field name |
422 ERROR_CODE_SUPPORTING_DOCUMENT_REQUIRED | The resume sent an empty list | Upload the document, then resume with its id |
400 supporting_document_ids: each id must be a document uploaded for this customer and not used by another transfer | The document belongs to another customer, is already used, or has expired | Upload a new one for the sending customer |
400 this transfer is not paused | The transfer is already resumed, failed or completed | Read the transaction |
400 content: the file is 812 KB (831488 bytes); the largest accepted is 700 KB (716800 bytes). … | The file is over 700 KB | Compress it to 700 KB or less |
413 the uploaded file is too large — the maximum is 5MB | In sandbox, a request of about 600 KB or more, whatever the message says. In live, a file over about 5 MB | Compress it to under 500 KB in sandbox, or to 700 KB or less in live |
410 ERROR_CODE_TRANSFER_PAUSE_EXPIRED | The pause passed expires_at. The transfer failed, and Gravv returned the fee | Send a new transfer with the document attached |
410 ERROR_CODE_TRANSFER_PAUSE_CANCELLED | Gravv cancelled the pause | Send a new transfer |
404 transfer workflow not found | The id is the transaction_id, or another business's transfer | Resume with data.reference |
409 the paused transfer changed while this request ran; please retry | Two resume requests ran at the same time | Retry once with a new key |
400 insufficient balance on resume | The balance was spent while the transfer was paused | Fund the account, then resume with a new key |
| The same response as last time | You reused the Idempotency-Key. Gravv replays the first response for 24 hours | Use a new key for each attempt |
Webhooks you will receive
transfer.requires_information, with event_data.status paused, reason supporting_document_required and the requirements in limit_details.requirements.transfer.resumed, then several transfer.status.pending events, then transfer.status.completed.transfer.status.failed with reason supporting_document_expired (or supporting_document_cancelled).Testing in sandbox
You can test the upload and the resume checks (wrong ids, extra fields) in sandbox. A real document pause depends on the bank's setting for the account. You cannot force one with a test value.