Hello., I need complete attributes schema for this form pages https://app.squareup.com/dashboard/items/pricing/discounts/new and https://app.squareup.com/dashboard/customers/marketing/coupons/new , i want to integrate same in my app. is it possible?
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
Merchant APIs
Customize the Payment Entry Form
App Marketplace Requirements
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.
give come complete schema for that
To integrate similar functionality in your app, you would need to use Square’s APIs to manage discounts and coupons. However, Square does not provide a direct schema or API endpoint that replicates the exact form pages you mentioned. Instead, you can use the following APIs to achieve similar functionality:
-
Catalog API: This API allows you to manage catalog objects, including discounts. You can create, update, and delete discounts as catalog objects. You would define the discount attributes such as percentage or amount, and apply them to items or orders.
-
Orders API: This API can be used to apply discounts to orders. You can specify discounts at the order level or line item level, and manage how they are applied to the total order amount.
-
Customer Custom Attributes API: While this API is more focused on customer profiles, it can be used to store additional information about customers, which might be useful if you want to track coupon usage or customer-specific discounts.
To implement these features, you would need to design your application’s data model to capture the necessary attributes and use the appropriate Square APIs to manage and apply discounts and coupons. Keep in mind that you should adhere to Square’s API usage policies and ensure that any sensitive data is handled securely.
This answer was reviewed by @Bryan-Square.