x
Developer

Php API custom code problem

Exception when calling CheckoutApi->createCheckout: [HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"VALUE_EMPTY","detail":"Field must not be blank","field":"idempotency_key"}]}

946 Views
Message 1 of 2
Report
1 REPLY 1
Alumni

That error comes when you leave the idempotency_key field blank in your request. See here for more info: https://docs.connect.squareup.com/api/connect/v2/?q=idempotency#idempotencykeys

922 Views
Message 2 of 2
Report