Skip to content
Docs
Menu
View as Markdown

Refund by Credit Card

Refund by Credit Card

POSThttps://restapidev.payplus.co.il/api/v1.0/Transactions/Refund

Environment

Headers

stringrequired
API Key
stringrequired
Secret Key

Request body application/json

FieldTypeDescription
idstringPayer credit card holder identification number
notesstring
tokenstringRequired only if use_token is true
amountrequirednumber
customerobject
customer.citystring
customer.emailrequiredstringBy this field we will search for a customer and allocate the payment under the client
customer.phonestring
customer.addressstring
customer.full_namestringIn case the customer is a company, contact personal name can be sent using this field
customer.cell_phonestring
customer.vat_numberstringIn case email are not sent, we will search for a customer by this field
customer.country_ISOstringEX: IL
customer.customer_namerequiredstringImportant in case you working with invoicing company
paymentsobject[]Optional
payments[].numberinteger (int)Number of payments
payments[].first_amountinteger (int)First Payment
payments[].nonfirst_amountinteger (int)Remaining payments
productsobject[]Optional ,Array of objects
products[].vatnumber (int)
products[].namestring
products[].pricestringproduct price
products[].quantitystringproduct quantity. Example: 1
products[].product_uidstringUnique identifier for product. Example: de11bca8-416e-4b47-9e5a-0040e21b0b3f
products[].currency_codestringEX: ILS
products[].discount_typestring'percentage' OR 'amount'One of: percentage, amount
products[].discount_valuenumber (int)Required if discount type have value
products[].product_invoice_extra_detailsstring
use_tokenrequiredbooleanIf true , token is required
extra_infostring
cashier_uidrequiredany
credit_cardobjectRequired if use token is false
credit_card.cvvstring
credit_card.exp_mmstringrequired if send credit card
credit_card.exp_yystringrequired if send credit card
credit_card.numberstringrequired if send credit card
credit_card.auth_numberstringauthorization number from credit company
more_info_1stringnullable (Additional Information)
more_info_2stringnullable (Additional Information)
more_info_3stringnullable (Additional Information)
more_info_4stringnullable (Additional Information)
more_info_5stringnullable (Additional Information)
create_tokenbooleannullable (In case you have tokenization permission, you can decide if you would like to return the token of the customer for future charges)
credit_termsrequiredinteger (int)1-regular OR 6-credit OR 8-paymentOne of: 1, 6, 8
customer_uidstringMandatory if use_token is true, customer object can be used instead
terminal_uidrequiredstringUnique identifier for terminal
currency_coderequiredstring
initial_invoicebooleanAs long your account connected to Invoice+ we will generate document for this action
customer_name_invoicestringRequired only if customer_uid is null and have integrated invoice system
Edit the request body

Responses

200 200
FieldTypeDescription
dataobject
data.dataobject
data.data.itemsobject[]
data.data.items[].namestringExample: Smart TV
data.data.items[].quantitystringExample: 1
data.data.items[].amount_payintegerExample: 910
data.data.items[].product_uidstringExample: ba4c68a6-0e26-4bc7-b26c-675f87761c3a
data.data.items[].discount_typestringExample: amount
data.data.items[].discount_valueintegerExample: 10
data.data.items[].quantity_priceintegerExample: 747
data.data.items[].discount_amountintegerExample: 10
data.data.cashier_uidstringExample: 1bc7b001-d90c-43b3-a8bb-58ab8a3013ba
data.data.customer_uidstringExample: ef76432c-769a-43a6-ba7a-6f70272539d8
data.data.terminal_uidstringExample: 97432e96-3c21-4eb2-9d64-1067e845b35a
data.data.card_informationobject
data.data.card_information.brand_idintegerExample: 1
data.data.card_information.issuer_idintegerExample: 4
data.data.card_information.clearing_idintegerExample: 4
data.data.card_information.expiry_yearstringExample: 25
data.data.card_information.four_digitsstringExample: 1175
data.data.card_information.expiry_monthstringExample: 06
data.transactionobject
data.transaction.uidstringExample: 8a81c540-1eb5-4b08-a48d-19d6ca620724
data.transaction.datestringExample: 2021-01-07 16:31:19
data.transaction.typestringExample: internal_page
data.transaction.amountnumber
data.transaction.numberstringExample: cb648
data.transaction.currencystringExample: ILS
data.transaction.paymentsobject
data.transaction.payments.number_of_paymentsintegerExample: 1
data.transaction.payments.first_payment_amountintegerExample: 0
data.transaction.payments.rest_payments_amountintegerExample: 0
data.transaction.secure3Dobject
data.transaction.secure3D.statusbooleanExample: false
data.transaction.secure3D.trackingany
data.transaction.more_infostringExample: Smart TV
data.transaction.more_info_1stringExample: Additional 1
data.transaction.more_info_2stringExample: Additional 2
data.transaction.more_info_3stringExample: Additional 3
data.transaction.more_info_4stringExample: Additional 4
data.transaction.more_info_5stringExample: Additional 5
data.transaction.status_codestringExample: 000
data.transaction.credit_termsstringExample: regular
data.transaction.voucher_numberstringExample: 07-480-074
data.transaction.approval_numberstringExample: 0000000
resultsobject
results.codeintegerExample: 0
results.statusstringExample: success
results.descriptionstringExample: operation has been success
400 400
Was this page helpful?
Ask AI

Ask a question about PayPlus. Answers come from the published docs, with links to the pages they use.

AI answers can be wrong. Check the linked pages.

Your PayPlus accountOpen in a new tab