curl --request POST \
--url https://api.wizcommerce.com/v1/payment-methods \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"reference_id": "CRD_1234567890",
"customer_id": "00000000-0000-0000-0000-000000000000",
"provider": "stripe",
"external_customer_id": "cus_ABC123456",
"payment_method_type": "card",
"card_type": "debit",
"brand": "visa",
"card_expiry": "09/25",
"last_four_digits": "1111",
"display_name": "John Doe",
"is_default": false,
"token": "PIuTv1UgBqESZ2KRDixPtDJt~1234567890",
"address_line_1": "123 Main St",
"address_line_2": "Apt 101",
"city": "Anytown",
"state": "CA",
"country": "US",
"zip_code": "12345",
"email": "john.doe@example.com",
"phone": "+14155552671",
"first_name": "John",
"last_name": "Doe"
}'
{
"data": {
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"reference_id": "EXT-878",
"customer_id": "CST-137",
"provider": "stax",
"payment_method_type": "card",
"card_type": "debit",
"brand": "visa",
"status": "active",
"card_expiry": "09/25",
"last_four_digits": "1234",
"display_name": "John Doe",
"token": "PIuTv1UgBqESZ2KRDixPtDJt~1234567890",
"address_line_1": "123 Main St",
"address_line_2": "Apt 101",
"city": "Anytown",
"state": "CA",
"country": "US",
"zip_code": "12345",
"email": "john.doe@example.com",
"phone": "+14155552671",
"first_name": "John",
"last_name": "Doe",
"created_at": "2025-01-01T15:04:05Z",
"updated_at": "2025-01-01T15:04:05Z",
"is_default": false
}
}
Create payment method
curl --request POST \
--url https://api.wizcommerce.com/v1/payment-methods \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"reference_id": "CRD_1234567890",
"customer_id": "00000000-0000-0000-0000-000000000000",
"provider": "stripe",
"external_customer_id": "cus_ABC123456",
"payment_method_type": "card",
"card_type": "debit",
"brand": "visa",
"card_expiry": "09/25",
"last_four_digits": "1111",
"display_name": "John Doe",
"is_default": false,
"token": "PIuTv1UgBqESZ2KRDixPtDJt~1234567890",
"address_line_1": "123 Main St",
"address_line_2": "Apt 101",
"city": "Anytown",
"state": "CA",
"country": "US",
"zip_code": "12345",
"email": "john.doe@example.com",
"phone": "+14155552671",
"first_name": "John",
"last_name": "Doe"
}'
{
"data": {
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"reference_id": "EXT-878",
"customer_id": "CST-137",
"provider": "stax",
"payment_method_type": "card",
"card_type": "debit",
"brand": "visa",
"status": "active",
"card_expiry": "09/25",
"last_four_digits": "1234",
"display_name": "John Doe",
"token": "PIuTv1UgBqESZ2KRDixPtDJt~1234567890",
"address_line_1": "123 Main St",
"address_line_2": "Apt 101",
"city": "Anytown",
"state": "CA",
"country": "US",
"zip_code": "12345",
"email": "john.doe@example.com",
"phone": "+14155552671",
"first_name": "John",
"last_name": "Doe",
"created_at": "2025-01-01T15:04:05Z",
"updated_at": "2025-01-01T15:04:05Z",
"is_default": false
}
}
API Key for authentication
body
The body is of type object
.
Created
The response is of type object
.
Was this page helpful?