createCapture
MUTATIONThis mutation will capture an authorization for a merchant.
Arguments
merchant_uidRequired
The Pay Theory unique identifier assigned to the merchant that the authorization belongs to.
authorization_idRequired
The Pay Theory unique identifier assigned to the authorization that you are looking to capture.
amountRequired
The amount of the capture in cents. If auth has a feemode of SERVICEFEE this amount would be the amount without the fee included.
fee
The amount of the service fee in cents. Required if you are capturing an auth that has a feemode of SERVICEFEE.
send_receipt
Can be set to true to send a receipt to the payor.
receipt_description
A custom description that will be displayed on the receipt.
allow_reauth
Whether to allow the capture to be reauthorized in the case that it is expired. If this is set to true Pay Theory will reauthorize the capture if it is expired. If this is set to false or left blank, the capture will fail if it is expired.
allow_exceeded_amount
Whether to allow the capture to exceed the amount of the authorization. If this is set to true Pay Theory will release the hold on the current auth and create a new auth for the amount of the capture. If this is set to false or left blank, the capture will fail if the amount is greater than the amount of the authorization.
split
An array of split objects to distribute the transaction amount to different accounts. The sum of all split amounts must equal the transaction amount.
Response
Transaction
account_code
Customer defined account code for the transaction.
ach_return_details
The details of the ACH return if any.
additional_purchase_data
The additional purchase data.
authorization_id
The authorization id for the transaction.
avs_status
The AVS status for the transaction.
Values
NO_MATCHPOSTAL_CODE_AND_STREET_MATCHPOSTAL_CODE_MATCHSTREET_MATCHUNKNOWN
currency
The type of currency for the transaction.
device_id
-
dispute_status
The status of the dispute if any.
Values
INQUIRYLOSTPENDINGWON
failure_reasons
List of strings, if any, detailing the reason a transaction failed. See Failure Codes for a complete list of failure codes and descriptions.
fee_mode
The fee mode on the transaction.
Values
CUSTOM_FEEINTERCHANGEMERCHANT_FEESERVICE_FEE
fees
The amount of the fees charged for the transaction.
flag_for_review
A status indiciator for any transactions that are in review. When a transaction is in review the funds will not settle to the merchant until resolved.
Values
EXCEEDS_AUTHEXCEEDS_FEE_LIMITEXCEEDS_THRESHOLDPOTENTIAL_DUPLICATE
gross_amount
The total amount of the transaction.
invoice
The invoice object for the transaction if any.
is_settled
Whether the transaction has been settled.
merchant
The merchant object of the merchant the transaction belongs to.
merchant_uid
The Pay Theory unique identifier for the merchant the transaction is for.
metadata
Custom defined JSON object to be stored with the transaction.
net_amount
The total amount of the transaction after fees.
parent_id
The Pay Theory unique identifier for the parent transaction if any.
payment_method
The payment method used to make the transaction.
processor
-
recurring
The recurring payment that the transaction belongs to if any.
reference
Customer defined reference for the transaction.
refund_reason
The reason for the refund if any.
refund_voidable
Whether the refund can be voided.
refunded_amount
The amount of the transaction that has been refunded if any.
sale_id
The sale id for the transaction if any.
settlement_batch
The unique settlement batch number the transaction belongs to if settled.
splits
An array of split objects associated with this transaction, if any.
status
The status of the transaction.
Values
CANCELEDFAILEDPARTIALLY_REFUNDEDPENDINGREFUNDEDRETURNEDSETTLEDSUCCEEDEDVOIDED
timezone
The timezone the transaction was made in.
transaction_date
The date the transaction was made.
transaction_id
The Pay Theory unique identifier for the transaction.
transaction_type
The type of transfer that was made.
Values
ACH_RETURNDEBITFAILUREREVERSAL
updated_row_at
The date and time the transaction was last updated.