Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field

Description

Example

status

Contains status information about the order:

Status codes:

  • Unpaid = 0

  • Paid = 1

  • Cancelled = 2

  • Overdue = 3

  • Expired = 4

  • Amortized = 5

  • Unconfirmed = 6

“status” : 1

maskedCard

Contains masked credit card number.

This will only appear if the payment was credit card payment.

“maskedCard” : “XXXX-XXXX-XXXX-1309“

cardType

Credit card type

This will only appear if the payment was credit card payment.

“cardType” : “Visa”

authorizationCode

The authorization code for the payment made with credit card.

This will only appear if the payment was credit card payment.

“authorizationCode” : “429136”

refundedAmount

Refunded amount on a order.

“refundedAmount” : 1000.0

cardActionResult

Section with information from credit card acuirer

"cardActionResult": {
        "acquirerStatusCode": "51-I",
        "acquirerMessage": "Do not honor. ..."
 }

...

Code Block
languagejson
{
  "orderId": "i3T0OBxiwjY33tYU43V5o0amXqFTZAllxZ",
  "purchaseId": 17455210,
  "merchantId": 4,
  "merchantName": "1Greidslumidlun ehf.",
  "merchantParentCompanyName": "Greidslumidlun ehf.",
  "buyer": {
    "name": "Some Name",
    "ssn": "xxxxxxxx",
    "email": "SomeEmail@pei.is",
    "mobileNumber": "xxxxxx"
  },
  "amount": 1200000.0,
  "reference": "Merchant reference",
  "purchaseOptions": {
    "installmentFrequency": 1
  },
  "postbackUrl": "https://webhook.site/example",
  "postbackStatusModel": 2,
  "successReturnUrl": "",
  "cancelReturnUrl": "",
  "items": [
    {
      "id": 3308378,
      "timestamp": "2022-11-14T14:27:54.49",
      "code": null,
      "name": "Nocco",
      "isActive": true,
      "quantity": 01.0,
      "unit": null,
      "unitPrice": 0.0,
      "amount": 0200000.0,
      "groupName": null,
      "isOptional": false,
      "isDefaultSelected": null
    }
  ],
  "isConfirmed": true,
  "confirmationDate": "2022-11-14T14:29:13.81",
  "saleDate": "2022-11-14T14:27:54.487",
  "paymentMethod": 2,
  "status": 1,
  "mandateId": "sgmFXXTNkYthLyzYbQmGTnVj5y3wJTVA",
  "maskedCard": "XXXX-XXXX-XXXX-1309",
  "cardType": "Visa",
  "authorizationCode": "429136"
  "refundedAmount" : 10000.0
  "cardActionResult" : {
      "acquirerStatusCode": "00",
      "acquirerMessage": "Approved."
    }
}

...