Got error, 'An internal error has occurred, and the API was unable to service your request.',

I have check the object, all fields are correct but got this issue again and again. I have check the card-nonce as well.
The api call is like-

const subscriptionCreate = await subscriptionsApi.createSubscription({
idempotencyKey: (
Math.floor(Math.random() * 9 + 1) + Date.now() + (Math.random() + 1).toString(36).substring(7)
).toString(),
locationId: ‘L9XW524DZCRAS’,
planId: response.result.catalogObject.id,
customerId: ‘JSFD4BD1RAMNFZYYKQC26ZZE98’,
cardId: ‘cnon:CBASjhdys3rTyaCm-MMllm2kTsY’
});

What’s your application ID? Also cnon:CBASjhdys3rTyaCm-MMllm2kTsY isn’t a valid card_id. That’s a source_id that’s used to create the card on file with the Cards API. You’ll first need to call CreateCard with the source_id. Then use the Square generated card_id to create the subscription. :slightly_smiling_face: