Capture
POST
/api/payment/captureComplete a transaction initiated by pre-authorization. Must be done within 6 days to ensure successful payment.
Request
Body Params application/x-www-form-urlencoded
Tid
string
required
Unique Easytransac transaction's identifier
<= 8 characters
Amount
number
optional
Amount to capture in cents, if different from the pre-authorization amount
Language
string
optional
Language of the potential bank errors returned
Signature
string
required
Signature to verify the integrity of the data sent
Responses
Response(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
Code
integer
optional
Example:
0
Signature
string
optional
Example:
1f51786246a940677afe71f6968972fd46500bd1
Result
object
optional
RequestId
string
optional
Example:
a1b2c3d4e5f6
Tid
string
optional
Example:
a1b2c3d4
Uid
string
optional
Example:
Abc123
OrderId
string
optional
Example:
Cde100
Status
string
optional
Example:
captured
Date
string
optional
Example:
2019-06-03 17:05:30
DateRefund
string
optional
Example:
2019-06-03 17:05:30
DateChargeback
string
optional
Example:
2019-06-03 17:05:30
DateRepresentment
string
optional
Example:
2019-06-03 17:05:30
Amount
string
optional
Example:
29.99
FixFees
string
optional
Example:
0.01
Message
string
optional
Example:
Payment was successful
3DSecure
string
optional
Example:
no
OneClick
string
optional
Example:
no
MultiplePayments
string
optional
Example:
no
Rebill
string
optional
Allowed values:
yesno
Example:
no
OriginalPaymentTid
string
optional
Example:
a1b2c3d4
Alias
string
optional
Example:
a1b2c3
Error
string
optional
Example:
Insufficient funds
AdditionalError
array[string]
optional
Example:
["Do not honor"]
Example
{
"Code": 0,
"Signature": "1f51786246a940677afe71f6968972fd46500bd1",
"Result": {
"RequestId": "a1b2c3d4e5f6",
"Tid": "a1b2c3d4",
"Uid": "Abc123",
"OrderId": "Cde100",
"Status": "captured",
"Date": "2019-06-03 17:05:30",
"DateRefund": "2019-06-03 17:05:30",
"DateChargeback": "2019-06-03 17:05:30",
"DateRepresentment": "2019-06-03 17:05:30",
"Amount": "29.99",
"FixFees": "0.01",
"Message": "Payment was successful",
"3DSecure": "no",
"OneClick": "no",
"MultiplePayments": "no",
"Rebill": "yes",
"OriginalPaymentTid": "a1b2c3d4",
"Alias": "a1b2c3",
"Error": "Insufficient funds",
"AdditionalError": [
"Do not honor"
]
}
}
Modified at 3 months ago