These are all of the necessary endpoints required for Transactions (purchases, authorizations, captures, releases, returns).
...
Code Block |
---|
https://{posapi_url}/flexiti/pos-api/v2.5.1/client-id/{client_id}/authorization |
NOTE: the /authorization endpoint has been updated to version 2.5.1, reflected in the URI.
...
Type | Parameter | Required | Details |
---|
HEADER | authorization | Yes | |
HEADER | x-reference-id | Yes | |
PATH | client_id | Yes | |
QUERY | lang |
| |
PATH | authorization_id | Yes | |
BODY | reference | | |
BODY | amount | Yes | |
BODY | sku_data.purchase_order | No | ASCII string (10) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Purchase Number For the Merchant
|
BODY | sku_data.shipping_total | No | number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. the Shipping total amount to be displayed, if applicable
|
BODY | sku_data.register_id | No | ASCII string (50) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The cashier machine where the transaction was placed
|
BODY | sku_data.transaction_discount_total | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all discounts on the order
|
BODY | sku_data.transaction_subtotal | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all totals for all items
|
BODY | sku_data.gst_hst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Goods and Services Tax (GST) and the Harmonized Sales Tax (HST)
|
BODY | sku_data.pst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Provincial Sales Tax applied to the order
|
BODY | sku_data.transaction_total | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. transaction_total = transaction_subtotal + gst_hst + pst
|
BODY | sku_data.products.sku_id | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Unique Identifier of the product SKU (Stock Keeping Unit)
|
BODY | sku_data.products.category | No | |
BODY | sku_data.products.description | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Business-friendly description of the product
|
BODY | sku_data.products.quantity | No | Number (5) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The quantity of the items for the SKU array
|
BODY | sku_data.products.unit_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The price for a single SKU item
|
BODY | sku_data.products.extended_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. extended_price = [(unit_price x quantity) - discount_price] for this particular SKU array
|
BODY | external_location_id | Yes if In-store channel | |
BODY | external_employee_id | Yes if In-store channel | |
Example Request with SKU Data:
Code Block |
---|
|
{
"reference": "orderid-12345",
"amount": 3000.12,
"external_location_id" : "00-12345", //if in-store channel
"external_employee_id" :"12345-SMITH", //if in-store channel
"sku_data":{
{
"purchase_order": "100001234",
"register_id": "1A45",
"transaction_discount_total": -123.08,
"transaction_subtotal": 821.17,
"transaction_total": 1026.47,
"gst_hst": 133.45,
"pst": 71.85,
"products":[
{
"sku_id": "100xx4567",
"category": "electronics",
"description": "Apple Macbook 16-inch",
"quantity": 1,
"unit_price": 1000,
"extended_price": 984.35
},
{
"sku_id": "20bb3457",
"category": "office supplies",
"description": "24lb Multiuse Paper, White",
"quantity": 1,
"unit_price": 33.99,
"extended_price": 42.12
}
]
} |
Example Request without SKU Data:
Code Block |
---|
|
{
"reference": "orderid-12345",
"amount": 3000.12,
"external_location_id" : "00-12345", //if in-store channel
"external_employee_id" :"12345-SMITH", //if in-store channel
} |
Response Parameters:
Type | Parameter | Details |
---|
BODY | capture_id | |
BODY | reference | |
BODY | authorization_id | |
BODY | date | |
BODY | amount | number (18,2) Captured amount
|
BODY | remaining_authorization_amount | |
BODY | term_amount | |
BODY | username | |
BODY | status | |
BODY | message | |
...
Type | Parameter | Required | Details |
---|
HEADER | authorization | Yes | |
HEADER | x-reference-id | Yes | |
PATH | client_id | Yes | |
QUERY | lang |
| |
PATH | authorization_id | Yes | |
PATH | capture_id | Yes | |
BODY | vcc_number | No
| ASCII string(16) The FlexitiCard number (VCC) provided by the Customer To be used in a Business Card’s authorized User’s purchase, sent with the Master Account number
|
BODY | reference | | |
BODY | full_return | | |
BODY | amount | Yes if full_return is false | |
BODY | sku_data.purchase_order | No | ASCII string (10) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Purchase Number For the Merchant
|
BODY | sku_data.register_id | No | ASCII string (50) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The cashier machine where the transaction was placed
|
BODY | sku_data.transaction_discount_total | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all discounts on the order
|
BODY | sku_data.transaction_subtotal | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all totals for all items
|
BODY | sku_data.gst_hst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Goods and Services Tax (GST) and the Harmonized Sales Tax (HST)
|
BODY | sku_data.pst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Provincial Sales Tax applied to the order
|
BODY | sku_data.transaction_total | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. transaction_total = transaction_subtotal + gst_hst + pst
|
BODY | sku_data.products.sku_id | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Unique Identifier of the product SKU (Stock Keeping Unit)
|
BODY | sku_data.products.category | No | |
BODY | sku_data.products.description | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Business-friendly description of the product
|
BODY | sku_data.products.quantity | No | Number (5) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The quantity of the items for the SKU array
|
BODY | sku_data.products.unit_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The price for a single SKU item
|
BODY | sku_data.products.extended_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. extended_price = [(unit_price x quantity) - discount_price] for this particular SKU array
|
BODY | external_location_id | Yes if In-store channel | |
BODY | external_employee_id | Yes if In-store channel | |
Example Request:
Code Block |
---|
|
{
"reference": "Order-1234",
"vcc_number": "1234567890121256",
"full_return": false,
"amount": 10,
"sku_data": {
"purchase_order": "100001234",
"register_id": "1A45",
"transaction_discount_total": -125.08,
"transaction_subtotal": -821.17,
"transaction_total": -1026.47,
"gst_hst": -133.45,
"pst": -71.85,
"products": [
{
"sku_id": "100xx4567",
"category": "electronics",
"description": "Apple Macbook 16-inch",
"quantity": 1,
"unit_price": 1000,
"extended_price": 984.35
},
{
"sku_id": "20bb3457",
"category": "office supplies",
"description": "24lb Multiuse Paper, White",
"quantity": 1,
"unit_price": 33.99,
"extended_price": 42.12
}
]
},
} |
...
Type | Parameter | Required | Details |
---|
HEADER | authorization | Yes | |
HEADER | x-reference-id | Yes | |
PATH | client_id | Yes | |
PATH | account_number | Yes | |
BODY | capture_id | No | |
BODY | vcc_number | No
| ASCII string(16) The FlexitiCard number (VCC) provided by the Customer To be used in a Business Card’s authorized User’s purchase, sent with the Master Account number
|
BODY | amount | Yes | |
BODY | reference | | |
BODY | sku_data.purchase_order | No | ASCII string (10) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Purchase Number For the Merchant
|
BODY | sku_data.register_id | No | ASCII string (50) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The cashier machine where the transaction was placed
|
BODY | sku_data.transaction_discount_total | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all discounts on the order
|
BODY | sku_data.transaction_subtotal | No | Integer (12,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Sum of all totals for all items
|
BODY | sku_data.gst_hst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Goods and Services Tax (GST) and the Harmonized Sales Tax (HST)
|
BODY | sku_data.pst | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Provincial Sales Tax applied to the order
|
BODY | sku_data.transaction_total | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. transaction_total = transaction_subtotal + gst_hst + pst
|
BODY | sku_data.products.sku_id | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Unique Identifier of the product SKU (Stock Keeping Unit)
|
BODY | sku_data.products.category | No | |
BODY | sku_data.products.description | No | ASCII string (150) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. Business-friendly description of the product
|
BODY | sku_data.products.quantity | No | Number (5) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The quantity of the items for the SKU array
|
BODY | sku_data.products.unit_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. The price for a single SKU item
|
BODY | sku_data.products.extended_price | No | Number (18,2) This data is provided by a Merchant. If passed as part of the request, it will be displayed on the customer’s statement. We do not validate this data and assume you are passing an accurate representation of the transactions details. extended_price = [(unit_price x quantity) - discount_price] for this particular SKU array
|
BODY | external_location_id | Yes if In-store channel | |
BODY | external_employee_id | Yes if In-store channel | |
Example Request:
Code Block |
---|
{
"reference": "orderid-12345",
"amount": 1000.12
"external_location_id" : "00-12345", //if in-store channel
"external_employee_id" :"12345-SMITH" //if in-store channel
"vcc_number": "1234567890123423",
"capture_id": 346123,
"sku_data": {
"purchase_order": "100001234",
"register_id": "1A45",
"transaction_discount_total": -125.08,
"transaction_subtotal": -821.17,
"transaction_total": -1026.47,
"gst_hst": -133.45,
"pst": -71.85,
"products": [
{
"sku_id": "100xx4567",
"category": "electronics",
"description": "Apple Macbook 16-inch",
"quantity": 1,
"unit_price": 1000,
"extended_price": 984.35
},
{
"sku_id": "20bb3457",
"category": "office supplies",
"description": "24lb Multiuse Paper, White",
"quantity": 1,
"unit_price": 33.99,
"extended_price": 42.12
}
]
},
} |
...
Code Block |
---|
|
https://{posapi_url}/flexiti/pos-api/v2.5.1/client-id/{client_id}/authorizations?lang=en&account_number=12341234&transaction_type=promotional_purchase&authorization_status=opened&creation_date_from=2018-11-11&creation_date_to=2018-12-11&page_number=1&page_size=10 |
NOTE: the /authorizations endpoint has been updated to version 2.5.1, reflected in the URI.
...
Code Block |
---|
|
https://{posapi_url}/flexiti/pos-api/v2.5.1/client-id/{client_id}/authorization/12343&lang=en |
NOTE: the /authorization/{authorizationId} endpoint has been updated to version 2.5.1, reflected in the URI.
...
Code Block |
---|
https://{posapi_url}/flexiti/pos-api/v2.5.1/client-id/{client_id}/captures&lang=en&account_number=12341234
&transaction_type=promotional_purchase&capture_status=opened&creation_date_from=2018-11-11&creation_date_to=2018-12-11&capture_id=1234&authorization_corporation_id=1234&authorization_merchant_id=1234&authorization_location_id=1122&authorization_employee_username=billm&capture_employee_username=johnm&page_number=1&page_size=10 |
NOTE: the /captures endpoint has been updated to version 2.5.1, reflected in the URI.
...