{ "success": false, "error": { "status": 404, "code": "CUSTOMER_NOT_FOUND", "message": "Customer not found" }, "data": null }
Edit a customer
curl -X PATCH https://api.transaction.gg/merchant/customer/edit \ -H "Authorization: Bearer jwt_token" \ -H "Content-Type: application/json" \ -d '{ "customerId": "cus_V6n6SN2KnsIFCuQU", "email": "[email protected]", "metadata": { "name": "Jane Doe" } }'
{ "success": true, "data": { "id": "cus_V6n6SN2KnsIFCuQU", "email": "[email protected]", "metadata": { "name": "Jane Doe" }, "updatedAt": "2024-01-01T00:00:00Z" } }