# Apply a Payment **POST /o/op/1/pay** Add a payment to an existing receipt. ## Servers - Demo URL: https://api.trial.lsk.lightspeed.app (Demo URL) - Production URL: https://api.lsk.lightspeed.app (Production URL) ## Authentication methods - O auth2 ## Parameters ### Body: application/json (object) - **iKaccountId** (integer(int64)) - **iKaccountIdentifier** (string) The ID of the account to apply this payment to. - **thirdPartyPaymentReference** (string) A unique external reference provided for this order. This value will be sent back in the webhook. - **endpointId** (string) Endpoint ID for a unique webhook that has been created using [the webhook endpoint](https://api-docs.lsk.lightspeed.app/operation/operation-apecreatewebhookoo). - **businessLocationId** (integer(int64)) The unique identifier for the business location. - **taskTtlInMs** (integer(int32)) Maximum time to attempt delivery of this payment to the POS. In milliseconds. The minimum value is 60000ms (1 minute). - **staffId** (integer(int64)) The ID of the employee responsible for this payment. - **deviceId** (integer(int64)) POS device to specifically receive this payment. If left null then all POS devices may receive the payment but only one will process it. - **paymentMethod** (string) Payment method code as configured by the merchant. - **paymentAmount** (number) The total amount of the payment without tips. - **tipAmount** (number) The tip amount, if any. - **targetPrinterProfileId** (integer(int64)) 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. ## Responses ### 200 accepted #### Body: application/json (object) - **status** (string) The response. ### 400 Bad Request #### Body: */* (object) - **timestamp** (string(date-time)) The date and time at which the error occurred, in UTC. - **status** (integer) The HTTP status code indicating the type of error. - **error** (string) A short description of the HTTP status code meaning. - **message** (string) A detailed message describing the error, including any specific details about the request that led to the error. - **path** (string) The request path where the error occurred. [Powered by Bump.sh](https://bump.sh)