HTTP Examples
Create Key
POST/webapi/v1/CreateKey
More info?
Used to obtain a device-signing-key using the shared private key. The device-signing-key can then be used to digitally sign all subsequent messages. See Create Key for more information.
{
"x_merchant_id": "30299999",
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"x_device_token": "nb4i6ldxuVQC",
"x_pos_vendor": "Pos Provider",
"signature": "cf4f4a19662c7617ea83a47456934123f530c82cdfdd66f5b706dd2263806848"
}
{
"x_key": "dy33vQhksVsv",
"x_status": "Success",
"x_code": "SCRK01",
"x_message": "Success",
"signature": "c8340d19b24f8ec2fb915202ea7fb08d81fc711681fbfea297106d219a5c30a6",
"tracking_data": null
}
Process Authorisation
POST/webapi/v1/ProcessAuthorisation
More info
Processes an authorisation to finalise the transaction. See Process Authorisation for more information.
{
"x_merchant_id": "30299999",
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"x_pos_transaction_ref": "tnx-ref1",
"x_pre_approval_code": "6111NHQMAM4Z",
"x_finance_amount": 10000,
"x_purchase_amount": 50000,
"purchase_items": "{ \"PurchaseItems\": [ \"Item1\", \"Item2\" ] }",
"signature": "d6967970b99e585fc7d1a11702690f25b4be0c5fbfd10b39fbea3953ba48bad2"
}
{
"x_status": "Success",
"x_code": "SPRA01",
"x_message": "Approved",
"signature": "07fa5c9b43520bb9417d7eadb8390a87bf7a42767a67bd5af95627b51c2d8bae",
"tracking_data": null
}
Invite
POST/webapi/v1/Invite
More Invite info
Initiates a request that will send an invite to the customer to Login or Register with humm so that they can get a pre-approval code. See Invite for more information.
{
"x_merchant_id": "30299999",
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"x_mobile": "0400000000",
"x_purchase_amount": 10000,
"signature": "9acbc32115e19c3135738bbef891c864ef734e2f66c3c3d3aeb5e0b1982db5f4"
}
{
"x_status": "Success",
"x_code": "SINV01",
"x_message": "Success",
"signature": "2e7ddc54f5457b22fcdd7382ce4e9651abd527051dbc069a3171b4201d8e359c",
"tracking_data": null
}
Send Receipt
POST/webapi/v1/SendReceipt
More info?
See Send Receipt for more information
{
"x_merchant_id": "30299999",
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"x_pos_transaction_ref": "tnx-ref1",
"x_receipt_number": "NewReceipt",
"signature": "ac164e40585474838641bde1ad9bab08b6e6e0ab0c2dae814298e4fcef9c52fa"
}
{
"x_status": "Success",
"x_code": "SSER01",
"x_message": "Success",
"signature": "b55c8cbe59305d3d8abc6ea8f0cdcf4702059d6d2fa935c83595e56e7001157b",
"tracking_data": null
}
Process Sales Adjustment
POST/webapi/v1/ProcessSalesAdjustment
Sales Adjustment Information
Used to process a Sales Adjustment as the point-of-sale. See Process Sales Adjustment for more information.
{
"x_pos_transaction_ref": "tnx-ref1",
"x_purchase_ref": "123456789",
"x_merchant_id": "30299999",
"x_amount": 1000,
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"signature": "ce20e2f1a9fe0d92b3d021ba7f1b372b006778cfab5fc4c09efa60a6d910c471"
}
{
"x_status": "Failed",
"x_code": "FPSA05",
"x_message": "Unable to process a sales adjustment for this contract. Please contact Merchant Services on [CollectionsPhone] during business hours for further information",
"signature": "b490b0565a93b31bdf93037ede44b3619f08a1e0e5f68332db52f02176a86bb2",
"tracking_data": null
}
Process Sales Adjustment Reversal
POST/webapi/v1/ProcessSalesAdjustmentReversal
More Information
Used to process a Sales Adjustment as the point-of-sale. See Process Sales Adjustment Reversal for more information.
{
"x_pos_transaction_ref": "tnx-rev1",
"x_adjustment_signature": "ce20e2f1a9fe0d92b3d021ba7f1b372b006778cfab5fc4c09efa60a6d910c471",
"x_merchant_id": "30299999",
"x_device_id": "d555",
"x_operator_id": "test_operator",
"x_firmware_version": "123",
"signature": "1949a14cfdd8e6062a54f28ab3a607637f081afb7b8f4cffa3fb413fadab963b"
}
{
"x_status": "Failed",
"x_code": "FPSA05",
"x_message": "Unable to process a sales adjustment reversal for this contract. Please contact Merchant Services on [CollectionsPhone] during business hours for further information",
"signature": "1949a14cfdd8e6062a54f28ab3a607637f081afb7b8f4cffa3fb413fadab963b",
"tracking_data": null
}
Updated 6 months ago