With the Square Connect API, is it possible to assign a Sales Tax Fee at Item Creation? I don't see how in the documentation, besides making a second call after the item has been created. Seems kind of weird since it's possible to retrieve item details and fees in one get, but you can't create in one post.
标签:
square-connect
相关问题
- How to load External Javascript Libraries into Ang
- EXPECTED_INTEGER — Issues with Square payment port
- What's the rate limit on the square connect ap
- Assigning Fees To An Item On Creation
- Need to get CardNonce and CANNOT get Callback?
相关文章
- EXPECTED_INTEGER — Issues with Square payment port
- 上传使用广场连接API项目图像(Uploading Item Image using Square
- What's the rate limit on the square connect ap
- Assigning Fees To An Item On Creation
- Need to get CardNonce and CANNOT get Callback?
- Getting 422 Status Code Error When Posting to Squa
- Square payment form cannot execute requestCardNonc
- Access using https redirect-url is denied at Squar
It is not currently possible to assign fees to an item when you create it. As you describe, followup calls to the Apply Fee endpoint are required.
I have reported this limitation to the Connect API engineering team.
You need to use two APIs. 1. Create Item API 2. Then pull item id from create item response API. then you need to use my script:
$squareCred = array( 'Authorization: Bearer your_auth_token', 'Content-Type: application/json' ); $apiUrl = 'https://connect.squareup.com/v1/{{location_id}}/items/{{item_id}}/fees/{{fee_id}}';