GET /payrequests

GET /api/paymentengine/payrequests/:requestkey:

Gets the status of a pay requestkey.

Request Parameters

None.

Example Request

curl --basic --user APIKEY:PINHASH \
 https://www-stage.EBizCharge.com/api/v2/paymentengine/payrequests/pr_TJtcst4SfmEbztWk6V4RmJL5HKMLO

Response


Variable Description
key Request key
expiration The expiration is the date/time the request will expire and no longer be valid.
status The status of the request, values are: pending, transaction complete, and canceled.
transaction Once the transaction has been processed, a transaction object will be added to the result.

Example Responses

Pending Payment

{
  "type": "request",
  "key": "pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
  "expiration": "2016-07-08 16:40:48",
  "status": "pending"
}

Payment Approved (with tokenization)

{
  "type":"request",
  "key":"pr_TJtcst4SfmEbztWk6V4RmJL5HKMLO",
  "status":"transaction complete",
  "transaction":{
    "type":"transaction",
    "key":"xxxxxxxx",
    "refnum":"1310862646",
    "is_duplicate":"N",
    "result_code":"A",
    "result":"Approved",
    "authcode":"128465",
    "error":"Approved",
    "error_code":"00000",
    "iccdata":"",
    "proc_refnum":"",
    "auth_amount":"8.88",
    "avs":{
      "result_code":"YYY",
      "result":"Address: Match & 5 Digit Zip: Match"
    },
    "cvc":{
      "result_code":"P",
      "result":"Not Processed"
    },
    "token":"tf3z-mcuq-dl34-8py0",
    "creditcard":{
      "number":"XXXXXXXXXXXX0026",
      "type":"Visa"
    }
  }
}