Create pay method
POST
/api/v2/payments/createPayment Method Types Type Description 1 Cash 2 Card 3 Other 4 Gift Card 5 Credit Account 6 3rd party
Request
Body Params application/json
name
object
required
en
string
required
ar
string
required
type
string
required
auto_open_drawer
string
required
ecr_enabled
string
required
zatca_payment_code
string
required
Example
{
"name": {
"en": "string|required",
"ar": "string|required"
},
"type": "int|required",
"auto_open_drawer": "bool",
"ecr_enabled": "bool",
"zatca_payment_code": "int|required"
}
Responses
Create pay method(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
uuid
string
required
name
object
required
en
string
required
ar
string
required
type
string
required
ecr_enabled
boolean
required
auto_open_drawer
boolean
required
ExampleCreate pay method
{
"uuid": "01h6p1n6rmmad6cqy2gqba60fs",
"name": {
"en": "Cash 2",
"ar": "كاش"
},
"type": "1",
"ecr_enabled": true,
"auto_open_drawer": true
}
Modified at 9 months ago