Approval Transaction (J5)
POST
https://restapidev.payplus.co.il/api/v1.0/Transactions/Approvalסביבה
כותרות (Headers)
stringחובה
API Key
stringחובה
Secret Key
גוף הבקשה
| שדה | סוג | תיאור |
|---|---|---|
id | string | Payer credit card holder identification number |
notes | string | |
token | string | Required only if use_token is true |
amountחובה | number | |
customer | object | |
customer.city | string | |
customer.emailחובה | string | By this field we will search for a customer and allocate the payment under the client |
customer.phone | string | |
customer.address | string | |
customer.full_name | string | In case the customer is a company, contact personal name can be sent using this field |
customer.cell_phone | string | |
customer.vat_number | string | In case email are not sent, we will search for a customer by this field |
customer.country_ISO | string | EX: IL |
customer.customer_nameחובה | string | Important in case you working with invoicing company |
payments | object[] | Optional |
payments[].number | integer (int) | Number of payments |
payments[].first_amount | integer (int) | First Payment |
payments[].nonfirst_amount | integer (int) | Remaining payments |
products | object[] | Optional ,Array of objects |
products[].name | string | |
products[].price | string | product price |
products[].quantity | string | product quantity. Example: 1 |
products[].vat_type | string | 'vat included' OR 1-'vat not included' OR 2- 'exempt vat' |
products[].product_uid | string | Unique identifier for product. Example: de11bca8-416e-4b47-9e5a-0040e21b0b3f |
products[].currency_code | string | EX: ILS |
products[].discount_type | string | amount OR percentage |
products[].discount_value | integer | |
products[].product_invoice_extra_details | string | Example: some text |
use_tokenחובה | boolean | If true , token is required |
extra_info | string | |
cashier_uidחובה | string | Unique identifier for cashier |
credit_card | object | Required if use token is false |
credit_card.cvv | string | |
credit_card.exp_mm | string | required if send credit card |
credit_card.exp_yy | string | required if send credit card |
credit_card.number | string | required if send credit card |
credit_card.auth_number | string | authorization number from credit company |
more_info_1 | string | nullable (Additional Information) |
more_info_2 | string | nullable (Additional Information) |
more_info_3 | string | nullable (Additional Information) |
more_info_4 | string | nullable (Additional Information) |
more_info_5 | string | nullable (Additional Information) |
create_token | boolean | nullable (In case you have tokenization permission, you can decide if you would like to return the token of the customer for future charges) |
credit_termsחובה | integer (int) | 1-regular OR 6-credit OR 8-payment |
customer_uid | string | Mandatory if use_token is true, customer object can be used instead |
terminal_uidחובה | string | Unique identifier for terminal |
currency_codeחובה | string | |
customer_name_invoice | string | Required only if customer_uid is null and have integrated invoice system |
עריכת גוף הבקשה
תשובות
200 200
| שדה | סוג | תיאור |
|---|---|---|
data | object | |
data.data | object | |
data.data.items | object[] | |
data.data.items[].name | string | |
data.data.items[].quantity | string | |
data.data.items[].amount_pay | integer | |
data.data.items[].product_uid | string | |
data.data.items[].discount_type | string | |
data.data.items[].discount_value | integer | |
data.data.items[].quantity_price | number | |
data.data.items[].discount_amount | integer | |
data.data.cashier_uid | string | |
data.data.customer_uid | string | |
data.data.terminal_uid | string | |
data.data.card_information | object | |
data.data.card_information.brand_id | integer | |
data.data.card_information.issuer_id | integer | |
data.data.card_information.clearing_id | integer | |
data.data.card_information.expiry_year | string | |
data.data.card_information.four_digits | string | |
data.data.card_information.expiry_month | string | |
data.transaction | object | |
data.transaction.uid | string | |
data.transaction.date | string | |
data.transaction.type | string | |
data.transaction.amount | number | |
data.transaction.number | string | |
data.transaction.currency | string | |
data.transaction.payments | object | |
data.transaction.payments.number_of_payments | integer | |
data.transaction.payments.first_payment_amount | integer | |
data.transaction.payments.rest_payments_amount | integer | |
data.transaction.secure3D | object | |
data.transaction.secure3D.status | boolean | |
data.transaction.secure3D.tracking | any | |
data.transaction.more_info | string | |
data.transaction.more_info_1 | string | |
data.transaction.more_info_2 | string | |
data.transaction.more_info_3 | string | |
data.transaction.more_info_4 | string | |
data.transaction.more_info_5 | string | |
data.transaction.status_code | string | |
data.transaction.credit_terms | string | |
data.transaction.voucher_number | string | |
data.transaction.approval_number | string | |
results | object | |
results.code | integer | |
results.status | string | |
results.description | string |