Called to complete an order with transactions to make payment


Input

  • Type=APICompleteOrder
  • Member (optional)
       (int) Existing Member ID in the system
       (string) Existing Member Email in the system
       (array) Key/Value pair with the details of new member
  • Payload (JSON encoded)
       Reference - order reference to be completed
       SendConfirmationEmail - true or false
       Transactions (optional)
          Type - Valid Transactin types: Cash,PDQ,Cheque,Goodwill
          Amount - Float
  • HashString

Output

  • Errors

Example

Payload Data

{
    "Reference": "ABC123",
    "MemberEmail": "john.brown@bookinglive.com",
    "OrderItems": [{
        "ProductID": "1",
        "ProductClassName": "ProductPhysicalItem",
        "Quantity": "1"
    }, {
        "ProductClassName": "ProductFixedEvent",
        "EventID": "123",
        "Quantity": "1"
    }, {
        "ProductClassName": "ProductTemplateEvents",
        "Availability[StartTime]": "13:20:00",
        "Availability[StartDate]": "2016-01-01",
        "Quantity__123": "1",
        "BookingType_ProductTemplateEvents": "0"
    }],
    "Transactions": [{
     "Type": "Cash",
     "Amount": "20.0"
    }]
}

Call

https://yoursitename.bookinglive.com/api/plain/?Type=APICompleteOrder&Payload=%7B%22Reference%22%3A%22ABC123%22%2C%22Transactions%22%3A%5B%7B%22Type%22%3A%22Cash%22%2C%22Amount%22%3A%20%2220.0%22%7D%5D&HashString=123123

Response

{"Errors":[]}


Error Handling

Each response returns Errors array which in case of error will contain one or more records with an error code and short description.

{
    "Errors":[
        {"Code":"9", "Error":"no Reference sent"},
        {"Code":"10",  "Error":"no OrderItems sent"},
    ]
}