- Create Counterparty
This endpoint is used to create a new counterparty for a customer. You can create different types of counterparties, including ach, on-us, wire, and international_wire, by providing the relevant details in the request body.
Note: The account_number field for creating an on-us counterparty represents the Jiko network address of the pocket.
Note: The optional display_name field lets you assign a custom, human-friendly name to a counterparty — useful for distinguishing multiple counterparties that belong to the same legal entity. When set, it is returned on the counterparty and can be shown in place of the counterparty's default name.
Note: The optional id field lets you choose the counterparty's UUID instead of having Jiko generate one. Supplying it means you know the counterparty's ID before the call completes, which is useful when the create is subject to an approval workflow — the Location header of the 202 response points at that same ID, so you can correlate the approval with the counterparty it produces. It also makes a retry safe: re-sending an id that already exists is rejected with 409 (CounterpartyAlreadyExistsError) rather than creating a duplicate. Omit the field and Jiko assigns the ID.
Note: For wire and international_wire counterparties, the counterparty name, address, identifier, routing_number and wire_instructions may only contain printable ASCII characters (letters, digits, space and standard punctuation), the character set the Fedwire Funds Service accepts. Any other character, such as an accented letter, a line break or a tab, is rejected with a 422 that lists each offending field in fields, before any approval request is created. display_name is not restricted.
The request body must conform to one of the request schemas. On success, it returns the newly created counterparty object.
[DEPRECATED] This field is ignored. The identifier code is always set to WireCounterpartyIdentifierCode_DDA_D (Demand Deposit Account).
Any additional wire instructions required for the wire to be processed correctly.
Relationship of the counterparty to the account holder. FIRST_PARTY means the counterparty is owned by the account holder, THIRD_PARTY means it is owned by a different entity.
An optional custom display name for the counterparty, useful for distinguishing multiple counterparties that share the same legal name.
An optional client-chosen UUID to assign as the counterparty's id. Supply one to know the counterparty's ID before it is created — useful for correlating a create that goes through an approval flow, or for making a retry safe. Omit it and Jiko generates the ID. Reusing an ID that already exists is rejected with 409.
- Sandbox serverhttps://customer-api.sandbox-api.jikoservices.com/api/v2/counterparties/
- Production serverhttps://api.business.jiko.io/api/v2/counterparties/
curl -i -X POST \
https://customer-api.sandbox-api.jikoservices.com/api/v2/counterparties/ \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"routing_number": "987654321",
"identifier": "1234567890",
"address": {
"street_address": "2000 Allston Way",
"street_address2": "",
"city": "Berkeley",
"postal_code": "94701",
"state": "CA",
"country": "US"
},
"wire_instructions": "Example wire instructions",
"counterparty_name": {
"first_name": "External",
"last_name": "Accountholder",
"type": "individual"
},
"verification": {
"type": "incoming_wire",
"wire_id": "e5449f18-2383-4772-8fec-9d90a8cb2542"
},
"type": "wire"
}'