Charge a Credit Card
An Authorization and Capture Transaction ensures that credit account is open, in good standing, and has sufficient funds to complete the submitted transaction.
Charge a Credit Card with all fields
Example Request:
{
"market_code": "M",
"amount":"12.12",
"method":"CC",
"type":2,
"nonce":{{$timestamp}},
"client_ip": "106.51.74.202",
"card":{
"number":"4111111111111111",
"expiration_date":"0421",
"code":"123"
},
"Customer": {
"first_name": "Oscar",
"last_name": "Brady",
"street_1": "55",
"street_2": "Airport Drive",
"city": "Pensacola",
"state": "FL",
"zip": "32503",
"country": "US",
"phone_number": "2025550197",
"company": "Ferry Group",
"customer_id": "AUTO",
"invoice_number": null,
"email": "oscar@brady.com",
"email_receipt": "YES",
"notes": "Sample Test ",
"action_code": "1"
}
}
Example Response:
{
"transaction_response": {
"result_code": 1,
"result_sub_code": "000",
"result_text": "APPROVAL",
"transaction_id": "1038540",
"transaction_uid": "babbf741-fa46-4f74-a57d-b5731b959f78",
"transaction_datetime": "20200921T095852Z",
"account_type": "VI",
"account_last_4": "1111",
"amount": "12.12",
"approved_amount": "12.12",
"method": "CC",
"auth_code": "OK5834",
"avs_result_code": "Y",
"code_result": "",
"type": "2",
"expiration_date": "0421",
"token": "2742756405581111",
"emv": "",
"emv_tag_data": "",
"entry_mode": ""
},
"nonce": "1600682329",
"test": "0",
"customer_response": {
"result_code": 1,
"result_text": "SUCCESS",
"result_sub_code": "000",
"transaction_datetime": "20200921T095857Z",
"token": "2742756405581111",
"account_type": "VI",
"account_last_4": "1111",
"expiration_date": "0421"
},
"customer": {
"first_name": "Oscar",
"last_name": "Brady",
"street_1": "55",
"street_2": "Airport Drive",
"city": "Pensacola",
"state": "FL",
"zip": "32503",
"country": "US",
"phone_number": "2025550197",
"company": "Ferry Group",
"customer_id": "1000278",
"email": "oscar@brady.com",
"email_receipt": "YES",
"notes": "Sample Test ",
"action_code": "1"
},
"card_info": {
"card_class": "",
"product_id": "",
"prepaid_indicator": "",
"detailcard_indicator": "",
"debitnetwork_indicator": ""
}
}
Charge a Credit Card with Required Fields
Example Request:
{
"amount":"12.12",
"method":"CC",
"type":2,
"nonce":{{$timestamp}},
"card":{
"number":"4111111111111111",
"expiration_date":"0421",
"code":"123"
}
}
Example Response:
{
"transaction_response": {
"result_code": 1,
"result_sub_code": "000",
"result_text": "APPROVAL",
"transaction_id": "1038541",
"transaction_uid": "36276257-6f74-442a-8b35-3f1215213784",
"transaction_datetime": "20200921T095945Z",
"account_type": "VI",
"account_last_4": "1111",
"amount": "12.12",
"approved_amount": "12.12",
"method": "CC",
"auth_code": "OK6184",
"avs_result_code": "",
"code_result": "",
"type": "2",
"expiration_date": "0421",
"token": "2742756405581111",
"emv": "",
"emv_tag_data": "",
"entry_mode": ""
},
"nonce": "1600682383",
"test": "0",
"customer": {
"first_name": "",
"last_name": "",
"street_1": "",
"street_2": "",
"city": "",
"state": "",
"zip": "",
"country": "",
"phone_number": "",
"company": "",
"customer_id": "",
"email": "",
"email_receipt": "",
"notes": "",
"action_code": ""
},
"card_info": {
"card_class": "",
"product_id": "",
"prepaid_indicator": "",
"detailcard_indicator": "",
"debitnetwork_indicator": ""
}
}
Charge with Token
Example Request:
{
"market_code": "M",
"amount":"12.12",
"method":"CC",
"type":2,
"nonce":{{$timestamp}},
"client_ip": "106.51.74.202",
"card":{
"token":"73210ed97edf404883823dc6e37107a1"
},
"Customer": {
"first_name": "Oscar",
"last_name": "Brady",
"street_1": "55",
"street_2": "Airport Drive",
"city": "Pensacola",
"state": "FL",
"zip": "32503",
"country": "US",
"phone_number": "2025550197",
"company": "Ferry Group",
"customer_id": "AUTO",
"invoice_number": null,
"email": "oscar@brady.com",
"email_receipt": "YES",
"notes": "Sample Test ",
"action_code": "1"
}
}
Example Response:
{
"transaction_response": {
"result_code": 1,
"result_sub_code": "000",
"result_text": "APPROVAL",
"transaction_id": "1038542",
"transaction_uid": "8c1e4e80-9dd9-4d9b-9ee3-483e3efc227a",
"transaction_datetime": "20200921T100043Z",
"account_type": "VI",
"account_last_4": "0184",
"amount": "12.12",
"approved_amount": "12.12",
"method": "CC",
"auth_code": "OK6514",
"avs_result_code": "Y",
"code_result": "",
"type": "2",
"expiration_date": "0421",
"token": "73210ed97edf404883823dc6e37107a1",
"emv": "",
"emv_tag_data": "",
"entry_mode": ""
},
"nonce": "1600682441",
"test": "0",
"customer_response": {
"result_code": 1,
"result_text": "SUCCESS",
"result_sub_code": "000",
"transaction_datetime": "20200921T100049Z",
"token": "73210ed97edf404883823dc6e37107a1",
"account_type": "VI",
"account_last_4": "0184",
"expiration_date": "0421"
},
"customer": {
"first_name": "Oscar",
"last_name": "Brady",
"street_1": "55",
"street_2": "Airport Drive",
"city": "Pensacola",
"state": "FL",
"zip": "32503",
"country": "US",
"phone_number": "2025550197",
"company": "Ferry Group",
"customer_id": "1000279",
"email": "oscar@brady.com",
"email_receipt": "YES",
"notes": "Sample Test ",
"action_code": "1"
},
"card_info": {
"card_class": "",
"product_id": "",
"prepaid_indicator": "",
"detailcard_indicator": "",
"debitnetwork_indicator": ""
}
}