Can't get Create Checkout API working

using the API explorer I cant get this to work on my sandbox

 

Any ideas?

 

Am I missing something?

 

 

 

 

curl https://connect.squareupsandbox.com/v2/locations/*********************/checkouts \
-X POST \
-H 'Square-Version: 2021-07-21' \
-H 'Authorization: Bearer ---------------' \
-H 'Content-Type: application/json' \
-d '{
"order": {
"order": {
"location_id": "*****************",
"line_items": [
{
"item_type": "ITEM",
"base_price_money": {
"currency": "GBP",
"amount": 50000000000
},
"quantity_unit": {
"precision": 0,
"measurement_unit": {
"generic_unit": "UNIT"
}
},
"quantity": "100",
"name": "pc"
}
],
"pricing_options": {
"auto_apply_discounts": false,
"auto_apply_taxes": false
},
"state": "OPEN"
},
"idempotency_key": "3229fa7f-65b6-4f48-82af-dd2cd4e38128"
},
"idempotency_key": "4b3fb876-ac48-4e18-ac10-1e0e2ee883bf",
"ask_for_shipping_address": false,
"merchant_support_email": "*******",
"pre_populate_buyer_email": "****"
}'

 

Resullt

{
"errors": [
{
"category": "INVALID_REQUEST_ERROR",
"code": "VALUE_TOO_LOW",
"detail": "`order.total_money.amount` must be greater than 100.",
"field": "order.total_money.amount"
}
]
}

 

 

 

 

996 Views
Message 1 of 2
Report
1 Solution
Admin

Solution

Hey @Phill579, sorry to hear you're running into this! This sounds like something our API Engineering team will need to look in to, so it'll be best to contact the team directly on their Developer Forums. They will be able to look into it further that way. 

Tra | she/her
Community Program Manager, Square

View Solution >

994 Views
Message 2 of 2
Report
1 REPLY 1
Admin

Solution

Hey @Phill579, sorry to hear you're running into this! This sounds like something our API Engineering team will need to look in to, so it'll be best to contact the team directly on their Developer Forums. They will be able to look into it further that way. 

Tra | she/her
Community Program Manager, Square
995 Views
Message 2 of 2
Report