Skip to main content

Overview

Wire drawdowns, also known as reverse wires, are a type of wire payment where funds are pulled from an account to a counterparty's account.

This is the opposite of a standard wire payment, where funds are pushed from one account to the counterparty's account.

Currently, we only support receiving wire drawdown requests (incoming drawdown), not originating them. This means that you can receive a drawdown request from another party's account, and choose to approve it and send the funds, but you cannot initiate a request to pull funds from another party's account.

Get Wire Drawdown by Id

Get a wire drawdown by id.

VerbGET
Urlhttps://api.s.unit.sh/wire-drawdowns/{id}
Required Scopewire-drawdowns
Timeout (Seconds)5

Query Parameters

NameTypeDefaultDescription
includestring(empty)Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources

Response

Response is a JSON:API document.

200 OK

FieldTypeDescription
dataWireDrawdownWire drawdown resource.
includedArray of DepositAccount or CustomerArray of resources requested by the include query parameter.
curl -X GET 'https://api.s.unit.sh/wire-drawdowns/100' \
-H "Authorization: Bearer ${TOKEN}"

List Wire Drawdowns

List wire drawdowns resources. Filtering and paging can be applied.

VerbGET
Urlhttps://api.s.unit.sh/wire-drawdowns
Required Scopewire-drawdowns
Timeout (Seconds)5

Query Parameters

NameTypeDefaultDescription
page[limit]integer100Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
page[offset]integer0Optional. Number of resources to skip. See Pagination.
filter[accountId]string(empty)Optional. Filters the results by the specified account id.
filter[customerId]string(empty)Optional. Filters the results by the specified customer id.
includestring(empty)Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
curl -X GET 'https://api.s.unit.sh/wire-drawdowns?page[limit]=20&page[offset]=10&filter[accountId]=5' \
-H "Authorization: Bearer ${TOKEN}"

Response

Response is a JSON:API document.

200 OK

FieldTypeDescription
dataArray of WireDrawdownArray of wire drawdown resources.
includedArray of DepositAccount or CustomerArray of resources requested by the include query parameter.
metaJSON object that contains pagination dataPagination data includes offset, limit and total (estimated total items).
Example Response:
{
"data": [
{
"type": "wireDrawdown",
"id": "10000",
"attributes": {
"createdAt": "2024-10-29T21:35:58.898Z",
"amount": 97,
"direction": "Incoming",
"counterparty": {
"name": "LAB LLC",
"routingNumber": "021000021",
"accountNumber": "1000000000"
},
"imad": "20241029MMAAAAAA033351",
"omad": "20241029MMBBBBBB00041910291735FT03",
"description": "Hello World",
"senderReference": "54465316546"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10000"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
}
}
}
],
"meta": {
"pagination": {
"total": 1,
"limit": 100,
"offset": 0
}
}
}

Send Drawdown Payment

Send a wire payment in response to a drawdown request. The API will create a Wire Payment as a response to the drawdown request. You can observe the drawdownPayment relationship to retrieve the Payment Identifier.

VerbPOST
Urlhttps://api.s.unit.sh/wire-drawdowns/{id}/send
Required Scopewire-drawdowns-write
Timeout (Seconds)5

Attributes

NameTypeDescription
idempotencyKeystringSee Idempotency.
tagsobjectOptional, See Tags. Tags for the Wire Payment.
curl -X POST 'https://api.s.unit.sh/wire-drawdowns/1/send'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'
--data-raw '{
"data": {
"type": "sendWireDrawdown",
"attributes": {
"idempotencyKey": "6a1a33be-4e12-4603-9ed0-820922389fb9"
}
}
}'

Response

Response is a JSON:API document.

200 OK

FieldTypeDescription
dataWireDrawdownWire drawdown resource.
Example Response:
{
"data": {
"type": "wireDrawdown",
"id": "10000",
"attributes": {
"createdAt": "2024-10-29T21:35:58.898Z",
"amount": 97,
"direction": "Incoming",
"counterparty": {
"name": "LAB LLC",
"routingNumber": "021000021",
"accountNumber": "1000000000"
},
"imad": "20241029MMAAAAAA033351",
"omad": "20241029MMBBBBBB00041910291735FT03",
"description": "Hello World",
"senderReference": "54465316546"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10000"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"drawdownPayment": {
"data": {
"type": "payment",
"id": "10000"
}
}
}
}
}