{"info":{"_postman_id":"18002f7e-852b-446d-92e5-6f1e2c1c8cc8","name":"Red Card - External Dining APIs","description":"<html><head></head><body><p>A collection of APIs for 3rd party transactions through the Red Card Athletics system.</p>\n<p>Error Response Format -</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"status\" : \"error\",\n\"data\": \"error message\"\n}\n\n</code></pre>\n<p>Shared Error Responses - /get_balance_for_user, /save_transaction, /refund_transaction</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Error Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Expired Key</td>\n<td>The provided key has expired. Call /fetch_auth_key to get a new key.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Inactive Integration</td>\n<td>Red Card has temporarily disabled your integration.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid Authorization</td>\n<td>Incorrect auth key provided.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Card number doesn't exist</td>\n<td>Invalid or missing card_number.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Expired Card</td>\n<td>The card is expired.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Suspended Card</td>\n<td>The card has been suspended by the user's Organization or Red Card.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Inactive Card</td>\n<td>The card is inactive.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Restaurant not found</td>\n<td>The restaurant provided didn't match a location in the Red Card system.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Inactive Restaurant</td>\n<td>The restaurant is marked as inactive in the Red Card system.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>User not found</td>\n<td>No user was found for the card_number.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Inactive User</td>\n<td>The user is inactive in the Red Card system.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>An unknown error occurred</td>\n<td>An internal server error occured.</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"43630077","collectionId":"18002f7e-852b-446d-92e5-6f1e2c1c8cc8","publishedId":"2sB2cRCPSU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-31T19:27:52.000Z"},"item":[{"name":"Fetch Auth Key","id":"7f41453e-69dc-4f90-bc62-99084ba52fab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Provided by Red Card\",\r\n    \"password\": \"*********\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/fetch_auth_key","description":"<p>Fetch the current auth key based on username and password</p>\n","urlObject":{"protocol":"https","path":["external_api","fetch_auth_key"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"367155c9-c7ad-4823-96d4-f724fee5db74","name":"Fetch Auth Key - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"external_test\",\r\n    \"password\": \"***************\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/fetch_auth_key"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Nov 2024 18:13:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"94"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.23"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"Set-Cookie","value":"ci_session=CDRUblVlUDwIcwV1AmhWMFBoVGwAL1AhV2VRJwIiXTJTP1dvDgcEbQw1BiQHOQAlDTdSYlIwAWwFL1Y3W2YCZVVkUmNSYAI0BzxSYANtADcIbVRtVTZQMgg7BWMCMVYzUG9UYgA1UGBXNFFjAmZdalMyV2IObAQ1DGEGJAc5ACUNN1JgUjIBbAUvVj1bJgJfVWNSM1JlAnYHYVJ3AyYAIghuVCdValA3CDkFPAJwVjBQb1RkACNQYVcxUXoCY11jU35XNg56BD8MIgY8BzMAZg03UnNSdwElBWhWJlsJAmFVZVIyUm8CcAcmUj8DJgA6CGdUZVVqUCQIWAVpAiFWdVA1VDcAY1AAV3VROgIlXTJTPVdkDncEMwx%2FBjIHMAB4DT1Sc1I5ASUFN1ZlW2UCOlUgUjtSYAJ3B3BSWwM0AGMIIVQ9VSZQbwh8BX8CcFY6UDFUbAA8UGVXM1FmAmRdblNoVzUOagQ9DGoGdQc4AG8NN1JzUncBJQVoViZbCQJkVWNSI1JgAiYHP1J3A28AMAhvVHZVclA9CHU%3D; expires=Mon, 25-Nov-2024 20:13:49 GMT; Max-Age=7200; path=/; secure; HttpOnly"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": \"odgpBUyucKoz2iNamQ7woACyCjQndObsB99V40cI8O7DEzkCF01j78o2dIBPUdmq\"\n}"},{"id":"540d9c9b-cb4b-4b13-8a53-d0bf61aee80d","name":"Fetch Auth Key - Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"badkey\",\r\n    \"password\": \"*************\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/fetch_auth_key"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Nov 2024 18:18:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.23"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"Set-Cookie","value":"ci_session=CjYDOVFgUDwLcANzA2lcOlRsBDxYdwJzBzVUIlZ2AG9XO1RsBw4FbFhhAyEFO1N2WmBWZgxuUj8CKFY3ATxVMlRlAzIBM11rVm0CMABuBDMKbwM6UTJQMgs4A2UDMFw5VGsEMlhtAjIHZFRmVjIAN1c2VGEHZQU0WDUDIQU7U3ZaYFZkDGxSPwIoVj0BfFUIVGIDYgE2XSlWMAInACUEJgpsA3BRblA3CzoDOgNxXDpUawQ0WHsCMwdhVH9WNwA%2BV3pUNQdzBT5YdgM5BTFTNVpgVncMKVJ2Am9WJgFTVTZUZANjATxdL1Z3Am8AJQQ%2BCmUDMlFuUCQLWwNvAyBcf1QxBGdYOwJSByVUP1ZxAG9XOVRnB34FMlgrAzcFMlMrWmpWdwxnUnYCMFZlAT9VbVQhA2oBM10oViECCwA3BGcKIwNqUSJQbwt%2FA3kDcVwwVDUEPFhkAjcHY1RjVjAAM1dsVDUHYwU8WD4Dfg%3D%3D; expires=Mon, 25-Nov-2024 20:18:49 GMT; Max-Age=7200; path=/; secure; HttpOnly"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"data\": \"Invalid Authorization\"\n}"}],"_postman_id":"7f41453e-69dc-4f90-bc62-99084ba52fab"},{"name":"Verify Card","id":"5a5fc470-41b6-4108-ad90-389a1bc0737b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"","description":"<p>Auth token provided by Red Card, updated yearly</p>\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"card_number\": 123345456,\r\n    \"email\": \"testuser@yahoo.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/verify_card","description":"<p>Verify a certain card and associated user are both valid.<br /><strong>The email field is optional.</strong></p>\n","urlObject":{"protocol":"https","path":["external_api","verify_card"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"b9d688b3-7ece-4686-ab44-758ceb3dad9e","name":"Verify Card - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"card_number\": 123345456,\r\n    \"email\": \"testuser@yahoo.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/verify_card"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": \"Valid User Found\"\n}"},{"id":"77e53380-e119-4ac5-bdee-2de0514f6f11","name":"Verify Card - Error - Missing Card Number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"card_number\": 99923345456,\r\n    \"email\": \"testuser@yahoo.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/verify_card"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"data\": \"Card number doesn't exist\"\n}"}],"_postman_id":"5a5fc470-41b6-4108-ad90-389a1bc0737b"},{"name":"Get User Balance","id":"fc871c82-7929-4b59-9b7c-8cd82ef4c87c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"","description":"<p>Auth token provided by Red Card, updated yearly</p>\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\": \"210\",\r\n    \"card_number\": 123345456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/get_balance_for_user","description":"<p>Get the current users balance for a certain restaurant. The restaurant is required because some restaurants have limits on balance per transaction within the Red Card system.</p>\n","urlObject":{"protocol":"https","path":["external_api","get_balance_for_user"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"187e5311-2ae2-409d-a6cd-a9f02dc35d6f","name":"Get Balance - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\": \"210\",\r\n    \"card_number\": 123345456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/get_balance_for_user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"balance\": 1234\n    }\n}"},{"id":"d1a57c20-f31a-48af-98b3-37840ab7bc8d","name":"Get Balance - Error - Insufficient Funds","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\": \"210\",\r\n    \"card_number\": 123345456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/get_balance_for_user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"data\": \"Insufficient Funds\"\n}"},{"id":"b1c5e44f-24b7-4da2-9232-724029ed90e2","name":"Get Balance - Expired Key","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\": \"210\",\r\n    \"card_number\": 123345456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/get_balance_for_user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"data\": \"Expired Key\"\n}"},{"id":"49a96369-aadd-425b-a55e-e3ade074b83c","name":"Get Balance - Expired Key Copy","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\": \"210\",\r\n    \"card_number\": 123345456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/get_balance_for_user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:16:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"data\": \"Expired Key\"\n}"}],"_postman_id":"fc871c82-7929-4b59-9b7c-8cd82ef4c87c"},{"name":"Save Transaction","id":"dcf7daa4-fc28-42fb-ba4a-b824b01a7071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"","description":"<p>Auth token provided by Red Card, updated yearly</p>\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"210\",\r\n    \"transaction_id\":123123123,\r\n    \"card_number\":709212345678,\r\n    \"timestamp\": 1679059146,\r\n    \"amount\": 1725,\r\n    \"payload\": {\r\n        \"optional\": \"The 'payload' field is optional. JSON. Itemized transaction details for our internal transaction review.\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/save_transaction","description":"<p>Save a new Red Card transaction</p>\n","urlObject":{"protocol":"https","path":["external_api","save_transaction"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"2f0bb216-2261-4710-8222-743327117920","name":"Save Transaction - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"210\",\r\n    \"transaction_id\":123123123,\r\n    \"card_number\":709212345678,\r\n    \"timestamp\": 1679059146,\r\n    \"amount\": 1725,\r\n    \"payload\": {\r\n        \"data\": {\r\n            \"1\": \"Cheeseburger\",\r\n            \"2\": \"Fries\",\r\n            \"3\": \"Extra Ketchup\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/save_transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:00:50 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"redcard_transaction_id\": 3240884\n    }\n}"}],"_postman_id":"dcf7daa4-fc28-42fb-ba4a-b824b01a7071"},{"name":"Refund Transaction","id":"503c745f-381c-478c-a3a3-f5f468b4534b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"","description":"<p>Auth token provided by Red Card, updated yearly</p>\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"61048\",\r\n    \"redcard_transaction_id\": 3451236,\r\n    \"card_number\": 123123123,\r\n    \"refund_amount\": 450\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/refund_transaction","description":"<p>Refund a portion of a transaction. Checks will be performed to ensure the refund amount is valid.</p>\n","urlObject":{"protocol":"https","path":["external_api","refund_transaction"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"5bdc3e82-25d7-4272-8a50-9d8f38ad551a","name":"Refund Transaction - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"61048\",\r\n    \"redcard_transaction_id\": 3451236,\r\n    \"card_number\": 123123123,\r\n    \"refund_amount\": 450\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/refund_transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:08:31 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"redcard_transaction_id\": 3240884\n    }\n}"}],"_postman_id":"503c745f-381c-478c-a3a3-f5f468b4534b"},{"name":"Refund Transaction - External","id":"14016294-f365-491b-acde-2303e0c66e4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"","description":"<p>Auth token provided by Red Card, updated yearly</p>\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"61048\",\r\n    \"external_transaction_id\": 3451236,\r\n    \"card_number\": 123123123,\r\n    \"refund_amount\": 450\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/refund_transaction_external","description":"<p>Refund a portion of a transaction. Checks will be performed to ensure the refund amount is valid.</p>\n","urlObject":{"protocol":"https","path":["external_api","refund_transaction_external"],"host":["dev2-admin","redcardathletics","com"],"query":[],"variable":[]}},"response":[{"id":"89293708-db95-4ad4-9f77-537a2ee31ca6","name":"Refund Transaction - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"auth_token_here","description":"Instructions would be given to generate the auth-token.\n","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"restaurant_id\":\"61048\",\r\n    \"external_transaction_id\": 3451236,\r\n    \"card_number\": 123123123,\r\n    \"refund_amount\": 450\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dev2-admin.redcardathletics.com/external_api/refund_transaction_external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 18:08:31 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"1175"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"X-Powered-By","value":"PHP/7.4.3-4ubuntu2.19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"redcard_transaction_id\": 3240884\n    }\n}"}],"_postman_id":"14016294-f365-491b-acde-2303e0c66e4c"}]}