We are here 24/7, keeping an eye on things and making sure everything runs smoothly.
For every API request, the following headers and parameters are required:
Variable Name | Description | Required | Expected Value |
---|---|---|---|
api_username | Unique API username associated with the account | Yes | String |
api_key | Unique API key associated with the account | Yes | String |
– API username, API key, and secret key will be provided upon onboarding.
– All dates and times are in GMT.
This API is responsible for creating new payment transactions, and this API is compatible with both encrypted and plain credit card methods of transactions.
JSON Body Parameters:
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_type | Type of user you are creating (A default user(“USER”) will always only have capability of reaching data unique to their unique ID) | Yes | String (“ADMIN”, “USER”, “ANALYST”) |
first_name | First name to be associated with user | Yes | String |
last_name | Last name to be associated with user | Yes | String |
Email to be associated with user | Yes | String | |
phone_number | Phone number to be associated with user | Yes | Integer (10 digits) |
employee_number | An employee number to associate with this account | Yes | Integer (9 digits) |
shipping_address1 | Primary street address for shipping physical cards | Conditional, required for physical cards | String (100 characters) |
shipping_address2 | Secondary street address for shipping physical cards | No | String (100 characters) |
shipping_city | City associated with shipping address | Conditional, required for physical cards | String (50 characters) |
shipping_state | State associated with shipping address | Conditional, required for physical cards | US State Abbreviation i.e. (FL, GA, NY, TX, etc.) |
shipping_zip | Zip code associated with shipping address | Conditional, required for physical cards | 5 Digit integer (e.g., 32829, 12129, 24747) |
billing_address_type | Specifies if billing address will be 1. Address user has saved on profile 2. Address of account (company) 3. Specified address using ‘billing_’ variable fields | Yes | String ( 1 character “U” - User Shipping “C” - Company “N” - specific ) |
billing_address1 | Primary billing address used for AVS (Address Verification System) on digital cards. (For physical cards, shipping address will be used) | Conditional (Required if billing_address_type = “N” ) | String (100 characters) |
billing_address2 | Secondary billing address used for AVS (Address Verification System) on digital cards. (For physical cards shipping address will be used) | No | String (100 characters) |
billing_city | Billing City associated with the billing address used for AVS on digital cards | Conditional (Required if billing_address_type = “N” ) | String (e.g., “orlando”, “austin”, “boston”) |
billing_state | Billing state associated with the billing address used for AVS on digital cards | Conditional (Required if billing_address_type = “N” ) | US State Abbreviation i.e. (FL, GA, NY, TX, etc.) |
billing_zip | Billing zip code associated with the billing address used for AVS on digital cards | Conditional (Required if billing_address_type = “N” ) | 5-Digit integer (e.g., 32829, 12129, 24747) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "first_name": "firstname", "last_name": "lastname", "email": "example@example.com", "phone_number": "4071234567", "employee_number": "999999999", "shipping_address1": "123 example street", "shipping_address2": "apt 123", "shipping_city": "example", "shipping_state": "TX", "shipping_zip": "12345", "billing_address1": "123 example street", "billing_address2": "apt 123", "billing_city": "example", "billing_state": "TX", "billing_zip": "12345", }
{ "message": "User successfully created.", "code": 00, "data": { "user_uid": "{Unique ID of user}", "activation_code": "{Unique activation code needed to activate user}", "first_name": "firstname", "last_name": "lastname", "email": "example@example.com", "phone_number": "4071234567", "employee_number": "999999999", "shipping_address1": "123 example street", "shipping_address2": "apt 123", "shipping_city": "example", "shipping_state": "TX", "shipping_zip": "12345", "billing_address1": "123 example street", "billing_address2": "apt 123", "billing_city": "example", "billing_state": "TX", "billing_zip": "12345" "created_date": "2024-12-03 14:25:00", } }
The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, two elements are returned, code, description token. The response code is always 00 for a successful API call.
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | User uid is missing or invalid. |
04 | User Type is missing or invalid. |
05 | Analyst can only be changed to Admin or User. |
06 | Admin or User cannot be changed to Analyst. |
07 | First/Last name is missing or invalid. |
08 | Email is missing or invalid. |
09 | Email already exists. |
10 | Phone number is missing or invalid. |
11 | Phone number already exists. |
12 | Employee number is missing or invalid. |
13 | Employee number already exists. |
14 | Driver’s license number is missing or invalid. |
15 | Driver’s license number already exists. |
16 | Billing address type is missing or invalid. |
17 | Billing address 1 is missing or invalid. |
18 | Billing address 2 is invalid. |
19 | Billing city is missing or invalid. |
20 | Billing state is missing or invalid. |
21 | Billing ZIP code is missing or invalid. |
22 | Shipping address 1 is missing or invalid. |
23 | Shipping address 2 is invalid. |
24 | Shipping city is missing or invalid. |
25 | Shipping state is missing or invalid. |
26 | Shipping ZIP code is missing or invalid. |
27 | Start date is invalid date format. |
28 | End date is invalid date format. |
29 | Activation code is missing or invalid. |
30 | User status is missing or invalid. |
31 | Password is missing or invalid. |
32 | Failed to modify user status. |
33 | Failed to modify user. |
34 | Page number is missing or invalid. |
35 | Failed to fetch user list. |
36 | Failed to cancel cards and modify user status. |
37 | Can’t delete a user with cards assigned. |
38 | Card uids missing or invalid. |
39 | User uids missing or invalid. |
40 | Operation type is missing or invalid. |
41 | Failed to modify analyst user access. |
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_uid | Unique ID of user you are modifying | Yes | String |
user_type | Type of user you are creating (A default user(“USER”) will always only have capability of reaching data unique to their unique ID) | Conditional | String (“ADMIN”,“USER”,“ANALYST”) |
phone_number | Phone number to be associated with user | Conditional | Integer (10 digits) |
shipping_address1 | Primary street address for shipping physical cards | Conditional | String(100 characters) |
shipping_address2 | Secondary street address for shipping physical card | Conditional | String(100 characters) |
shipping_city | City associated with shipping address | Conditional | String (50 characters) |
shipping_state | State associated with shipping address | Conditional | US State Abbreviation i.e. (FL, GA, NY, TX, etc.) |
shipping_zip | Zip code associated with shipping address | Conditional | 5 Digit integer (e.g., 32829, 12129, 24747) |
billing_address_type | Specifies if billing address will be | ||
1. Address user has saved on profile | |||
2. Address of account (company) | |||
3. Specified address using ‘billing_’ variable fields | Conditional | String ( 1 character: “U” - User Shipping “C” - Company “N” - Specific ) | |
billing_address1 | Primary billing address used for AVS (Address Verification System) on digital cards. (For physical cards shipping address will be used) | Conditional | String (100 characters) |
billing_address2 | Secondary billing address used for AVS (Address Verification System) on digital cards. (For physical cards shipping address will be used) | Conditional | String(100 characters) |
billing_city | Billing city associated with the billing address used for AVS on digital cards | Conditional | String(50 characters) |
billing_state | Billing state associated with the billing address used for AVS on digital cards | Conditional | US State Abbreviation i.e. (FL, GA, NY, TX, etc.) |
billing_zip | Billing zip code associated with the billing address used for AVS on digital cards | Conditional | 5-Digit integer (e.g., 32829, 12129, 24747) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "user_uid": "{Unique id of user to be modified}" "phone_number": "4071234567" "billing_address_type": "N", "billing_address1": "123 example street", "billing_address2": "apt 123", "billing_city": "example", "billing_state": "TX", "billing_zip": "12345", }
{ "message": "User successfully modified.", "code": 00, "data": { "user_uid": "{Unique id of user}", "first_name": "firstname", "last_name": "lastname", "user_type": "user", "email": "example@example.com", "phone_number": "4071234567", "employee_number": "999999999", "shipping_address1": "123 example street", "shipping_address2": "apt 123", "shipping_city": "example", "shipping_state": "TX", "shipping_zip": "12345", "billing_address_type": "N", "billing_address1": "123 example street", "billing_address2": "apt 123", "billing_city": "example", "billing_state": "TX", "billing_zip": "12345", "modified_date": "2024-01-01 23:59:59" } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_uid | Unique ID received upon creation of user you are deleting | Yes | String |
status | How you are changing the user’s status (IMPORTANT NOTE: - Can’t delete users that have any locked or unlocked cards - Deactivating a user will cancel all cards related to the user) | Conditional | String( DELETE, ACTIVATE, DEACTIVATE ) |
activation_code | Unique activation code received upon creation of user | Conditional (If status = ACTIVATE) | Varchar |
password | Unique password for user | Conditional (If status = ACTIVATE) | Varchar encrypted with AES 128-bit ECB using secret key. Must be: 10 or more characters One lowercase character One uppercase character One number One symbol |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "status":"DELETE", "user_uid": "{Unique id of user}" }
{ "message": "User status successfully changed.", "code": 00, "user_uid": "{Unique id of user}" "status":"DELETED", "deleted_date": "2024-01-01 23:59:59",. }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
page_no | Specified Page number - 100 records per page | Yes | INT |
start_date | Date to start based on the created date of a user | No | Date(YYYY-MM-DD) |
end_date | Date to end based on the created date of a user | No | Date(YYYY-MM-DD) |
user_type | Specific users to grab | No | String(“USER”, “ADMIN”, “ANALYST”) |
{ "message": "Users successfully received.", "code": 00, "current_page": 1, "total_pages": 1, "total_record_count": 1, "data": { "users": [ { "user_details": { "user_uid": "{Unique id of user}", "first_name": "firstname", "last_name": "lastname", "email": "example@example.com", "phone_number": "4071234567", "user_type": "USER", "employee_number": "999999999", "shipping_address1": "123 example street", "shipping_address2": "apt 123", "shipping_city": "example", "shipping_state": "TX", "shipping_zip": "12345", "billing_address1": "123 example street", "billing_address2": "apt 123", "billing_city": "example", "billing_state": "TX", "billing_zip": "12345" "status": "active", "created_date": "2024-01-01 23:59:59", "modified_date": "2024-01-01 23:59:59", "deleted_date": "2024-01-01 23:59:59", "is_deleted": "1" } } ] } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_access_uid | Unique ID of user you are giving access to | Yes | String |
card_uids | List of unique IDs associated with cards user will have access to | Yes | Array |
user_uids | User you are giving all card access to (if one card is specified in card_uids user is granted to access of that card only if none they are granted with access to all cards of specified user) | Yes | Array |
operation_type | Specifies the operation to be performed | Yes | String(“Remove”, “Add”) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "user_access_uid": "{unique id of user}" "card_uid": [ "{unique id of card}", "{unique id of card}", "{unique id of card}" ], "user_uid": [ "{unique id of user}", "{unique id of user}" ], "operation_type": "Add" }
{ "message": "Access list successfully modified", "code": 00, "cards": [ "{unique id of card}", "{unique id of card}", "{unique id of card}" ], "users": [ "{unique id of user}", "{unique id of user}" ] }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_uid | Unique ID of user | Yes | String |
{ "message": "Access list successfully recieved", "code": 00, "cards": [ "{unique id of card}", "{unique id of card}", "{unique id of card}" ], "users": [ "{unique id of user}", "{unique id of user}" ] }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | User uid is missing or invalid. |
04 | User Type is missing or invalid. |
05 | Analyst can only be changed to Admin or User. |
06 | Admin or User cannot be changed to Analyst. |
07 | First/Last name is missing or invalid. |
08 | Email is missing or invalid. |
09 | Email already exists. |
10 | Phone number is missing or invalid. |
11 | Phone number already exists. |
12 | Employee number is missing or invalid. |
13 | Employee number already exists. |
14 | Driver’s license number is missing or invalid. |
15 | Driver’s license number already exists. |
16 | Billing address type is missing or invalid. |
17 | Billing address 1 is missing or invalid. |
18 | Billing address 2 is invalid. |
19 | Billing city is missing or invalid. |
20 | Billing state is missing or invalid. |
21 | Billing ZIP code is missing or invalid. |
22 | Shipping address 1 is missing or invalid. |
23 | Shipping address 2 is invalid. |
24 | Shipping city is missing or invalid. |
25 | Shipping state is missing or invalid. |
26 | Shipping ZIP code is missing or invalid. |
27 | Start date is invalid date format. |
28 | End date is invalid date format. |
29 | Activation code is missing or invalid. |
30 | User status is missing or invalid. |
31 | Password is missing or invalid. |
32 | Failed to modify user status. |
33 | Failed to modify user. |
34 | Page number is missing or invalid. |
35 | Failed to fetch user list. |
36 | Failed to cancel cards and modify user status. |
37 | Can’t delete a user with cards assigned. |
38 | Card uids missing or invalid. |
39 | User uids missing or invalid. |
40 | Operation type is missing or invalid. |
41 | Failed to modify analyst user access. |
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_uid | Unique ID associated with the user who will become the cardholder for this card (Max 1 User) | Yes | String |
card_type | Type of card to be created | Yes | String(“DIGITAL”, “PHYSICAL”) |
profile | Specifies whether the card is prepaid or credit | Yes | String (“N” for prepaid, “Y” for credit |
spending_profile_uid | Unique ID of existing preset spending | Conditional if profile = “Y” | varchar |
spending_limit | Specific amount card will have to spend | Conditional if profile = “N” | Integer |
shipping_address_type | Specifies address card will be shipped to 1. Address user has saved on profile 2. Address of account (company) | Conditional ( Required if card_type = “PHYSICAL” ) | String ( 1 character “U” - User Shipping “C” - Company ) |
billing_address_type | Specifies if billing address will be 1. Shipping address user has saved on profile 2. Address of account (company) 3. Billing address user has saved on profile 4. Specified address using ‘billing_’ variable fields | yes | String ( “U” - User shipping “C” - Company “B” - User billing “N” - specific ) |
billing_address1 | Primary billing address used for AVS (Address Verification System) on digital cards.(For physical cards shipping address will be used) | Conditional (Required if card_type = DIGITAL) | String (100 characters) |
billing_address2 | Secondary billing address used for AVS (Address Verification System) on digital cards.(For physical cards shipping address will be used) | No | String |
billing_city | Billing city associated with the billing address used for AVS on digital cards | Conditional (Required if card_type = DIGITAL) | String (e.g., “Orlando”, “Austin”, “Boston”) |
billing_state | Billing state associated with the billing address used for AVS on digital cards | Conditional (Required if card_type = DIGITAL) | US State Abbreviation i.e. (FL, GA, NY, TX, etc.) |
billing_zip | Billing zip associated with the billing address used for AVS on digital cards | Conditional (Required if card_type = DIGITAL) | 5-Digit integer (e.g., 32829, 12129, 24747) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "user_uid": "{Unique id of user}", "card_type": "DIGITAL", "profile": "Y", "spending_profile_uid": "null", "spending_limit": "1000" "shipping_address1": "123 Main St", "shipping_address2": "Apt 4B", "shipping_city": "Orlando", "shipping_state": "FL", "shipping_zip": "32829", "billing_address_type": "N", "billing_address1": "456 Elm St", "billing_address2": "Suite 101", "billing_city": "Austin", "billing_state": "TX", "billing_zip": "73301" }
{ "message": "Card successfully created.", "code": "00", "data": { "card_number": "1234 1234 1234 1234", // (encrypted) "card_exp": "00/00", // (encrypted) "card_cvv": "111",// (encrypted) "card_uid": "Unique id of card", "card_type": "DIGITAL", "profile_flag": true, "spending_profile_uid": "null", "spending_limit": "1000", "first_name": "firstname", "last_name": "lastname", "address_type": "C", "address1": "1234 street example", "address2": "apt 123", "city": "Austin", "state": "TX", "zip": "12345", "created_date": "0000-00-00 00:00:00" } }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | User uid is missing or invalid. |
04 | User Type is missing or invalid. |
05 | Analyst can only be changed to Admin or User. |
06 | Admin or User cannot be changed to Analyst. |
07 | First/Last name is missing or invalid. |
08 | Email is missing or invalid. |
09 | Email already exists. |
10 | Phone number is missing or invalid. |
11 | Phone number already exists. |
12 | Employee number is missing or invalid. |
13 | Employee number already exists. |
14 | Driver’s license number is missing or invalid. |
15 | Driver’s license number already exists. |
16 | Billing address type is missing or invalid. |
17 | Billing address 1 is missing or invalid. |
18 | Billing address 2 is invalid. |
19 | Billing city is missing or invalid. |
20 | Billing state is missing or invalid. |
21 | Billing ZIP code is missing or invalid. |
22 | Shipping address 1 is missing or invalid. |
23 | Shipping address 2 is invalid. |
24 | Shipping city is missing or invalid. |
25 | Shipping state is missing or invalid. |
26 | Shipping ZIP code is missing or invalid. |
27 | Start date is invalid date format. |
28 | End date is invalid date format. |
29 | Activation code is missing or invalid. |
30 | User status is missing or invalid. |
31 | Password is missing or invalid. |
32 | Failed to modify user status. |
33 | Failed to modify user. |
34 | Page number is missing or invalid. |
35 | Failed to fetch user list. |
36 | Failed to cancel cards and modify user status. |
37 | Can’t delete a user with cards assigned. |
38 | Card uids missing or invalid. |
39 | User uids missing or invalid. |
40 | Operation type is missing or invalid. |
41 | Failed to modify analyst user access. |
Variable Name | Description | Required | Expected Value |
---|---|---|---|
card_uid | Unique ID of card given upon creation of card | Yes | Varchar |
card_status | Status to set card to | Yes | String ( “L” - Lock, “U”, - Unlock “C” - Cancel ) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "card_uid": "{Unique id of card}", "card_status": "B", }
{ "message": "Card details successfully modified.", "code": 00, "card_uid": "{Unique id of card}", "card_status": "B" }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
card_uid | Unique ID of card given upon creation of card | Yes | Varchar |
amount_to_load | Integer of amount to add | Yes | Integer |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "card_uid": "{Unique id of card}", "amount_to_load": 50, }
{ "message": "Card successfully reloaded.", "code": 00, "data"{ "card_uid": "{Unique id of card}", "spending_limit": "150" "modified_date": "0000-00-00 00:00:00" } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
card_uid | Unique ID of card being requested (Must be valid card in system) | Yes | String |
{ "message": "Card details recieved successfully.", "code": 00, "data": { "user_uid": "{Unique ID of cardholder user}" "card_number": "1234 1234 1234 1234",(encrypted) "card_exp": "00/00",(encrypted) "card_cvv": "111"(encrypted) "card_status": "B", "card_uid": "{Unique id of card}", "card_type": "DIGITAL", "profile_flag": true "spending_profile_uid": "{Unique id of spending profile}", "sp_name": "spending profile name" "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000, "max_number_of_trans": 15, "first_name": firstname, "last_name": lastname, "address_type": "C", "address1": "1234 street example", "address2": "apt 123", "city": "austin", "state": "tx", "zip": "12345", "created_date": "0000-00-00 00:00:00", "modified_date": "0000-00-00 00:00:00", "deleted_date": "0000-00-00 00:00:00" } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
user_uid | Unique ID associated with user you want cards of | Yes | String |
{ "message": "Card list successfully received.", "data": { "user_uid": "{Unique id of cardholder user}", "cards": [ { "card_details": { "card_number": "1234 1234 1234 1234", // (encrypted) "card_exp": "00/00", // (encrypted) "card_cvv": "111", // (encrypted) "card_uid": "Unique id of card 1", "card_type": "DIGITAL", "profile_flag": true, "spending_profile_uid": "Unique id of spending profile", "sp_name": "Spending Profile Name 1", "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000, "max_number_of_trans": 15, "first_name": "FirstName1", "last_name": "LastName1", "address_type": "C", "address1": "1234 Street Example 1", "address2": "Apt 123", "city": "Austin", "state": "TX", "zip": "12345", "created_date": "0000-00-00 00:00:00", "modified_date": "0000-00-00 00:00:00", "deleted_date": "0000-00-00 00:00:00" } } ] } }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | User uid is missing or invalid. |
04 | Card uid is missing or invalid. |
05 | Card type is missing or invalid. |
06 | Profile is missing or invalid. |
07 | Spending profile uid is missing or invalid. |
08 | Spending limit is missing or invalid. |
09 | Shipping address type is missing or invalid. |
10 | Billing address type is missing or invalid. |
11 | User has no shipping address on record. |
12 | User has no billing address on record. |
13 | User has no company address on record. |
14 | Billing address 1 is missing or invalid. |
15 | Billing address 2 is invalid. |
16 | Billing city is missing or invalid. |
17 | Billing state is missing or invalid. |
18 | Billing ZIP code is missing or invalid. |
19 | Card status is missing or invalid. |
20 | Amount to load is missing or invalid. |
21 | Unable to set card’s billing address. |
22 | Unable to add card. |
23 | Unable to modify card status. |
24 | Failed to fetch card list for specified user. |
25 | Unable to update spending limit. |
26 | Card must be unlocked and profile “N” in order to reload. |
27 | Failed to fetch updated card data. |
28 | Couldn't reload card due to insufficient balance. |
{ "message": "Spending profile list successfully recieved.", "data": { "profiles": [ { "spending_profile_details": { "spending_profile_uid": "{unique id of spending profile}", "sp_name": "spending profile name" "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000, "created_date": "0000-00-00 00:00:00", "modified_date": "0000-00-00 00:00:00", "deleted_date": "0000-00-00 00:00:00" "is_deleted": "NO" } } ] } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
sp_name | Name of spending profile | Yes | String |
cycle_type | When card will reset (weekly/monthly) | Yes | String( “M” - month, “W” - week ) |
cycle_reset_day | Day it will reset | Yes | Integer( cycle_type = M e.g., 1-30 cycle_type = W e.g., 1-07 ) |
cycle_spending_limit | Cycle spending limit (applicable for credit card) | Yes | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
daily_spending_limit | Daily spending limit (applicable for credit card) | Yes | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
max_amt_per_tran | Maximum amount allowed per transaction (applicable for credit card) | Yes | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "sp_name": "profile name" "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000 }
{ "message": "Spending profile successfully created.", "code": 00, "data": { "spending_profile_uid": "{unique id of spending profile}", "sp_name": "spending profile name" "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000, "created_date": 0000-00-00 00:00:00 } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
spending_profile_uid | Unique ID associated with spending profile to be modified | Yes | String |
sp_name | Name of spending profile | Conditional | String |
cycle_type | When card will reset (weekly/monthly) | Conditional | String( “M” - month, “W” - week ) |
cycle_reset_day | Day it will reset () | Conditional | Integer( cycle_type = M e.g., 01-30 cycle_type = W e.g., 01-07 ) |
cycle_spending_limit | Cycle spending limit (applicable for credit card) | Conditional | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
daily_spending_limit | Daily spending limit (applicable for credit card) | Conditional | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
max_amt_per_tran | Maximum amount allowed per transaction (applicable for credit card) | Conditional | Integer (e.g., 100, 1000, 2000, 10000, etc.) |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "spending_profile_uid": "{unique id of spending profile}" "sp_name": "profile name" "cycle_spending_limit": 10000 }
{ "message": "Spending profile successfully modified.", "data": { "spending_profile_uid": "{unique id of spending profile}", "sp_name": "profile name" "cycle_type": "M", "cycle_reset_day": "23", "cycle_spending_limit": 10000, "daily_spending_limit": 2000, "max_amt_per_tran": 1000, "modified_date": "0000-00-00 00:00:00" } }
Variable Name | Description | Required | Expected Value |
---|---|---|---|
spending_profile_uid | Unique ID received upon creation of spending profile you are deleting | Yes | String |
{ "api_username": "{Unique api username}", "api_key": "{Unique api_key}", "spending_profile_uid": "{Unique id of spending profile}" }
{ "message": "Successfully deleted spending profile.", "code": 00, "spending_profile_uid": "{Unique id of spending profile}" "deleted_date": "2024-01-01 23:59:59" }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | Spending profile uid is missing or invalid. |
04 | Spending profile name is missing or invalid. |
05 | Cycle type is missing or invalid. |
06 | Cycle reset day is missing or invalid. |
07 | Cycle spending limit is missing or invalid. |
08 | Daily spending limit is missing or invalid. |
09 | Maximum amount per transaction is missing or invalid. |
10 | Cycle spending limit should be equal to or greater than daily spending limit. |
11 | Maximum amount per transaction should be equal to or less than cycle spending limit and daily spending limit. |
12 | Cannot create more spending profiles. 50 spending profiles have already been created. |
13 | Unable to create spending profile. |
14 | Unable to delete spending profile. |
15 | Unable to modify spending profile. |
16 | Unable to modify spending profile that has cards attached to it. |
17 | Unable to delete spending profile that has cards attached to it. |
18 | Unable to fetch spending profile list. |
Variable Name | Description | Required | Expected Value |
---|---|---|---|
page_no | Specified Page number - 100 records per page | Yes | INT |
transaction_type | Specified transaction type | No | Comma separated String(“Approved”, “Declined”, “Refund”, “Pending”, “Reversal”) |
start_date | Start date based on the created date of a user | No | Date |
end_date | End date based on the created date of a user | No | Date |
{ "message": "Transactions successfully received.", "data": { "current_page": 1, "total_pages": 1 "transactions": [ { "transaction_details": { "transaction_id": "{uid of transaction}", "card_uid": "{uid of card performing transaction}", "card_last_four": "1234" "amount": "500.00", "status": "Approved", "merchant": "TCB PAY", "approval_code": "011111" "transaction_time_gmt": "2024-01-10 23:59:59", "authorization_time_gmt": "2024-01-10 23:59:59", "posted_time_gmt": "2024-01-10 23:59:59", "void_time_gmt": null } } ] } }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | Start date is invalid date format. |
04 | End date is invalid date format. |
05 | Transaction type is missing or invalid. |
06 | Page number is missing or invalid. |
07 | No transactions on record. |
{ "message": "Balances successfully received.", "code": 00, "data": { "last_amount_requested" :"1000.00"" "last_amount_funded": "1000.00", "current_amount_available": "1000.00", "transfer_amount_available": "1000.00", "last_funded_date":"2024-01-01 23:59:59" } }
Code | Description |
---|---|
00 | Success |
01 | API Key is missing or invalid. |
02 | Username is missing or invalid. |
03 | Unable to fetch account details. |