- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Submitting a V2 API request to:
url = https://connect.squareup.com/v2/CBASEMVn_aQuXyMe93tfKwApGPM/transactions
with POSTed data of:
{
"idempotency_key": "91750",
"billing_address": {
"address_line_1": "4433 SW 48th AV",
"address_line_2": "",
"locality": "Portland",
"administrative_district_level_1": "OR",
"postal_code": "97221",
"country": "US"
},
"amount_money": {
"amount": 10,
"currency": "USD"
},
"card_nonce": "CBASEJuQWW4DsEFg1N2io4fYB1Q",
"delay_capture": false,
"buyer_email_address": "support@example.com"
}
Generates an INVALID_REQUEST_ERROR.
How do I find details about specifically what it is seeing wrong with this request? According to the documentation this should be a valid request.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
Seems I was missing the '/locations' path element in the URL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
Sorry I didn't catch your post yesterday, glad you found it!
Let us know if anything else comes up, I can pass it to our developers if need be.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
What kind of debugging are you interested in? It seems like your error is that you are adding things as url parameters instead of a POST body. Doest that help?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report Inappropriate Content