i was using the payment id from the creation event: jffuztfumrVLqnZCdltvEdA4njSZY
i used that to retrieve the payment via api explorer bc the customer_id
was not in the original payload. i got: 8ZE7FH29YD1GZDPK0WMAJ3XB04
code would be:
const response = await client.cardsApi.createCard({
idempotencyKey: '5303bfbf-c0e2-4423-9f74-9d239473592c',
sourceId: 'jffuztfumrVLqnZCdltvEdA4njSZY',
card: {
customerId: '8ZE7FH29YD1GZDPK0WMAJ3XB04'
}
});
same error:
{
"errors": [
{
"category": "INVALID_REQUEST_ERROR",
"code": "INVALID_CARD_DATA",
"detail": "Invalid card data.",
"field": "source_id"
}
]
}