I am trying to update the credit card when creating a customer and card using the "Create a customer on file" endpoint. This works great to CREATE the customer. I would like to be able to update the credit card now. I tried to call update directly but a 409 comes back from the API stating that there is already an attached credit card. With that in mind, I'm assuming I need to call revoke payment, then run the update.
The revoke API here https://docs.clover.com/reference/revoke-a-payment-source for sourceId has verbiage that states:
Universally unique identifier (UUID) of the card data associated with a customer record.
Use Create a card-on-file customer endpoint to generate the card data identifier.
The response back from the create customer on file is:
{
"id" : "some customer id",
"object" : "customer",
"created" : 1703264188177,
"currency" : "USD",
"email" : "some email",
"name" : "some name",
"sources" : {
"object" : "list",
"data" : [ "some id" ]
},
"shipping" : {
"name" : "some name"
}
}
The only identifer i see is "some id" and that is not a UUID. How do I execute a revoke payment request in conjuction with the response of the create customer on file endpoint?