Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: stax-api Transaction API
version: '0.1'
servers:
- url: https://apiprod.fattlabs.com/
security:
- ApiKeyAuth: []
tags:
- name: Transaction
paths:
/transaction/{transactionid}/capture:
post:
summary: Capture a Pre-Auth Transaction
description: Captures funds from a pre-authorized transaction. This converts a pre-authorization into a completed charge.
operationId: capture-a-pre-auth-transaction
parameters:
- name: transactionid
in: path
schema:
type: string
required: true
requestBody:
content:
application/json:
schema:
type: object
properties:
total:
type: string
description: Amount that you would like to capture
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: "{\n \"id\": \"d4db6c3b-4a96-48b6-a08b-551326fada40\",\n \"invoice_id\": \"\",\n \"reference_id\": \"\",\n \"recurring_transaction_id\": \"\",\n \"auth_id\": null,\n \"type\": \"pre_auth\",\n \"source\": null,\n \"is_merchant_present\": true,\n \"merchant_id\": \"e7bcf7a6-ea72-4981-894d-73b41a690fa8\",\n \"user_id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"customer_id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"payment_method_id\": \"f096d9b4-c890-45af-9b47-3de0aa10e5d2\",\n \"is_manual\": null,\n \"success\": true,\n \"message\": null,\n \"meta\": {\n \"tax\": 2,\n \"subtotal\": 10\n },\n \"total\": 1,\n \"method\": \"card\",\n \"pre_auth\": true,\n \"is_captured\": 1,\n \"last_four\": \"1111\",\n \"interchange_code\": \"\",\n \"interchange_fee\": null,\n \"batch_id\": \"\",\n \"batched_at\": \"2018-03-20 13:27:19\",\n \"emv_response\": \"\",\n \"avs_response\": \"\",\n \"cvv_response\": \"\",\n \"pos_entry\": \"\",\n \"pos_salesperson\": \"\",\n \"receipt_email_at\": null,\n \"receipt_sms_at\": null,\n \"created_at\": \"2018-03-05 13:27:05\",\n \"updated_at\": \"2018-03-05 13:27:19\",\n \"total_refunded\": 0,\n \"is_refundable\": false,\n \"is_voided\": false,\n \"is_voidable\": false,\n \"schedule_id\": null,\n \"child_captures\": [\n {\n \"id\": \"936e3b88-6df1-4048-9d39-00469748008f\",\n \"invoice_id\": \"\",\n \"reference_id\": \"\",\n \"recurring_transaction_id\": \"\",\n \"auth_id\": \"d4db6c3b-4a96-48b6-a08b-551326fada40\",\n \"type\": \"capture\",\n \"source\": null,\n \"is_merchant_present\": true,\n \"merchant_id\": \"e7bcf7a6-ea72-4981-894d-73b41a690fa8\",\n \"user_id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"customer_id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"payment_method_id\": \"f096d9b4-c890-45af-9b47-3de0aa10e5d2\",\n \"is_manual\": null,\n \"success\": true,\n \"message\": null,\n \"meta\": {\n \"tax\": 2,\n \"subtotal\": 10\n },\n \"total\": 5,\n \"method\": \"card\",\n \"pre_auth\": false,\n \"is_captured\": 0,\n \"last_four\": \"1111\",\n \"interchange_code\": \"\",\n \"interchange_fee\": null,\n \"batch_id\": \"\",\n \"batched_at\": \"2018-03-20 13:27:18\",\n \"emv_response\": \"\",\n \"avs_response\": \"\",\n \"cvv_response\": \"\",\n \"pos_entry\": \"\",\n \"pos_salesperson\": \"\",\n \"receipt_email_at\": null,\n \"receipt_sms_at\": null,\n \"created_at\": \"2018-03-05 13:27:18\",\n \"updated_at\": \"2018-03-05 13:27:18\",\n \"total_refunded\": 0,\n \"is_refundable\": false,\n \"is_voided\": false,\n \"is_voidable\": true,\n \"currency\": \"USD\",\n \"schedule_id\": null,\n \"child_captures\": [],\n \"parent_auth\": null,\n \"customer\": {\n \"id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"firstname\": \"John\",\n \"lastname\": \"Smith\",\n \"company\": \"ABC INC\",\n \"email\": \"contact@example.com\",\n \"cc_emails\": [\n \"demo@abc.com\"\n ],\n \"cc_sms\": null,\n \"phone\": \"1234567898\",\n \"address_1\": \"123 Rite Way\",\n \"address_2\": \"Unit 12\",\n \"address_city\": \"Orlando\",\n \"address_state\": \"FL\",\n \"address_zip\": \"32801\",\n \"address_country\": \"USA\",\n \"notes\": null,\n \"reference\": \"BARTLE\",\n \"options\": \"\",\n \"created_at\": \"2018-03-02 16:20:06\",\n \"updated_at\": \"2018-03-02 16:20:06\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2\"\n },\n \"child_transactions\": [],\n \"files\": [],\n \"payment_method\": {\n \"id\": \"f096d9b4-c890-45af-9b47-3de0aa10e5d2\",\n \"customer_id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"merchant_id\": \"e7bcf7a6-ea72-4981-894d-73b41a690fa8\",\n \"user_id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"nickname\": \"VISA: Steven Smith Jr. (ending in: 1111)\",\n \"has_cvv\": 1,\n \"is_default\": 1,\n \"method\": \"card\",\n \"person_name\": \"Steven Smith Jr.\",\n \"card_type\": \"visa\",\n \"card_last_four\": \"1111\",\n \"card_exp\": \"042019\",\n \"bank_name\": null,\n \"bank_type\": null,\n \"bank_holder_type\": null,\n \"address_1\": null,\n \"address_2\": null,\n \"address_city\": null,\n \"address_state\": null,\n \"address_zip\": \"32944\",\n \"address_country\": \"USA\",\n \"purged_at\": null,\n \"deleted_at\": null,\n \"created_at\": \"2018-03-03 16:21:09\",\n \"updated_at\": \"2018-03-03 16:21:09\",\n \"card_exp_datetime\": \"2019-04-30 23:59:59\",\n \"customer\": {\n \"id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"firstname\": \"John\",\n \"lastname\": \"Smith\",\n \"company\": \"ABC INC\",\n \"email\": \"contact@example.com\",\n \"cc_emails\": [\n \"demo@abc.com\"\n ],\n \"cc_sms\": null,\n \"phone\": \"1234567898\",\n \"address_1\": \"123 Rite Way\",\n \"address_2\": \"Unit 12\",\n \"address_city\": \"Orlando\",\n \"address_state\": \"FL\",\n \"address_zip\": \"32801\",\n \"address_country\": \"USA\",\n \"notes\": null,\n \"reference\": \"BARTLE\",\n \"options\": \"\",\n \"created_at\": \"2018-03-03 16:20:06\",\n \"updated_at\": \"2018-03-03 16:20:06\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2\"\n }\n },\n \"user\": {\n \"id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"system_admin\": true,\n \"name\": \"Morty Junior\",\n \"email\": \"contact@example.com\",\n \"email_verification_sent_at\": \"2016-05-11 17:13:33\",\n \"email_verified_at\": \"2016-05-11 17:13:33\",\n \"is_api_key\": false,\n \"acknowledgments\": {\n \"tutorial\": true,\n \"signedApplication\": true,\n \"godviewWelcome\": true\n },\n \"created_at\": \"2016-05-18 14:11:46\",\n \"updated_at\": \"2018-03-05 20:26:20\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/772cbf95746d7da86789cc3634c46ba8\",\n \"team_admin\": null,\n \"team_enabled\": null,\n \"team_role\": null,\n \"merchant_options\": [],\n \"is_portal\": false\n }\n }\n ],\n \"parent_auth\": null,\n \"customer\": {\n \"id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"firstname\": \"John\",\n \"lastname\": \"Smith\",\n \"company\": \"ABC INC\",\n \"email\": \"contact@example.com\",\n \"cc_emails\": [\n \"demo@abc.com\"\n ],\n \"cc_sms\": null,\n \"phone\": \"1234567898\",\n \"address_1\": \"123 Rite Way\",\n \"address_2\": \"Unit 12\",\n \"address_city\": \"Orlando\",\n \"address_state\": \"FL\",\n \"address_zip\": \"32801\",\n \"address_country\": \"USA\",\n \"notes\": null,\n \"reference\": \"BARTLE\",\n \"options\": \"\",\n \"created_at\": \"2018-03-03 16:20:06\",\n \"updated_at\": \"2018-03-03 16:20:06\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2\"\n },\n \"child_transactions\": [],\n \"files\": [],\n \"payment_method\": {\n \"id\": \"f096d9b4-c890-45af-9b47-3de0aa10e5d2\",\n \"customer_id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"merchant_id\": \"e7bcf7a6-ea72-4981-894d-73b41a690fa8\",\n \"user_id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"nickname\": \"VISA: Steven Smith Jr. (ending in: 1111)\",\n \"has_cvv\": 1,\n \"is_default\": 1,\n \"method\": \"card\",\n \"person_name\": \"Steven Smith Jr.\",\n \"card_type\": \"visa\",\n \"card_last_four\": \"1111\",\n \"card_exp\": \"042019\",\n \"bank_name\": null,\n \"bank_type\": null,\n \"bank_holder_type\": null,\n \"address_1\": null,\n \"address_2\": null,\n \"address_city\": null,\n \"address_state\": null,\n \"address_zip\": \"32944\",\n \"address_country\": \"USA\",\n \"purged_at\": null,\n \"deleted_at\": null,\n \"created_at\": \"2018-03-03 16:21:09\",\n \"updated_at\": \"2018-03-03 16:21:09\",\n \"card_exp_datetime\": \"2019-04-30 23:59:59\",\n \"customer\": {\n \"id\": \"3a50862a-c2d5-47ae-8f49-d42afff8ee77\",\n \"firstname\": \"John\",\n \"lastname\": \"Smith\",\n \"company\": \"ABC INC\",\n \"email\": \"contact@example.com\",\n \"cc_emails\": [\n \"demo@abc.com\"\n ],\n \"cc_sms\": null,\n \"phone\": \"1234567898\",\n \"address_1\": \"123 Rite Way\",\n \"address_2\": \"Unit 12\",\n \"address_city\": \"Orlando\",\n \"address_state\": \"FL\",\n \"address_zip\": \"32801\",\n \"address_country\": \"USA\",\n \"notes\": null,\n \"reference\": \"BARTLE\",\n \"options\": \"\",\n \"created_at\": \"2018-03-03 16:20:06\",\n \"updated_at\": \"2018-03-03 16:20:06\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2\"\n }\n },\n \"user\": {\n \"id\": \"2d089742-6aca-462d-8db3-c2966e1f9e68\",\n \"system_admin\": true,\n \"name\": \"Morty Junior\",\n \"email\": \"contact@example.com\",\n \"email_verification_sent_at\": \"2016-05-11 17:13:33\",\n \"email_verified_at\": \"2016-05-11 17:13:33\",\n \"is_api_key\": false,\n \"acknowledgments\": {\n \"tutorial\": true,\n \"signedApplication\": true,\n \"godviewWelcome\": true\n },\n \"created_at\": \"2016-05-18 14:11:46\",\n \"updated_at\": \"2018-03-05 20:26:20\",\n \"deleted_at\": null,\n \"gravatar\": \"//www.gravatar.com/avatar/772cbf95746d7da86789cc3634c46ba8\",\n \"team_admin\": null,\n \"team_enabled\": null,\n \"team_role\": null,\n \"merchant_options\": [],\n \"is_portal\": false\n }\n}"
schema:
type: object
properties:
id:
type: string
example: d4db6c3b-4a96-48b6-a08b-551326fada40
invoice_id:
type: string
example: ''
reference_id:
type: string
example: ''
recurring_transaction_id:
type: string
example: ''
auth_id: {}
type:
type: string
example: pre_auth
source: {}
is_merchant_present:
type: boolean
example: true
default: true
merchant_id:
type: string
example: e7bcf7a6-ea72-4981-894d-73b41a690fa8
user_id:
type: string
example: 2d089742-6aca-462d-8db3-c2966e1f9e68
customer_id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
payment_method_id:
type: string
example: f096d9b4-c890-45af-9b47-3de0aa10e5d2
is_manual: {}
success:
type: boolean
example: true
default: true
message: {}
meta:
type: object
properties:
tax:
type: integer
example: 2
default: 0
subtotal:
type: integer
example: 10
default: 0
total:
type: integer
example: 1
default: 0
method:
type: string
example: card
pre_auth:
type: boolean
example: true
default: true
is_captured:
type: integer
example: 1
default: 0
last_four:
type: string
example: '1111'
interchange_code:
type: string
example: ''
interchange_fee: {}
batch_id:
type: string
example: ''
batched_at:
type: string
example: '2018-03-20 13:27:19'
emv_response:
type: string
example: ''
avs_response:
type: string
example: ''
cvv_response:
type: string
example: ''
pos_entry:
type: string
example: ''
pos_salesperson:
type: string
example: ''
receipt_email_at: {}
receipt_sms_at: {}
created_at:
type: string
example: '2018-03-05 13:27:05'
updated_at:
type: string
example: '2018-03-05 13:27:19'
total_refunded:
type: integer
example: 0
default: 0
is_refundable:
type: boolean
example: false
default: true
is_voided:
type: boolean
example: false
default: true
is_voidable:
type: boolean
example: false
default: true
schedule_id: {}
child_captures:
type: array
items:
type: object
properties:
id:
type: string
example: 936e3b88-6df1-4048-9d39-00469748008f
invoice_id:
type: string
example: ''
reference_id:
type: string
example: ''
recurring_transaction_id:
type: string
example: ''
auth_id:
type: string
example: d4db6c3b-4a96-48b6-a08b-551326fada40
type:
type: string
example: capture
source: {}
is_merchant_present:
type: boolean
example: true
default: true
merchant_id:
type: string
example: e7bcf7a6-ea72-4981-894d-73b41a690fa8
user_id:
type: string
example: 2d089742-6aca-462d-8db3-c2966e1f9e68
customer_id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
payment_method_id:
type: string
example: f096d9b4-c890-45af-9b47-3de0aa10e5d2
is_manual: {}
success:
type: boolean
example: true
default: true
message: {}
meta:
type: object
properties:
tax:
type: integer
example: 2
default: 0
subtotal:
type: integer
example: 10
default: 0
total:
type: integer
example: 5
default: 0
method:
type: string
example: card
pre_auth:
type: boolean
example: false
default: true
is_captured:
type: integer
example: 0
default: 0
last_four:
type: string
example: '1111'
interchange_code:
type: string
example: ''
interchange_fee: {}
batch_id:
type: string
example: ''
batched_at:
type: string
example: '2018-03-20 13:27:18'
emv_response:
type: string
example: ''
avs_response:
type: string
example: ''
cvv_response:
type: string
example: ''
pos_entry:
type: string
example: ''
pos_salesperson:
type: string
example: ''
receipt_email_at: {}
receipt_sms_at: {}
created_at:
type: string
example: '2018-03-05 13:27:18'
updated_at:
type: string
example: '2018-03-05 13:27:18'
total_refunded:
type: integer
example: 0
default: 0
is_refundable:
type: boolean
example: false
default: true
is_voided:
type: boolean
example: false
default: true
is_voidable:
type: boolean
example: true
default: true
currency:
type: string
example: USD
schedule_id: {}
child_captures:
type: array
parent_auth: {}
customer:
type: object
properties:
id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
firstname:
type: string
example: John
lastname:
type: string
example: Smith
company:
type: string
example: ABC INC
email:
type: string
example: contact@example.com
cc_emails:
type: array
items:
type: string
example: demo@abc.com
cc_sms: {}
phone:
type: string
example: '1234567898'
address_1:
type: string
example: 123 Rite Way
address_2:
type: string
example: Unit 12
address_city:
type: string
example: Orlando
address_state:
type: string
example: FL
address_zip:
type: string
example: '32801'
address_country:
type: string
example: USA
notes: {}
reference:
type: string
example: BARTLE
options:
type: string
example: ''
created_at:
type: string
example: '2018-03-02 16:20:06'
updated_at:
type: string
example: '2018-03-02 16:20:06'
deleted_at: {}
gravatar:
type: string
example: //www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2
child_transactions:
type: array
files:
type: array
payment_method:
type: object
properties:
id:
type: string
example: f096d9b4-c890-45af-9b47-3de0aa10e5d2
customer_id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
merchant_id:
type: string
example: e7bcf7a6-ea72-4981-894d-73b41a690fa8
user_id:
type: string
example: 2d089742-6aca-462d-8db3-c2966e1f9e68
nickname:
type: string
example: 'VISA: Steven Smith Jr. (ending in: 1111)'
has_cvv:
type: integer
example: 1
default: 0
is_default:
type: integer
example: 1
default: 0
method:
type: string
example: card
person_name:
type: string
example: Steven Smith Jr.
card_type:
type: string
example: visa
card_last_four:
type: string
example: '1111'
card_exp:
type: string
example: 042019
bank_name: {}
bank_type: {}
bank_holder_type: {}
address_1: {}
address_2: {}
address_city: {}
address_state: {}
address_zip:
type: string
example: '32944'
address_country:
type: string
example: USA
purged_at: {}
deleted_at: {}
created_at:
type: string
example: '2018-03-03 16:21:09'
updated_at:
type: string
example: '2018-03-03 16:21:09'
card_exp_datetime:
type: string
example: '2019-04-30 23:59:59'
customer:
type: object
properties:
id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
firstname:
type: string
example: John
lastname:
type: string
example: Smith
company:
type: string
example: ABC INC
email:
type: string
example: contact@example.com
cc_emails:
type: array
items:
type: string
example: demo@abc.com
cc_sms: {}
phone:
type: string
example: '1234567898'
address_1:
type: string
example: 123 Rite Way
address_2:
type: string
example: Unit 12
address_city:
type: string
example: Orlando
address_state:
type: string
example: FL
address_zip:
type: string
example: '32801'
address_country:
type: string
example: USA
notes: {}
reference:
type: string
example: BARTLE
options:
type: string
example: ''
created_at:
type: string
example: '2018-03-03 16:20:06'
updated_at:
type: string
example: '2018-03-03 16:20:06'
deleted_at: {}
gravatar:
type: string
example: //www.gravatar.com/avatar/45357c125af15b6df8864a71a653bea2
user:
type: object
properties:
id:
type: string
example: 2d089742-6aca-462d-8db3-c2966e1f9e68
system_admin:
type: boolean
example: true
default: true
name:
type: string
example: Morty Junior
email:
type: string
example: contact@example.com
email_verification_sent_at:
type: string
example: '2016-05-11 17:13:33'
email_verified_at:
type: string
example: '2016-05-11 17:13:33'
is_api_key:
type: boolean
example: false
default: true
acknowledgments:
type: object
properties:
tutorial:
type: boolean
example: true
default: true
signedApplication:
type: boolean
example: true
default: true
godviewWelcome:
type: boolean
example: true
default: true
created_at:
type: string
example: '2016-05-18 14:11:46'
updated_at:
type: string
example: '2018-03-05 20:26:20'
deleted_at: {}
gravatar:
type: string
example: //www.gravatar.com/avatar/772cbf95746d7da86789cc3634c46ba8
team_admin: {}
team_enabled: {}
team_role: {}
merchant_options:
type: array
is_portal:
type: boolean
example: false
default: true
parent_auth: {}
customer:
type: object
properties:
id:
type: string
example: 3a50862a-c2d5-47ae-8f49-d42afff8ee77
f
# --- truncated at 32 KB (256 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/stax/refs/heads/main/openapi/stax-transaction-api-openapi.yml