NAV Navbar
cURL

Introduction

The API is written according to the JSON API Specification. We highly recommend using a JSON API Client for consuming this API.

Environment Endpoint
Sandbox https://agent-network-sandbox.bongloy.com
Production https://agent-network.bongloy.com

Authentication

This API uses JSON Web Token (JWT) Bearer authentication. You must generate a JSON Web Token and include it in the Authorization header for all requests.

Request Signing

All requests require you to sign your JWT according to the RS256 (RSA using SHA-256 hash) algorithm. In production you must generate your own RSA public/private key pair and provide us with your public key. While using the sandbox you can use the sample private key provided with the code samples.

The payload of your JWT must include:

{
  "api_token": "[your api token]",
  "timestamp": "1581510124"
}

Generating a RSA public/private key pair

$ openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096
$ openssl rsa -pubout -in private_key.pem -out public_key.pub

Code samples

Code samples for consuming this API can be found here https://gist.github.com/samnang/ad45122a7cdf50d5eebaba355f1126d4.

Organizations

List all Organizations

Request

curl -g "https://agent-network-sandbox.bongloy.com/v1/organizations" -X GET \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiI2bHB3RDVwTkFBM3ptbnlJbVhpWE1KNWNTWkVFdDFFbzJPalFlRXVXUERNIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.BJiwBOxUBPM1idVKudsutu55h8hNCI4uAFg72vVGCnZAJUobxyhKO3isJzs7QGCu0k_wyR58JPrBTAzlB9W8iTkwPs--kDQR5U4pBQvqTm0haGoLwHSyBlddlSgKdL4f4_Owjy3gCowSGL4dy5vcKOrCUc5HAKNA18sAoL5Pq7vUkRhOjRpPDDYSvrOtq3k2gTIMi6ufrDBhZiVJY3rz2upXX4Y2nD0YBchtMOqXagmelPHORHKv9a0rVxxCnZmwLB0u8e5Wf1vaheNRIEdfQtMmzJjAkGE00Xp25ucu06Awr1F4Bg8INRO5LUlbogPBQy2lNKMftSNZ6COy1n_Xz8H4FwHM8uRIt-c4dbQNQ2kNAQcemPB8Rk9qJfLt4ivZNeJj13ZlEWKYwq9GLUOs5uj4T2Cq7yEHDALSTK0hc4GnkTYp5pRYXrtVKkqdwtGZsqdfWDTn1du3eFxOMxAE8u5GDe46sszyvtByjo_9zoxclJOPd2ieWXvLm5j1_OqAYHRdCUVzx3uJWIFqO9Tda7uLOEExSVgteoid3tLE2hZi7iMwoN9UDQxyLggsbucgsMVafEYx6kMb1ShfEI0AYh2de1hNO-ilL_JSUXdNJHHtj48gEKOeuX_moa70MQow5eQEUO6uLD1ybAw4sdWpcB0mHPngUBnMm3jK2pLR8K4"

Endpoint

GET /v1/organizations

GET /v1/organizations

Parameters

None known.

Response


200 OK
{
  "data": [
    {
      "id": "bongloy_real_bin_testing",
      "type": "organization",
      "attributes": {
        "name": "Bongloy Real BIN Testing",
        "code": "003"
      }
    },
    {
      "id": "bongloy_testing",
      "type": "organization",
      "attributes": {
        "name": "Bongloy Testing",
        "code": "002"
      }
    },
    {
      "id": "uyfc",
      "type": "organization",
      "attributes": {
        "name": "UYFC",
        "code": "001"
      }
    }
  ],
  "links": {
    "prev": "http://example.org/v1/organizations?page%5Bbefore%5D=bongloy_real_bin_testing",
    "next": null
  }
}

Transfers

Create a Transfer

Request

curl "https://agent-network-sandbox.bongloy.com/v1/transfers" -d '{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 10000,
      "currency": "USD",
      "destination_account_number": "002002965",
      "metadata": {
        "foobar": "foobar"
      }
    }
  }
}' -X POST \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJ5b2RfVDd2d3l3aWlreG5Od2NJazFNQUtfRzBoSkxHQjdQVFBKZXpBRTBBIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.FdjFW8giMJcCHHG_APc28UwJzkdUm8OILxg5GACL50XIdzPks3zcWuCFyLprsEEnyOraCpeSMjX-sNO6U1qP8Be97fW3ynEW2BIiubBeaNS1SRRWTKVBNQo2bms7gU0LY-DR_C80R5hD6j6kD3gDgNu1vsuQU_0ks_wXR1Q1Mf4QCrAqlglvGXMBQ42kRsDVGzJHYO18Ai0K2bnH4KEa5eVdbzFxOQ3Yd_2y1kRRnmO_6U-jUYzcNyLlUxx3FNejbbfsF7meU9rbCD4LtK22IyloOJmhNL_us_zwT1Aj1aRtG0UUA4wQnpOeZWgsafiGcTYyEe8PGPqWwJYYtzWj4R38PNGIfv2eXlFXAl09gzB0Z1N0fp7n81xYS-I4Q6E0kqUdJGCbvT6-ar8u8wxO6xZLaRH7Bjk2i2MWcBH3ZCuVxJf4dkmlCKhAF1poRDMXy5ZgKaxAvNvRUN4UjHmCLtbIDNA8h3o6y0K-Fa_l5kyCv9F_xxqElp1eg2OfUOg2hfjlmgaFkOlDikHNJjm2D0Zhl_dOCVEezT6bE1pewRNzvSoT3kJfoz75OdSDMO2ttZuykNWFhGxMWvFcC6DpqaoXQ-IeXvwa9stewMwoHqpCd-KYrM7UhFp-3RjXV1JHESzdbe4ZVS3Qj2I9TcmNHjV3c_0IMKbiyvusZY0RK6U"

Endpoint

POST /v1/transfers

POST /v1/transfers

Parameters

{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 10000,
      "currency": "USD",
      "destination_account_number": "002002965",
      "metadata": {
        "foobar": "foobar"
      }
    }
  }
}
Name Description
data[attributes][amount] required A positive integer representing how much to transfer (e.g., 10000 cents to transfer $100.00)
data[attributes][currency] required The currency of the account. Only USD is supported at this time
data[attributes][destination_account_number] required The destination Bongloy account number
data[attributes][metadata] Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

Response


201 Created
{
  "data": {
    "id": "37207f9b-5907-4a87-a1f0-792e1fdd6598",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "002002965",
      "destination_account_holder_name": "Serey Dara",
      "currency": "USD",
      "status": "pending_confirmation",
      "metadata": {
        "foobar": "foobar"
      },
      "error_code": null,
      "error_message": null,
      "amount": 10000
    }
  }
}

Create a Transfer (invalid destination)

Request

curl "https://agent-network-sandbox.bongloy.com/v1/transfers" -d '{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 10000,
      "currency": "USD",
      "destination_account_number": "invalid-account"
    }
  }
}' -X POST \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJxNFl0Q2RpNWdRX0Y1SVJ6M0l1VHBfVkRTa3JZekpFcGwwSjlwMGUtdUVJIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.V3tkNddPmBzEJEGhbm1tzEwlTOKtVw3NGT7vHl7TsY3hDobpaIvrNrjFk7tR3Iz19d_EbTQTT9i3Zwzt2D2NoDkDC4wkx6BLH_391fBM9hZ5464UekZHvSXYsu01Vk-GLyscMGdpb3TLoVh5IJoEMn8QmuBl94aPJz8RShm5-BPfx--wo6D-n4iucVUHwk7InHgMwLpSZHbWD2tApkGhsefsVN8jQGioEhtQmuTOki2D8xQO0m1idBX_HH6HkXuyDVp9sxCElk1S7om7Xjf_bDE5Nqs8CO4Vt5xeswrVIZHy5-eiWlcohHfPylZssQxzn-W78M2oAlrrlHTxHwNWNC248Z7vDgIT6hF3ZHwSHngMUIxPEj75dRP_PDAMunrEVT0r9QdWmtW9kHyG9PW7AAbl5jWJiJJh5WDpNVPC6BYUwoQUQH9BjYutiGWwtTD93zaJtFiF5BZvpBkTF5SAdiLgjoXyCIhw10FAHGPwY34cHP1ywR-89dROMR5CJgx3eBgEdK3Irj8r9K1DDWxG2yCYUlAqoahHKlP89kYtC0iT3VBCuv6qUDXLG6wRXuBl7S-xpCeMOy9scyCmNGeoWmgNfCtkRLszeFNw0sPS15I0p1lty4QWRVEp7N3m5pXTsSIMYyjZV-b9uTM58t5kjOswa5SqtPYURdvJTneqLoI"

Endpoint

POST /v1/transfers

POST /v1/transfers

Parameters

{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 10000,
      "currency": "USD",
      "destination_account_number": "invalid-account"
    }
  }
}
Name Description
data[attributes][amount] required A positive integer representing how much to transfer (e.g., 10000 cents to transfer $100.00)
data[attributes][currency] required The currency of the account. Only USD is supported at this time
data[attributes][destination_account_number] required The destination Bongloy account number
data[attributes][metadata] Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

Response


402 Payment Required
{
  "data": {
    "id": "6b6255d5-58be-4ecf-b6a1-e0e232fb1bcf",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "invalid-account",
      "destination_account_holder_name": null,
      "currency": "USD",
      "status": "failed",
      "metadata": {
      },
      "error_code": "destination_account_not_found",
      "error_message": "Destination account not found",
      "amount": 10000
    }
  }
}

Create a Transfer (limit exceeded)

Request

curl "https://agent-network-sandbox.bongloy.com/v1/transfers" -d '{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 250001,
      "currency": "USD",
      "destination_account_number": "002002965"
    }
  }
}' -X POST \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiI0Q0hWejhQVm5wRG1DWTVuRmJHbERnT2JwdW5PVkNnMEs0d1RIdlhqQ3lRIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.Td1bChwt6MQSuWjYGHHfr8IFlYfO_YT6FyRjG_YyYpC0jse2SViorEjNNuBps6ia3GHoBWueQEsqTcqlRiR9Y2WDTKE2du47retTZoXnyZ9KdKM-HP835TMhN2fD6KwCvtGF3IkAlJcLr75E0AcPOF4fLgYJpY6Jq2UegbYXrT6VA7ZfvPspBbBjoyviISotrkWJYeAeAaXobgBOVZtO_HpxzUJkgQFwSHoVHisjBix9o9JdzCBZaL9AOpqZjWzX4dPRm7ckU2jSqCUx8ao-9LO-QSJ0AiD2CYSST85L63pnW_fBwtNcd7Ajn4zIzDubODCO0N91piuFis4poxTC6AqEPiMGi5GZ1JDMgHuPv-CWiqU-4LxeZvYOB8Ce8V2yR4hvPR8xUd8xP2AJKX6VjjqNR-hC9CUBy-4mAShu9iE-PmUJ-10rr8LWaD2RDd_F3WoaZDPXwnf3HluoTnQHJqvWTEAD_WQhBt2yQgkMrl0nDlURDPuOnxPkfALmIqnAEhaPNpkcqjT7FDR5wWUlxcJVigmvypUjel6ESWPRcXsMIydCumPeMAAXI5X0Axk7iFlxngYw92OPEFSHRFOqxElezqYyJCA3TopeHTN_rTMGzKiu7OIYk8EXopnn3eARjR1CViJ6pVr_DYUJCXUECmUPV3jIAmjFOPh568Ux10M"

Endpoint

POST /v1/transfers

POST /v1/transfers

Parameters

{
  "data": {
    "type": "transfer",
    "attributes": {
      "amount": 250001,
      "currency": "USD",
      "destination_account_number": "002002965"
    }
  }
}
Name Description
data[attributes][amount] required A positive integer representing how much to transfer (e.g., 10000 cents to transfer $100.00)
data[attributes][currency] required The currency of the account. Only USD is supported at this time
data[attributes][destination_account_number] required The destination Bongloy account number
data[attributes][metadata] Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

Response


402 Payment Required
{
  "data": {
    "id": "06673be1-40b5-40c5-81d0-c86f44b40b8a",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "002002965",
      "destination_account_holder_name": "Serey Dara",
      "currency": "USD",
      "status": "failed",
      "metadata": {
      },
      "error_code": "destination_account_daily_transfer_limit_exceeded",
      "error_message": "Destination account daily transfer limit exceeded",
      "amount": 250001
    }
  }
}

Confirm a Transfer

Request

curl "https://agent-network-sandbox.bongloy.com/v1/transfers/df57bc31-29ba-476c-bc6f-b3b9844d5e56/confirm" -d '{
  "data": {
    "type": "transfer",
    "id": "df57bc31-29ba-476c-bc6f-b3b9844d5e56"
  }
}' -X PATCH \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJKQTFqM2tVQ05xNzgxNmNnY0tQR1R5ZlljVUJiZE81aUNhalF1ZG8wX3VvIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.fcZMgwgJ7lF14qisULgOREWzK27QqmL6HRehStS4SO_TojgNzCkTQFocPBh7_t20LKaP8sRpLYFb5gNW7eSOasJbJHWzlG4d1Iu5oT8LuqxtNnYFQ7DM41aI3BNk-RJn9CuO71eKrJegOZhlmwesLbjitMi-laIaON8yDQQ6kyhrY3rAzdWWbxJ0Gc8jdxA6xH2UWC1hS_uBNVqeWmi07jtn7_gz7BQUrINgFUfifLYvpScrauiLmLJxWfGRu5n0WcyMLJw2OyqB8KL5u8sKskMkR25Dk6yctneNMq3hodC6gf0oDNJp3PNZsSPu8w9VVSFlpPd9gYQOdR5YsZkjrMfj-lyX92r32LAkN6fxBahJBoHXz2EU6y6jEPCgMdScBZTZJelJ2kLj6F-Ey6x5SzssvGce9jTdO-BRqW6_u-_1xL2dZCtSUbVwyVqpmh9XF0tvCPmVW9ucutlh-gzrHyrXMiOheNQyusGRg0CcYBKpeS5x5cF_ibWf94bk83lrDmtRyiucu_uBMGs6OIxPorZO-xnam3wAHMWXTQer7iSkLkB_e7UiYPBhREcOhnATAHqAGo8cGYJ6am6ccUCtKn60MU01WmC75xjzLd5b8VaPBOmHU7u0p56pwTODvE0285snX3nAjeeCJUAyq3Jh3nvIxQtO7cVCAdppMO3xKus"

Endpoint

PATCH /v1/transfers/:id/confirm

PATCH /v1/transfers/df57bc31-29ba-476c-bc6f-b3b9844d5e56/confirm

Parameters

{
  "data": {
    "type": "transfer",
    "id": "df57bc31-29ba-476c-bc6f-b3b9844d5e56"
  }
}

None known.

Response


200 OK
{
  "data": {
    "id": "df57bc31-29ba-476c-bc6f-b3b9844d5e56",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "001123456",
      "destination_account_holder_name": "John Doe",
      "currency": "USD",
      "status": "successful",
      "metadata": {
      },
      "error_code": null,
      "error_message": null,
      "amount": 10000
    }
  }
}

Retrieve a Transfer

Request

curl -g "https://agent-network-sandbox.bongloy.com/v1/transfers/037b44e8-5b41-4cd8-ba26-e7eaf2236137" -X GET \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJxenFFenVadS1rMmNzS2J1MzZxTFUwd0hIYXpheGJVUXZJeE92ZjZuWXhVIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.Ciyzy6QbdHEX2WH3egApaYc5PtGUq3daCPSnT4KWKV-zOJFjaWLNl6h1Cw05p8FKUOOsbg6wt41LuFZS8dZ3xiU0ez6KY8gQ_w7ZNCR5j-0Ytn4mXPD6KA-RiudkXdZZWW-2YAN8udw-8vcHM_XOptAcQlbBdV41dDEWhoQG5mtrW1NbbddoEoQ5K_dd4zDugb6VTfyPHSGzA0KqM4-gaq33Ha0g2M6CCh-J7uUBK1wHF4Z7q6jgFuF-kjR18BQ7nTVG6YiemPivIjjy9-VAqwBMJplsTQsDufZv6dTxze2Et6IczpKtyX3213n6LQor3ZxLC1kpMMcKaKrqWNnL2heVRIBgbrDj32F5HedHBMJIH--kkdygTntQMobf9r1lqQTfgI0FokSJm6BKFNnO5S-4cuYzqsZuv32wddQ3iGGee8dZVpn6ycSM8kvW6loL2vgApaRFFsHPDP9n9bJf9KJyOz7-MnrvoyvPVylRCBdKaWT4nQ0MWd-RzMEEo07PzKKeoLCkU1TiuVTC4MGIVdDiGqA0FMwvUxsZi9n2CydkLLb7DjihdBpqh-db8mrZd1pwFsb-J9-SLFWp5DgkJ4hWXUeLstpZfNYb4AcQfhheGGEau-y5YTTy53pBbOEqRmFBwJ6GsIIt5_uBiS9otSWoivgOLiDuFtKNIuxPWy0"

Endpoint

GET /v1/transfers/:id

GET /v1/transfers/037b44e8-5b41-4cd8-ba26-e7eaf2236137

Parameters

None known.

Response


200 OK
{
  "data": {
    "id": "037b44e8-5b41-4cd8-ba26-e7eaf2236137",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "001123456",
      "destination_account_holder_name": "John Doe",
      "currency": "USD",
      "status": "successful",
      "metadata": {
      },
      "error_code": null,
      "error_message": null,
      "amount": 10000
    }
  }
}

Update a Transfer

Request

curl "https://agent-network-sandbox.bongloy.com/v1/transfers/922425f6-0b66-4f31-9a0a-c1365c7be0f2" -d '{
  "data": {
    "id": "922425f6-0b66-4f31-9a0a-c1365c7be0f2",
    "type": "transfer",
    "attributes": {
      "metadata": {
        "reference_number": "cde456",
        "other_field": "foobar"
      }
    }
  }
}' -X PATCH \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJqOXRDMWFna3ZvcGFXdHBSdFNQTXhoNHZubnZuaWZqTFZzOVZ2UHkxdndFIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.So1FV6NY9xKP5RBxTtIoHUIE2oTsrWbxGVKqn6eEEJDFKoenKWKE6vG4D07KPIPAx_lICZ9yWRkgbrt3FH6fzWtNrODCeI8GaD9oWpV_IJm8-JxfsSMvhuTDiE0MuxXPGV5xIvm3Df9aIkzJ2ZapKLF774PGiZ4VxHp16tC34boPk31qnsc5UALyeemK5bC2pahAcielcrMCB5ShLNXflMRHeCYij4ySkymlr0-lailx9VVSsa_f3i8sls7BqV-Z3j9j_tFXbaTpo7Gb68XspeKcqqAVtAS-K1d40pWcztVQ2GlPNxktWxlh2w-DdlRXuZ9L9MIS3_H509Uavbs3z4uBvNvqC5g22UAZU2Bc0jL5zG7Q6SObGiWlHxVfkPmfJKBtxHr1gThiweQgTDAA2yBWryrnL2HIC2l9Ad9w-txHvbL0-QH5dTupSnEosOW60Quu-qLQZFZqo1jTT4ifbdT3kG5Uco7baLVHIzOHz2ybqhyPZUGTSREtXxRIDcSy7N1pbCCFjpAcm5tKn0ib7dgfjPV94ms4rZnZ-oy8gVLgb6UAATh7pDhAQ378AuY-F1YCJPDzDMy9mPC1OPFKo4WCurKZ_3vQC-hKtiNlicfnVIBzN36aU8ChAqZoXWR26LiS88lhjQ8RhftyrNiiPIpzgmaIAAi9ul0J9jStyu0"

Endpoint

PATCH /v1/transfers/:id

PATCH /v1/transfers/922425f6-0b66-4f31-9a0a-c1365c7be0f2

Parameters

{
  "data": {
    "id": "922425f6-0b66-4f31-9a0a-c1365c7be0f2",
    "type": "transfer",
    "attributes": {
      "metadata": {
        "reference_number": "cde456",
        "other_field": "foobar"
      }
    }
  }
}

None known.

Response


200 OK
{
  "data": {
    "id": "922425f6-0b66-4f31-9a0a-c1365c7be0f2",
    "type": "transfer",
    "attributes": {
      "created_at": "2020-03-19T03:44:31Z",
      "updated_at": "2020-03-19T03:44:31Z",
      "destination_account_number": "001123456",
      "destination_account_holder_name": "John Doe",
      "currency": "USD",
      "status": "successful",
      "metadata": {
        "reference_number": "cde456",
        "foo": "bar",
        "other_field": "foobar"
      },
      "error_code": null,
      "error_message": null,
      "amount": 10000
    }
  }
}

List all Transfers

Request

curl -g "https://agent-network-sandbox.bongloy.com/v1/transfers?filter[status]=successful&filter[from_date]=2020-01-01T00%3A00%3A00Z&filter[to_date]=2020-01-01T11%3A00%3A00Z" -X GET \
    -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJhcGlfdG9rZW4iOiJqbDgtSUVFMUNmdFIteE9Ib0M0SDlaY0owcXc1OVY5WmtiUFc0M2RsX1VjIiwidGltZXN0YW1wIjoiMTU4NDU4OTQ3MSJ9.VaQY6w1j1YQQjC3nOVwOr6xhWuVnGmX89fIPzQQ2ZxZ41W49J29U3APrhSbOTD26w4OK1CW293awSbNI_yTPj6eo2kb_YyfJRWpjMWaJ_9WJi4uGqbWDGXmDSzn8YgUomZtSiLaNiCFJ38uDpY93mg7y2f5GPXKfL2F2LgZRfHs8IgtNvHRcYNmojNeix7VUIWyr7C-t0x4E25o3BoLlwc0AgWFQxvL1muDc6SVx8Btsh0seqKFFWUjOf1stGisH0vfDK1iVZt14xC0xqIjRfC_d9f4cEUKCWH4se7xL68h-yBmOSZCSFmmblE7GWxhKtMAZJFgYz-7rkBUEjoV2g_zQAz0m5kKGtFSxJkNuMCeexOdxs2Wq0Gw_nrXkZy2Gz4IFuxy7abiqEVwxoUwYU8yxxKA1ooVC4JCQEeAaEMUUw8TYlOg2lhKqfHeN88ugSm-MLaabRtRk-BbvFgflnf2kK_y7Wpk2YMe5JQPbHbKhoElF7QVGVF97vc9bJ5tHeutXw4aUXCvwSxtqd-PnE4hRcILMQjL80t1OIQnK-GGI3_sY648Xz2p6wuGmCxW9kH5X2vJGancb3yRZSCO1aAQTgaDzb-nQ71Ih-JHYgdzXaiGyxNyEHT62HqQ7NOANg-LWigfptFXFHhD64kpiOTzoWOUOGPxoZ3Xc1Jil8xU"

Endpoint

GET /v1/transfers

GET /v1/transfers?filter[status]=successful&filter[from_date]=2020-01-01T00%3A00%3A00Z&filter[to_date]=2020-01-01T11%3A00%3A00Z

Parameters

filter: {"status"=>"successful", "from_date"=>"2020-01-01T00:00:00Z", "to_date"=>"2020-01-01T11:00:00Z"}
Name Description
filter[status] Return transfers that match the provided status.
filter[from_date] Return transfers on or after the provided date/time in ISO 8601 format.
filter[to_date] Return transfers on or before the provided date/time in ISO 8601 format.

Response


200 OK
{
  "data": [
    {
      "id": "d01b8499-2995-408c-b22a-de7538fdcede",
      "type": "transfer",
      "attributes": {
        "created_at": "2020-01-01T01:00:00Z",
        "updated_at": "2020-03-19T03:44:31Z",
        "destination_account_number": "001123456",
        "destination_account_holder_name": "John Doe",
        "currency": "USD",
        "status": "successful",
        "metadata": {
        },
        "error_code": null,
        "error_message": null,
        "amount": 10000
      }
    }
  ],
  "links": {
    "prev": "http://example.org/v1/transfers?filter%5Bfrom_date%5D=2020-01-01T00%3A00%3A00Z&filter%5Bstatus%5D=successful&filter%5Bto_date%5D=2020-01-01T11%3A00%3A00Z&page%5Bbefore%5D=d01b8499-2995-408c-b22a-de7538fdcede",
    "next": null
  }
}