Receipt

Generate a transaction receipt

post

Use this call to request receipt details in HTML format for a particular TXID (Transaction ID). This method works for card on file documents as well as transaction receipts. You will need the TXID (Transaction ID) as well as a receipt type and a targeted recipient ( Customer or Merchant ).

The following will provide a customer receipt for TXID 123: { "REFID": 123, "ReceiptType": 1 (Sales Receipt) "Recipient": 1 (Customer Copy) }

Recipient 1 Merchant 2 Customer 3 Both

Receipt Types 1 Transaction 2 Void 3 Refund 4 Annual Consent 5 Recurring Consent 6 Subscription 7 ACH Transaction 8 ACH Void 9 ACH Refund

Important you must replace all Unicode characters to consume clean HTML

Example : CleanHtml = Regex.Replace(my, @"[^\u0000-\u007F]+", string.Empty);

Header parameters
SessKeystringRequired

A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.

Example: A1842D663E9A4A72XXXXXXXX303541303234373138
Content-TypestringRequiredExample: application/json
AcceptstringRequiredExample: application/json
Body
REFIDintegerOptional

The unique reference identifier for the transaction

Example: 158
ReceiptTypeinteger · enumOptional

The type of receipt

  • 1: Transaction
  • 2: Void
  • 3: Refund
  • 4: Annual Consent
  • 5: Recurring Consent
  • 6: Subscription
  • 7: ACH Transaction
  • 8: ACH Void
  • 9: ACH Refund
Example: 2Possible values:
Recipientinteger · enumOptional

The targeted recipient type

  • 1: Merchant
  • 2: Customer
  • 3: Both
Example: 1Possible values:
Responses
200
Successfully generated transaction receipt
application/json
post
POST /APIcardProcREST/v1.0.0/Receipt/ReceiptGenerate HTTP/1.1
Host: easypay5.com
SessKey: A1842D663E9A4A72XXXXXXXX303541303234373138
Content-Type: application/json
Accept: application/json
Content-Length: 43

{
  "REFID": 158,
  "ReceiptType": 1,
  "Recipient": 1
}
200

Successfully generated transaction receipt

{
  "ReceiptGenerateResult": {
    "ErrCode": 0,
    "ErrMsg": "",
    "FunctionOk": true,
    "ReceiptHtml": "html",
    "RespMsg": "Successfully Returned Transaction Receipt Markup"
  }
}

Last updated

Was this helpful?