Create new Charge

This endpoint initiates a charge request to charge a knet or any other payment source.

🚧

Do not forget to add your api credentials in the headers.

X-Ecom-Api-Token
X-Ecom-Mid

You can get these keys from your Ecom dashboard (API-Credentials) tab

Body Params
amount
object
required

Transaction amount details

options
object
required

Charge options

urls
object

URLs for redirect actions

customer
object

Customer details

references
object

Transaction references

string

Transaction description

order
object

Order details

string
enum
Defaults to en

Language of the transaction

Allowed:
metadata
object

Transaction metadata

vendors
array of objects

List of vendors

vendors
Headers
string
required
Defaults to 123456

Your mid

Responses

201

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json