Restaurant Transaction Processing

To pass qualifying restaurant transactions the following additional values will need to be passed in with an API request:

  • restaurant_server_id (must be a numeric value)
  • restaurant_gratuity

Here is an AUTHORIZATION transaction example making use of the restaurant_server_id:

curl --request POST \
  --url https://cert.payconex.net/api/qsapi/3.8 \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --cookie BLUEFINA=rd4o00000000000000000000ffffac128117o443 \
  --data account_id=220614966801 \
  --data api_accesskey=32d42f0f0b6c89616d42aed8c96801e6 \
  --data tender_type=CARD \
  --data transaction_type=AUTHORIZATION \
  --data transaction_amount=10 \
  --data response_format=JSON \
  --data card_number=4124939999999990 \
  --data card_expiration=1230 \
  --data card_verification=456 \
  --data restaurant_server_id=123

This example is a followup transaction to CAPTURE the previous authorization with the restaurant_gratuity parameter.

curl --request POST \
  --url https://cert.payconex.net/api/qsapi/3.8 \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --cookie BLUEFINA=rd4o00000000000000000000ffffac128117o443 \
  --data account_id=220614966801 \
  --data api_accesskey=32d42f0f0b6c89616d42aed8c96801e6 \
  --data transaction_type=CAPTURE \
  --data transaction_amount=12 \
  --data response_format=JSON \
  --data token_id=000000101861 \
  --data restaurant_server_id=123 \
  --data restaurant_gratuity=2

🚧

Note

The value of restaurant_gratuity passed in a transaction is NOT added to the total value of your sale, it is INCLUDED in the total sent. For example, if you authorize for $10, and your customer adds a $2 tip, you must pass in a sale value of $12, and state that $2 of that total value is intended for restaurant gratuity.


Did this page help you?