Data Models

Address Object

Attributes

AttributeTypeDescriptionRequired
namestringFull name of contact. Limited to 300 charactersY
line1stringAddress Line1Y
line2stringAddress Line 2
area1stringAustralian suburb
area2string
regionstringAustaralian StateY
postcodestringZip or post codeY
countryCodestringTwo digit country Code - AUY
phoneNumberstringPhone Number

Example of Address Object

{
   	"name": "Test",
        "line1": "Level 15",
        "line2": "Kent st",
        "area1": "Sydney",
        "area2": null,
        "region": "NSW",
        "postCode": "2000",
        "countryCode": "AU",
        "phoneNumber": "0456866769"
}

Customer Object

Attributes

AttributeTypeDescriptionRequired
phoneNumberstringCustomer phone number. Limited to 15 characters
givenNamesstringCustomer First Name/Given Name. Limited to 100 characters
surnamestringCustomer Last Name/surname. Limited to 100 characters
emailstringCustomer Email address. Limited to 300 charactersY

Example of Customer Object

{
  "phoneNumber": "0456 000 000",
  "givenNames": "Joe",
  "surname": "Customer",
  "email": "[email protected]"
}

Money Object

ATTRIBUTES

AttributeTypeDescriptionRequired
amountstringThe amount is a string representation of a decimal number, rounded to 2 decimal places.Y
currencystringThe currency in ISO 4217 format. Currently it support only “AUD”. However, the value provided MUST correspond to the currency of the Merchant account making the request.Y

Example of Money Object

{
  "amount": "29.99",
  "currency": "AUD"
}

Discount Object

ATTRIBUTES

AttributeTypeDescriptionRequired
displayNamestringA display name for the discount. Limited to 150 characters.Y
amountMoneyThe discount amount.Y

Example of Discount Object

{
  "displayName": "New Customer Coupon",
  "amount": {
    "amount": "29.99",
    "currency": "AUD"
  }
}

Item Object

ATTRIBUTES

AttributeTypeDescriptionRequired
namestringItem Name. Limited to 300 charactersY
skustringProduct SKU. Limited to 150 characters.
quantityintegerThe quantity of the item, stored as a signed 32-bit integer.Y
pageURLstringURL for the item's Product Detail Page. Limited to 1500 characters
imageURLstringA URL for a web-optimised photo of the item, suitable for use directly as the src attribute of an img tag. Limited to 1500 characters
priceMoneyThe unit price of the individual item. Must be a positive value.Y
categoriesstring [][]An array of arrays to accommodate multiple categories that apply to the item. Each array represents a hierarchical path to a category, with the left-most category being the top-level parent category.

Example of Item Object

{
            "name": "Item1",
            "sku": "SKU-003",
            "quantity": 1,
            "pageURL": "https://page.com.au",
            "imageURL": "Https://image.com.au",
            "price": {
                "amount": 24.0000,
                "currency": "AUD"
                  },            
     "categories ":  [
    ["SPORTING GOODS", "CLIMBING EQUIPMENT", "CLIMBING", "CLIMBING CARABINERS"],
    ["SALE", "CLIMBING"]
      ]
}

Merchant URL Object

ATTRIBUTES

AttributeTypeDescriptionRequired

redirectConfirmURL
stringCustomer will be redirected to this URL if wizit approve the purchase and first payment is completeY
redirectCancelURLstringCustomer will be redirected to this URL if wizit decline the purchaseY

Example of Merchant URL Object

{
        "redirectConfirmURL": "https://confirm.com.au",
        "redirectCancelURL": "https://cancel.com.au"
   }

Courier Object

ATTRIBUTES

AttributeTypeDescription
shippedAtstringShipping date. Format YYYY-MMDD
namestringCourier Name. Limited to 200 characters
trackingstringTracking Number provided by Courier. Limited to 50 Characters
prioritystringShipping priority. Can be Either STANDARD" or "EXPRESS".

Example of Courier Object

{
        "shippedAt": "2021-07-22T00:00:00",
        "name": null,
        "tracking": "TRACK_800",
        "priority": null
}

Transaction Detail Object

ATTRIBUTES

OrderTypeDescriptionRequired
amountMoneyTotal amount payable by customerY
descriptionstringOrder description
CustomerCustomerCustomer detailsY
BillingAddressCustomer’s Billing Address
ShippingAddressCustomer’s Shipping AddressY
CourierCourierCustomer’s chosen Courier details
ItemsItem []Array of items in the order
DiscountsDiscount[]List of discounts (if any)
merchantReferenceStringUnique Reference Number from merchant for the orderY
merchantOrderIdStringOrder number at merchant side
TaxAmountMoneyTax Amount after discounts (if any)
ShippingAmountMoneyShopping price charged to the customer
merchantMerchantURLMerchant redirection confirm/cancel URL

Example of Transaction Detail Object

{
   
    "amount": {
        "amount":41.14,
        "currency": "AUD"
    },
    "customer": {
        "phoneNumber": "0414466667",
        "givenNames": "FP",
        "surname": "LoanCreate",
        "email": "[email protected]"
    },
    "billing": {
        "name": "Billing Add",
        "line1": "Level 15",
        "line2": "Kent st",
        "area1": "Sydney",
        "area2": null,
        "region": "NSW",
        "postCode": "2000",
        "countryCode": "AU",
        "phoneNumber": "0456866770"
    },
    "shipping": {
        "name": "Test",
        "line1": "Level 15",
        "line2": "Kent st",
        "area1": "Sydney",
        "area2": null,
        "region": "NSW",
        "postCode": "2000",
        "countryCode": "AU",
        "phoneNumber": "0456866769"
    },
    "courier": {
        "shippedAt": "2021-07-22T00:00:00",
        "name": null,
        "tracking": "TRACK_800",
        "priority": null
    },
    "description": "Test orde 2",
    "items": [
        {
            "name": "Item1",
            "sku": "SKU-003",
            "quantity": 1,
            "pageURL": "https://page.com.au",
            "imageURL": "Https://image.com.au",
            "price": {
                "amount": 24.0000,
                "currency": "AUD"
            },
            
            "CATEGORIES":  [
    ["SPORTING GOODS", "CLIMBING EQUIPMENT", "CLIMBING", "CLIMBING CARABINERS"],
    ["SALE", "CLIMBING"]
  ]
        }
    ],
    "discounts": [
        {
            "displayName": null,
            "discountNumber": 0,
            "amount": {
                "amount": 2.0000,
                "currency": "AUD"
            }
        }
    ],
    "merchant": {
        "redirectConfirmURL": "https://confirm.com.au",
        "redirectCancelURL": "https://cancel.com.au"
    },
    "merchantReference": "MER-202107090007",
    "merchantOrderId": "20114",
    "taxAmount": {
        "amount": 2.0000,
        "currency": "AUD"
    },
    "shippingAmount": {
        "amount": 10.00,
        "currency": "AUD"
    }
   
}

Refund Object

ATTRIBUTES

AttributeTypeDescriptionRequired
requestIdstringA unique request ID, required (in conjunction with merchantReference) for safe retries. It is recommended that the merchant generate a UUID for each unique refund.
amountMoneyThe refund amount.Y
merchantReferencestringThe merchant's corresponding refund ID or reference, required (in conjunction with requestId) for safe retries.
refundIdstringThe unique, Wizit-generated refund ID.
refundedAtstringAEST timestamp of the refund creation time, in ISO 8601 format.
refundMerchantReferencestringA unique reference for the individual refund event. If provided, the value will appear in the reference column of settlement file.
TransactionIdlongThe unique, permanent, Wizit-generated transaction ID.

Example of Refund Object

{
  "requestId" : "49efce77-4bf2-4e41-86e8-c2b92f493c2a",
  "amount" : {  
    "amount" : "10.00",
    "currency" : "AUD"
  },
  "merchantReference" : "merchantRefundId-1234",
  "refundId" : "67890123",
  "refundedAt" : "2019-01-01T00:00:00.000Z",
  "refundMerchantReference" : "merchantRefundId-1234",
  "transactionId": "12611",
}

Payment Object

Attributes

AttributeTypeDescription
transactionIdstringThe unique, permanent, Wizit-generated transaction ID.
tokenstringCheckout token that was used to complete payment.
transactionStatusstringAn order status of "APPROVED" or "DECLINED" or COMPLETED (captured completed/voided)
paymentCompletedstringThe AEST timestamp of when the payment was completed, in ISO 8601 format.
OriginalAmountMoneyTotal amount charged to the customer for the order.
pendingCaptureAmountMoneyRemaining amount that can be captured. Will always be zero for Immediate Payment Flow orders.
paymentStatusstringCurrent state for capturing payments. Will be one of: "AUTH_APPROVED", "AUTH_DECLINED", "PARTIALLY_CAPTURED", "CAPTURED", "CAPTURE_DECLINED",
"VOIDED".
merchantReferencestringThe merchant's order id/reference that this payment corresponds to.
refundsRefund[]An array of refunds.
transactionDetailsTransactionDetailThe details of the order bound to the payment.

Example of Payment Object

{
    "transactionId": "12611",
    "token": "ca25b39b-3873-43ff-8682-e40651e52bb7",
    "transactionStatus": "COMPLETED",
    "paymentCompleted": "2021-07-26 09:30:44",
    "originalAmount": {
        "amount": 425.39,
        "currency": "AUD"
    },
    "pendingCaptureAmount": {
        "amount": 0.0,
        "currency": "AUD"
    },
    "paymentStatus": "CAPTURED",
    "merchantReference": "MERb8ad930346fa5231350110d8f21bc0f1-435",
    "transactionDetails": {
        "billing": {
            "name": "k",
            "line1": "sdf",
            "line2": "",
            "area1": "sdf",
            "area2": null,
            "region": "NSW",
            "postCode": "SDF",
            "countryCode": "AU",
            "phoneNumber": "0157845466"
        },
        "shipping": {
            "name": "k",
            "line1": "sdf",
            "line2": "",
            "area1": "sdf",
            "area2": null,
            "region": "NSW",
            "postCode": "SDF",
            "countryCode": "AU",
            "phoneNumber": "0157845466"
        },
        "courier": null,
        "items": [
            {
                "name": "Shoes (Pre-Owned)",
                "sku": "",
                "quantity": 1,
                "pageURL": null,
                "imageURL": null,
                "price": {
                    "amount": 349.99,
                    "currency": "AUD"
                },
                "categories": null
            },
            {
                "name": "Instagram Egg",
                "sku": "",
                "quantity": 1,
                "pageURL": null,
                "imageURL": null,
                "price": {
                    "amount": 0.40,
                    "currency": "AUD"
                },
                "categories": null
            },
            {
                "name": "Hat",
                "sku": "",
                "quantity": 3,
                "pageURL": null,
                "imageURL": null,
                "price": {
                    "amount": 75.00,
                    "currency": "AUD"
                },
                "categories": null
            }
        ],
        "discounts": [
            {
                "displayName": null,
                "amount": {
                    "amount": 0.00,
                    "currency": "AUD"
                }
            }
        ],
        "taxAmount": {
            "amount": 0.00,
            "currency": "AUD"
        },
        "shippingAmount": {
            "amount": 0.00,
            "currency": "AUD"
        },
        "customer": {
            "phoneNumber": "0157845466",
            "givenNames": "k",
            "surname": "db",
            "email": "[email protected]"
        }
    },
    "paymentDescription": "",
    "refunds": null,
    "responseCode": 200,
    "errorCode": null,
    "errorMessage": null
}

Pagination Object

Attributes

AttributeTypeDescription
pageNoInt32Page Number of list/response
pageSizeInt32Page size of the list/response
totalPagesInt32Total Number of pages in the list/response
responseCodestringResponse code for the request. Refer Response code
errorCodestringError code (if any) for the request. Refer Error code
errorMessagestringError Message (if any) for the request. Refer Error Message

Example of Pagination Object

"responseCode": “200”,
  "errorCode": null,
  "errorMessage": null,
  "pageNo": 1,
  "pageSize": 20,
  "totalPages": 20
}