Skip to content

Instantly share code, notes, and snippets.

@gilakos
Last active July 9, 2023 04:49
Show Gist options
  • Save gilakos/40fab6b6c09569363479d62e4c815046 to your computer and use it in GitHub Desktop.
Save gilakos/40fab6b6c09569363479d62e4c815046 to your computer and use it in GitHub Desktop.
Astra API Endpoints // Postman Collection // Sandbox
{
"info": {
"_postman_id": "9551db06-00aa-4212-8809-d72e56ed7803",
"name": "Astra Developer Sandbox",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Authenticate User",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "your_client_secret",
"type": "string"
},
{
"key": "username",
"value": "your_client_id",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "authorization_code",
"type": "text"
},
{
"key": "code",
"value": "your_user_authorization_code",
"type": "text"
},
{
"key": "redirect_uri",
"value": "your_redirect_uri",
"type": "text"
}
]
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/oauth/token",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"oauth",
"token"
]
}
},
"response": []
},
{
"name": "Refresh Access Token",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "your_client_secret",
"type": "string"
},
{
"key": "username",
"value": "your_client_id",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "refresh_token",
"type": "text"
},
{
"key": "refresh_token",
"value": "your_user_refresh_token",
"type": "text"
},
{
"key": "redirect_uri",
"value": "your_redirect_uri",
"type": "text"
}
]
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/oauth/token",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"oauth",
"token"
]
}
},
"response": []
},
{
"name": "User Intent Create",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "your_client_secret",
"type": "string"
},
{
"key": "username",
"value": "your_client_id",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"sir.edmund.hillary@gmail.com\",\n\t\"phone\": \"+15557771234\",\n\t\"first_name\": \"Edmund\",\n\t\"last_name\": \"Hillary\",\n\t\"address1\": \"123 Astra Ave\",\n\t\"address2\": \"Apt 456\",\n\t\"city\": \"Palo Alto\",\n\t\"state\": \"CA\",\n\t\"postal_code\": \"94304\",\n\t\"date_of_birth\": \"1919-07-20\",\n\t\"ssn\": \"9999\",\n\t\"ip_address\": \"your_ip_address\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/user_intent",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"user_intent"
]
}
},
"response": []
},
{
"name": "User Intent",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "your_client_id",
"type": "string"
},
{
"key": "password",
"value": "your_client_secret",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/user_intent/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"user_intent",
":id"
],
"variable": [
{
"key": "id",
"value": "your_user_intent_id"
}
]
}
},
"response": []
},
{
"name": "Document Create Upload URL for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"document_type\": \"license\",\n \"extension\": \"jpg\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/documents/create_upload_url",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"documents",
"create_upload_url"
]
}
},
"response": []
},
{
"name": "Document Confirm Upload for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"filename\": \"your_file_name.jpg\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/documents/confirm_upload",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"documents",
"confirm_upload"
]
}
},
"response": []
},
{
"name": "User",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/user",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"user"
]
}
},
"response": []
},
{
"name": "Accounts for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/accounts",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"accounts"
]
}
},
"response": []
},
{
"name": "Account by ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/accounts/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"accounts",
":id"
],
"variable": [
{
"key": "id",
"value": "your_account_id"
}
]
}
},
"response": []
},
{
"name": "Create Direct Account",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"institution_id\": \"astra_ins_id\",\n \"name\": \"institution_name\",\n \"bank_account_type\": \"checking\",\n \"account_number\": \"your_account_number\",\n \"routing_number\": \"your_routing_number\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/accounts",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"accounts"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Processor Token",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"processor_token\": \"processor-sandbox-<your_process_token>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/accounts/processor_token",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"accounts",
"processor_token"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Card Create",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"card_number\": \"4242424242424242\",\n \"card_security_code\": \"123\",\n \"expiration_date\": \"02/2024\",\n \"first_name\": \"Edmund\",\n \"last_name\": \"Hillary\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://secure-api-sandbox..astra.finance/v1/cards",
"protocol": "https",
"host": [
"secure-api-sandbox",
"",
"astra",
"finance"
],
"path": [
"v1",
"cards"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Cards for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/cards",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"cards"
]
}
},
"response": []
},
{
"name": "Card by ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/cards/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"cards",
":id"
],
"variable": [
{
"key": "id",
"value": "your_card_id",
"type": "string"
}
]
}
},
"response": []
},
{
"name": "Card Delete",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/cards/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"cards",
":id"
],
"variable": [
{
"key": "id",
"value": "your_card_id",
"type": "string"
}
]
}
},
"response": []
},
{
"name": "Routine Create",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"one-time\",\n \"name\": \"My Routine via API\",\n \"source_id\": \"your_source_id\",\n \"destination_id\": \"your_destination_id\",\n \"amount\": 20,\n \"start_date\": \"2020-10-28\",\n \"payment_type\": \"ach\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/routines",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"routines"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Routines for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/routines",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"routines"
]
}
},
"response": []
},
{
"name": "Routine by ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/routines/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"routines",
":id"
],
"variable": [
{
"key": "id",
"value": "your_routine_id"
}
]
}
},
"response": []
},
{
"name": "Routine Update",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"new name!\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/routines/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"routines",
":id"
],
"variable": [
{
"key": "id",
"value": "your_routine_id",
"description": "Routine ID"
}
]
}
},
"response": []
},
{
"name": "Routine Delete",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"My Sweep\",\n \"source\": \"source_account_id\",\n \"destination\": \"destination_account_id\",\n \"threshold\": 1500,\n \"start_date\": \"2020-09-20\",\n \"frequency\": \"bi-weekly\"\n }",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/routines/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"routines",
":id"
],
"variable": [
{
"key": "id",
"value": "your_routine_id"
}
]
}
},
"response": []
},
{
"name": "Transfers for User",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/transfers",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"transfers"
]
}
},
"response": []
},
{
"name": "Transfer by ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/transfers/:id",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"transfers",
":id"
],
"variable": [
{
"key": "id",
"value": "your_transfer_id"
}
]
}
},
"response": []
},
{
"name": "Transfer Cancel",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/transfers/:id/cancel",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"transfers",
":id",
"cancel"
],
"variable": [
{
"key": "id",
"value": "your_transfer_id"
}
]
}
},
"response": []
},
{
"name": "Transactions",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://api-sandbox.astra.finance/v1/transactions?date_start=your_start_date&date_end=your_end_date&batch_size=your_batch_size_number&cursor=your_cursor_string",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"transactions"
],
"query": [
{
"key": "date_start",
"value": "your_start_date"
},
{
"key": "date_end",
"value": "your_end_date"
},
{
"key": "batch_size",
"value": "your_batch_size_number"
},
{
"key": "cursor",
"value": "your_cursor_string"
}
]
}
},
"response": []
},
{
"name": "Customer Webhook",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "your_access_token",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "X-Daylight-Signature",
"value": "MTIzMTIz",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"institution_id\": \"astra_ins_100\",\n \"resource_id\": \"astra_generic_astra_ins_100_d900832c36a7b9c819f9b9454f1f2b426df2b0ed_426a606de74644a89c642ddcbe6d3b85\",\n \"event_type\": \"balance_update\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/webhook/customer_event",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"webhook",
"customer_event"
]
}
},
"response": []
},
{
"name": "Client (public)",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "https://api-sandbox.astra.finance/v1/oauth/clients/:id/public",
"protocol": "https",
"host": [
"api-sandbox",
"astra",
"finance"
],
"path": [
"v1",
"oauth",
"clients",
":id",
"public"
],
"variable": [
{
"key": "id",
"value": "your_client_id",
"type": "string"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
@Benstone1956
Copy link

This is Awesome i am gretful kindly fixed configuration so i can start up my business back today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment