Call our server at checkout to check for discount

We have a use case where we need to have the POS system check our server via API for how much of a discount (dollar amount) to apply for a particular customer (using 6 digit code or qr code provided by customer) and then let our server know that the transaction was successful.

Is there a way to do this?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Build on Mobile Web
Payments API Integration
Build on iOS: Point of Sale API

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

At this time there isn’t a way to add a custom field in the POS that would call your APIs to then apply a discount. There unfortunately isn’t a way to do this within the Square app at this time. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face: