PAYMENTS
SIMPLIFIED


Offer all the payment features your
customers want with a fast integration
that limits your PCI scope.

GET STARTED

API Base URLs

  • Production Server

    For processing live transactions

    https://api.payjunction.com

  • Test Server

    For development

    https://api.payjunctionlabs.com

Most Commonly Referred to Articles

GET /invoices/{invoiceId}

Get the details of a specific invoice.

Example Request

curl https://api.payjunction.com/invoices/e321790e-c030-4501-aa99-09e35158c1a6 \
  -u "login:password" \
  -H "Accept:application/json" \
  -H "X-PJ-Application-Key: YOUR_PRODUCTION_APP_KEY"

Example Response

API version 2023-05-16 or above required to receive the surcharge object and fields in transaction response details. See how to use API versions here.

The surcharge fields are present only if the invoice status is PAID.
Click here for more information regarding surcharge.
{
  "amountBase": "10.00",
  "amountSurcharge": "0.30",
  "amountTotal": "10.30",
  "surcharge": {
    "percentage": 3.00000,
    "status": "APPLIED"
  },
  "completedAt": "2020-12-06T01:27:43Z",
  "created": "2020-12-06T01:26:37Z",
  "customerEmail": "fcoyle@payjunction.com",
  "customerFirstName": "Fra",
  "customerLastName": "Coyle",
  "hostedInvoiceUrl": "https://www.payjunction.com/trinity/invoice#/ab7d8e8f-db90-4b5a-a11e-201ac802a90d",
  "invoiceId": "ab7d8e8f-db90-4b5a-a11e-201ac802a90d",
  "lastModified": "2020-12-06T01:27:43Z",
  "status": "PAID",
  "terminalId" : 1,
  "transactionId": 10003
}