post https://api.elements-sandbox.io/api/v1/charges
Responses
xxxxxxxxxx
15curl --location --request POST 'https://api.elements-sandbox.io/api/v1/charges' \
--header 'Idempotency-Key: Idempotency-Key-test' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ....' \
--data-raw '{
"amount":3000,
"description": "test",
"capture": true,
"currency": "USD",
"payment_method_id": "PM-qpDvnxWsug9fxc6cdNboN5YG",
"external_customer_id": "4521902.external_customer_id",
"metadata": {
"example_metadata_key": "example_metadata_value"
}
}'