Calling CreatePayment in sandbox environment causes 500 error

Calling CreatePayment in a sandbox environment may result in a 500 error.

What is the cause?

Request

{
  "source_id": "[redacted]",
  "idempotency_key": "d993f880-6f1e-4a5b-abba-9be8f7c48200",
  "amount_money": {
    "amount": 2222,
    "currency": "JPY"
  },
  "customer_id": "AEHWZ9D9FCHNNNTCDZ9R162B5R",
  "reference_id": "700d02d7-0612-4ce1-9ffd-92d56bfe597b",
  "cash_details": {
    "buyer_supplied_money": {
      "amount": 2222,
      "currency": "JPY"
    }
  }
}

Response

  "errors": [
    {
      "code": "INTERNAL_SERVER_ERROR",
      "detail": "An internal error has occurred, and the API was unable to service your request.",
      "category": "API_ERROR"
    }
  ],

:wave: 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

Cash App Payments
Take Cash Payments
Take Payments

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.

What are the steps to reproduce this? :slightly_smiling_face: