{ "success": false, "error": { "status": 400, "code": "DUPLICATE_ENTRY", "message": "Customer with this email already exists" }, "data": null }
Create a new customer
curl -X POST https://api.transaction.gg/merchant/customer/create \ -H "Authorization: Bearer jwt_token" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "metadata": { "name": "John Doe", "phone": "+1234567890" } }'
{ "success": true, "data": { "id": "cus_V6n6SN2KnsIFCuQU", "email": "[email protected]", "metadata": { "name": "John Doe", "phone": "+1234567890" }, "createdAt": "2024-01-01T00:00:00Z" } }