payment-gateway
Authorize Transaction
Authorizes a credit card for capture at a later time. An authorized transaction will continue to be open until it expires or a capture message is received. Authorizations are automatically voided if they are not captured within 28 days, although most issuing banks will release the hold after 24 hours in retail environments or 7 days in card not present environments.
post/auth
Request body
Example request
{
"amt_convenience_fee": 2,
"amt_fbo": 1.5,
"amt_tax": 93.5,
"amt_tran": 1193.5,
"amt_tran_fee": 2.35,
"auth_code": "620376",
"avs_address": "123 Main St",
"avs_zip": "94402",
"card_id": "86e1b00d9b0811e68df3069d8f743581",
"card_number": "4111111111111111",
"card_swipe": ";4111111111111111=08051010912345678901?8",
"cardholder_name": "JOHN CUSTOMER",
"cavv_3ds": "ASNFZ4kBI0VniQEjRWeJASNFZ4k=",
"client_ip": "10.1.1.4",
"customer": {
"billing_addr1": "123 Main Street",
"billing_addr2": "Suite #1234",
"billing_city": "San Mateo",
"billing_country": "USA",
"billing_country_code": "840",
"billing_state": "CA",
"billing_zip": "94402",
"billing_zip4": "1234",
"customer_email": "jsmith@somewhere.com",
"customer_firm_name": "Qualpay",
"customer_first_name": "Joe",
"customer_last_name": "Smith",
"customer_phone": "6503885200",
"shipping_addresses": [
{
"primary": true,
"shipping_addr1": "1234 Main Street",
"shipping_addr2": "Ste 123",
"shipping_city": "San Mateo",
"shipping_country": "USA",
"shipping_country_code": "840",
"shipping_firm_name": "Qualpay",
"shipping_first_name": "Joe",
"shipping_last_name": "Smith",
"shipping_state": "CA",
"shipping_zip": "94402",
"shipping_zip4": "1234"
}
]
},
"customer_code": "PO # abc123",
"customer_email": "testme@qualpay.com",
"customer_id": "JOECUSTOMER_12",
"cvv2": "152",
"dba_name": "SHOE CO",
"dba_suffix": "END PROMO",
"dda_number": "3456776866",
"developer_id": "QualpayV1.2",
"duplicate_seconds": 300,
"echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
"email_address": [
"jdoe@qualpay.com",
"john.doe@qualpay.com"
],
"email_receipt": true,
"emv_tran_id": "ASNFZ4nwEjR1We3I85BI70V9nifASNFZ4jwHyL0U=",
"exp_date": "0921",
"fbo_id": 999000000001,
"line_items": "[{\"quantity\": \"1\",\"description\": \"Traffic Cones\", \"unit_of_measure\": \"each\", \"product_code\": \"SKU-123\", \"debit_credit_ind\": \"D\", \"unit_cost\": \"14.99\"},{\"quantity\": \"3\", \"description\": \"Spray Paint\", \"unit_of_measure\": \"EA\", \"product_code\": \"SKU-456\", \"debit_credit_ind\": \"D\", \"unit_cost\": \"5.00\"}]",
"loc_id": "0001",
"mc_ucaf_data": "ASNFZ4nwEjRWeI8BI0VnifASNFZ4jwHyL0U=",
"mc_ucaf_ind": "2",
"merch_ref_num": "ITEM 16126 Purchased 12-15-2016",
"moto_ecomm_ind": "1",
"partial_auth": true,
"payload_apple_pay": "xxxxxxx",
"payload_google_pay": "xxxxxxx",
"pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
"profile_id": "21200001000300000978",
"purchase_id": "55-1212",
"report_data": "[ {\"shipping address\" : \"123 Main St.\"},{\"shipping city, state zip\" : \"San Mateo, CA 94402\"} ]",
"retry_attempt": 1,
"retry_id": 1234,
"subscription_id": 1234,
"tokenize": true,
"tr_number": "011111111",
"tran_currency": 840,
"type_id": "S",
"vendor_id": 212100026512,
"xid_3ds": "ASNFZ4kBI0VniQEjRWeJASNFZ4k="
}Response
Success
Example response
{
"amt_tran": 62.87,
"auth_avs_result": "X",
"auth_code": "T37500",
"auth_cvv2_result": "M",
"card_id": "86e1b00d9b0811e68df3069d8f743581",
"echo_fields": "[ {\"product\" : \"lawnmower\"},{\"purchase\" : \"1 yr maintenance\"} ]",
"merchant_advice_code": "M001",
"pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
"rcode": "000",
"rmsg": "Approved T37500"
}