220209-Jibit-Transferor REST API Documentation (V2.1)
220209-Jibit-Transferor REST API Documentation (V2.1)
Version 2.1
9th of February 2022
Introduction Page 4
Versioning Information
This document explains the API details of the Jibit's transferor project that provides
money transfer services based on standard mechanisms like ACH, Normal and
RTGS.
Base URL
This service's base URL is https://napi.jibit.ir/trf. Please contact with our customer
support for service activation. For using this service you should provide one or
more IP addresses, and we will restrict your access to services only by addresses
you provided.
In any unsuccessful endpoint call (4xx and 5xx http status codes) the response is a
JSON content with the form of
"fingerprint": "825767e0-0522-11ec-bd3e-13d2e7dad3fe",
"errors": [
"code": "handler.not_found",
The fingerprint helps us to track the exact problem internally. The errors array
contains a list of errors occurred;
including a `code` that indicates machine and human-readable error code, and
`message` that is a human-readable reason for tracking purposes.
In order to authenticate with service and get access token you should use this
endpoint.
Request Headers
Parameter Type Description
Content-Type application/json
Request Body
Field Type Description
the API key received from dashboard, or was sent using
apiKey string
email
Response Body
Field Type Description
The returned access token on previous step is only valid for 24 hours, you should
provide an internal mechanism to refresh access token periodically using some
scheduler for example.
POST /v2/tokens/refresh
Request Headers
Parameter Type Description
Content-Type application/json
Request Body
Field Type Description
refreshToken string valid refresh token, refresh tokens are valid for 48 hours
Response Body
Field Type Description
Using this API you can see your wallets, including the wallet that is used for
transferring money from.
GET /v2/balances
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Response Body
Field Type Description
balance long main wallet balance
Balance
Field Type Description
In order to transfer money from your settleable wallet to any valid IBAN, you can
use this endpoint.
Submit batch request can be used to transfer a batch (Including at least one item)
and in two different modes:
• BATCH mode: The requested batch should be accepted in whole, we mean all
or nothing.
• TRANSFER mode: The requested batch should be processed in one by one
manner; we try to select from start of batch and submit transfer items while
you have enough settleable balance. All rejected transfers will return back to
you in API response.
POST /v2/transfers
Request Headers
Parameter Type Description
Content-Type application/json
Bearer
Authorization
accessToken
Request Body
Field Type Description
batch identifier, it is recommended to use unique batch ids
batchID string
for each batch
Transfer
Field Type Description
transferID string unique transfer identifier
Response Body
Field Type Description
number of items of batch submitted, in submission mode of
submittedCount int
TRANSFER it may be less than batch size
Using this API you are able to inquiry a batch or any item in batch to check transfer
status.
GET /v2/transfers?batchID=exampleBatchID
GET /v2/transfers?transferID=exampleTransferID
GET /v2/transfers?batchID=exampleBatchID&transferID=exampleTransferID
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Response Body
Field Type Description
batchID string
transferMode string
destination string
destinationFirstName string
destinationLastName string
amount long
currency string
description string
metadata string
notifyURL string
cancellable boolean
paymentID string
Using this API you are able to cancel a batch or any item in batch. This API only
works for cancellable transfer items.
DELETE /v2/transfers?batchID=exampleBatchID
DELETE /v2/transfers?transferID=exampleTransferID
DELETE /v2/transfers?batchID=exampleBatchID&transferID=exampleTransferID
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Using this API you are able to retry a failed batch or any failed item in batch. This
API only works for previously failed transfer items.
PATCH /v2/transfers?batchID=exampleBatchID
PATCH /v2/transfers?transferID=exampleTransferID
PATCH /v2/transfers?batchID=exampleBatchID&transferID=exampleTransferID
Request Headers
Parameter Type Description
Content-Type application/json
Bearer
Authorization
accessToken
Request Body
Field Type Description
state string set this to RETRY
Using this API you are able to filter all submitted transfers by providing some
information.
GET /v2/transfers/filter
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Query Parameters
Field Type Description
state string optional; if not specified we will return all transfers
size string must be greater than 0 and less than or equal to 250
Using this API you are able to enable or disable a publicly available receipt link for a
batch/transfer.
This public link will be available for one hour by default, and automatically will be
disabled after this period.
This one hour can be increased or decreased based on your request (Contact with
Jibit customer support).
POST /v2/receipts
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Request Body
Field Type Description
batchID string optional batch identifier
Response Body
Field Type Description
publicLink string publicly generated link
Using this API you are able to fetch the list of supported normal transfers banks.
GET /v2/banks/normal
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Response Body
Field Type Description
string[] an array of swift codes of supported banks
Using this API you are able to fetch the list of currently active normal transfers
banks.
GET /v2/banks/status
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Response Body
Field Type Description
string[] an array of swift codes of currently active banks
POST /v2/batch/generate
Request Headers
Parameter Type Description
Bearer
Authorization
accessToken
Request Body
Field Type Description
submissionMode string optional; BATCH or TRANSFER; BATCH is default value
www.middleeastban
KHAVARMIANEH KHMIIR Middle East Bank
k.ir
UNKNOWN - -