Body
      
    Required
 
    
  
  
- 
    
  The ID of the account to apply this payment to. 
- 
    
  A unique external reference provided for this order. This value will be sent back in the webhook. Minimum length is 1, maximum length is50.
- 
    
  Endpoint ID for a unique webhook that has been created using the webhook endpoint. 
- 
    
  The unique identifier for the business location. 
- 
    
  Maximum time to attempt delivery of this payment to the POS. In milliseconds. The minimum value is 60000ms (1 minute). 
- 
    
  The ID of the employee responsible for this payment. 
- 
    
  POS device to specifically receive this payment. If left null then all POS devices may receive the payment but only one will process it. 
- 
    
  Payment method code as configured by the merchant. 
- 
    
  The total amount of the payment without tips. 
- 
    
  The tip amount, if any. 
- 
    
  The printer profile id to use for printing the receipt for this payment. If not provided, the default active printer profile for the business location will be used. 
curl \
 --request POST 'https://api.trial.lsk.lightspeed.app/o/op/1/pay' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"iKaccountId":0,"iKaccountIdentifier":"A1234.56","thirdPartyPaymentReference":"12345678901234","endpointId":"MY-AWESOME-ENDPOINT-ID","businessLocationId":45454565682155,"taskTtlInMs":60000,"staffId":42,"deviceId":12345678980,"paymentMethod":"OOPAYMENT","paymentAmount":20.06,"tipAmount":2.5,"targetPrinterProfileId":1773881235}'{
  "iKaccountId": 0,
  "iKaccountIdentifier": "A1234.56",
  "thirdPartyPaymentReference": "12345678901234",
  "endpointId": "MY-AWESOME-ENDPOINT-ID",
  "businessLocationId": 45454565682155,
  "taskTtlInMs": 60000,
  "staffId": 42,
  "deviceId": 12345678980,
  "paymentMethod": "OOPAYMENT",
  "paymentAmount": 20.06,
  "tipAmount": 2.5,
  "targetPrinterProfileId": 1773881235
}{
  "status": "ok"
}{
  "timestamp": "2023-11-07T23:00:20.075+0000",
  "status": 400,
  "error": "Bad Request",
  "message": "reference has already been used 12345678901234",
  "path": "/o/op/1/pay"
}