Loading...
Important: You must include the required HTTPS headers in each request. The HTTP method for each request is included in each endpoint table. For more information about what to include in your HTTPS headers, see Authenticating Your Requests.
To take a dollar amount from a customer’s checking account, send a CreateCheckSale request to the relevant endpoint.
Program your POS to send a CreateCheckSale request to the relevant endpoint.
Note: It takes 7-10 days for checking account transactions to clear.
Program the POS to send a CreateSale request to the relevant endpoint.
| Scenario | Merchant uses the POS to: |
|---|---|
| A customer wants to purchase goods. | Take a dollar amount from the customer's account. |
Payment sources: Keyed
reference_id that you create in your request. To run follow-on transactions that link to the original transaction, you must include the reference_id as part of the endpoint URL.create_token field in your request.Content-Type: application/json
Authorization: AuthToken {AuthTokenV2}
X-GP-Request-Id: {request_id}
X-GP-Version: 2021-04-08
X-GP-Api-Key: {API Key}
X-GP-Partner-App-Name: {Name of integrating application}
{
"reference_id": "MER-41e40db1-02c8-4214-b2c8-1399aea79afa",
"check": {
"account_type": "Checking",
"account_number": "001221111221",
"routing_number": "026009593"
},
"customer": {
"first_name": "Joe",
"last_name": "Doe"
},
"payment": {
"amount": "23.09",
"currency_code": "840"
},
"transaction": {
"country_code": "840",
"entry_class": "WEB"
}
}{
"checksale_id": "000000084343",
"status": "check_submitted",
"check": {
"masked_account_number": "X2121",
"routing_number": "112000066",
"check_number": "999000000084343",
"token": "qh5gnKAp2m"
},
"payment": {
"amount": "3.94",
"currency_code": "840",
"type": "check"
},
"transaction": {
"entry_class": "PPD",
"language": "en-US"
},
"links": [
{
"checksale_id": [
{
"href": "https://api.pit.paygateway.com/transactions/checksales/000000084343",
"relation": "self",
"method": "GET",
"description": "Use this endpoint to retrieve a check sales transaction."
},
{
"href": "https://api.pit.paygateway.com/transactions/checksales/000000084343/checkrefunds",
"relation": "refund",
"method": "POST",
"description": "Use this endpoint to create a check refunds transaction associated with a prior check sale using checksale id."
}
]
},
{
"reference_id": [
{
"href": "https://api.pit.paygateway.com/transactions/checksales/reference_id/MER-5837dbb6-b6a2-444c-bcf3-b7fad889e2cf",
"relation": "self",
"method": "GET",
"description": "Use this endpoint to retrieve a check sales transaction using reference_id."
},
{
"href": "https://api.pit.paygateway.com/transactions/checksales/reference_id/MER-5837dbb6-b6a2-444c-bcf3-b7fad889e2cf/checkrefunds",
"relation": "refund",
"method": "POST",
"description": "Use this endpoint to create a check refund transaction associated with a prior check sale using reference id."
}
]
}
],
"reference_id": "MER-5837dbb6-b6a2-444c-bcf3-b7fad889e2cf"
}