TransactionByDevice
POST
https://restapidev.payplus.co.il/api/v1.0/Device/TransactionByDeviceסביבה
כותרות (Headers)
stringחובה
API Key
stringחובה
Secret Key
גוף הבקשה
| שדה | סוג | תיאור |
|---|---|---|
amountחובה | number | |
customer | object | |
customer.uid | string | to allocate the payment to specific customer |
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 | |
customer.postal_code | string | |
customer.customer_nameחובה | string | Important in case you working with invoicing company |
payments | object | |
payments.number | integer (int) | Number of payments |
payments.first_amount | integer (int) | First Payment |
payments.nonfirst_amount | integer (int) | Remaining payments |
products | object[] | nullable if send in item "product_uid" we will use this product or send error, if send "name" and not "product_uid" we will create new product with this name. more option to send if ("name" && !product_uid): vat_type, barcode, value,price.last option we will use default product. |
products[].name | string | |
products[].price | string | |
products[].quantity | string | |
products[].vat_type | integer (int) | 'vat included' OR 1-'vat not included' OR 2- 'exempt vat' |
products[].product_uid | string | Unique identifier for product |
products[].currency_code | string | EX: ILS |
products[].discount_type | string | percentage' OR 'amount |
products[].discount_value | number (int) | Required if discount type have value |
products[].product_invoice_extra_details | string | |
device_uidחובה | string | Unique Device Identifier (UID) from the PayPlus system |
extra_info | string | |
paying_vat | boolean | nullable (In case you would like to that invoice / document will be with VAT or without VAT, This parameter is not required) |
cashier_uid | string | unique identifier (UID) associated with a cashier account from the PayPlus system |
callback_url | string | nullable (We will send you webhook once the transaction approved). Example: https://www.domain.com/callback/ |
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 | To allocate the payment to specific customer |
minimize_app | boolean | |
charge_methodחובה | integer (int) | Use this parameter to define the appropriate transaction action based on the customer's request and system requirements 0 - Check (J2) 1 - Charge (J4) 2 - Approval (J5) 4 - Refund (J4) |
currency_codeחובה | string | |
initial_invoice | boolean | nullable (In case you have invoice company and it's activated in your payment page, you can decide if for spesfic transaction invoice will be initial or not, to use default please don't send this parameter at all) |
custom_invoice_name | string | nullable (In case you have integrated invoice company you can decide if the invoice customer name will be different then the "customer_name" parameter in customer object) |
עריכת גוף הבקשה
תשובות
200 200
| שדה | סוג | תיאור |
|---|---|---|
data | object | |
data.data | object | |
data.data.items | object[] | |
data.data.items[].vat | any | |
data.data.items[].name | string | |
data.data.items[].quantity | integer | |
data.data.items[].discount_type | any | |
data.data.items[].discount_value | any | |
data.data.items[].quantity_price | number | |
data.data.items[].discount_amount | integer | |
data.data.cashier_uid | string | |
data.data.cashier_name | string | |
data.data.customer_uid | string | |
data.data.terminal_uid | string | |
data.data.card_information | object | |
data.data.card_information.token | string | |
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.add_data | any | |
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.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 |