cURL
curl --request POST \ --url https://sandbox.api.hixbe.com/payment/customers/{id}/payment_methods \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Hixbe-Version: <hixbe-version>' \ --data ' { "payment_method": "pm_card_123", "set_default": true } '
{ "id": "cus_123", "email": "jsmith@example.com", "name": "<string>", "phone": "<string>", "metadata": {}, "default_payment_method": "<string>", "created_at": "2023-11-07T05:31:56Z" }
Use your secret API key. Example: Authorization: Bearer sk_test_xxx
Authorization: Bearer sk_test_xxx
API version header. Use '2026-01-01' for the latest version.
Customer updated
"cus_123"
Show child attributes
Was this page helpful?