This article is intended for developers who use the Qoyod API to create invoices programmatically. When creating an invoice using the API, the payment method is specified through a dedicated field with a fixed numeric value that represents the payment type.
Required Field
The payment method is passed using the following key:
"payment_method": "10"
Supported Payment Method Values
-
10 → Cash
-
30 → Credit
-
42 → Payment to bank account
-
48 → Bank Card
-
1 → Not defined
Important Notes
-
You must enter the correct numeric value according to the required payment method.
-
Any unsupported value may result in the request being rejected or the invoice being created incorrectly, and the following error will appear: {“errors”:{“payment_method”:[“Please select payment mean”,”Not included”]}} .
-
If no payment method is specified, you can use the value 1 (Not defined).