---
title: "Refund by Credit Card"
description: "Refund by Credit Card"
source: https://docs.payplus.co.il/en/payplus/latest/post-transactions-refund
language: en
product: payplus
version: v1
updated: 2025-05-28
---

# Refund by Credit Card

Refund by Credit Card

**POST** `/Transactions/Refund`

- Production: `https://restapi.payplus.co.il/api/v1.0/`
- Staging: `https://restapidev.payplus.co.il/api/v1.0/`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `api-key` | header | string | yes | API Key |
| `secret-key` | header | string | yes | Secret Key |

**Request body** (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string |  | Payer credit card holder identification number |
| `notes` | string |  |  |
| `token` | string |  | Required only if use_token is true |
| `amount` | number | yes |  |
| `customer` | object |  |  |
| `customer.city` | string |  |  |
| `customer.email` | string | yes | 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 | yes | Important in case you working with invoicing company |
| `payments` | array |  | Optional |
| `payments[].number` | integer |  | Number of payments |
| `payments[].first_amount` | integer |  | First Payment |
| `payments[].nonfirst_amount` | integer |  | Remaining payments |
| `products` | array |  | Optional ,Array of objects |
| `products[].vat` | number |  |  |
| `products[].name` | string |  |  |
| `products[].price` | string |  | product price |
| `products[].quantity` | string |  | product quantity. Example: 1 |
| `products[].product_uid` | string |  | Unique identifier for product. Example: de11bca8-416e-4b47-9e5a-0040e21b0b3f |
| `products[].currency_code` | string |  | EX: ILS |
| `products[].discount_type` | string |  | 'percentage' OR 'amount' |
| `products[].discount_value` | number |  | Required if discount type have value |
| `products[].product_invoice_extra_details` | string |  |  |
| `use_token` | boolean | yes | If true , token is required |
| `extra_info` | string |  |  |
| `cashier_uid` | any | yes |  |
| `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 | yes | 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 | yes | Unique identifier for terminal |
| `currency_code` | string | yes |  |
| `initial_invoice` | boolean |  | As long your account connected to Invoice+ we will generate document for this action |
| `customer_name_invoice` | string |  | Required only if customer_uid is null and have integrated invoice system |

```json
{
  "id": "string",
  "notes": "string",
  "token": "string",
  "amount": 0,
  "customer": {
    "city": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "full_name": "string",
    "cell_phone": "string",
    "vat_number": "string",
    "country_ISO": "string",
    "customer_name": "string"
  },
  "payments": [
    {
      "number": 0,
      "first_amount": 0,
      "nonfirst_amount": 0
    }
  ],
  "products": [
    {
      "vat": 0,
      "name": "string",
      "price": "string",
      "quantity": "string",
      "product_uid": "string",
      "currency_code": "string",
      "discount_type": "percentage",
      "discount_value": 0,
      "product_invoice_extra_details": "string"
    }
  ],
  "use_token": false,
  "extra_info": "string",
  "cashier_uid": null,
  "credit_card": {
    "cvv": "string",
    "exp_mm": "string",
    "exp_yy": "string",
    "number": "string",
    "auth_number": "string"
  },
  "more_info_1": "string",
  "more_info_2": "string",
  "more_info_3": "string",
  "more_info_4": "string",
  "more_info_5": "string",
  "create_token": false,
  "credit_terms": 1,
  "customer_uid": "string",
  "terminal_uid": "string",
  "currency_code": "ILS",
  "initial_invoice": false,
  "customer_name_invoice": "string"
}
```

**Response 200** — 200

```json
{
  "results": {
    "status": "success",
    "code": 0,
    "description": "operation has been success"
  },
  "data": {
    "transaction": {
      "uid": "8a81c540-1eb5-4b08-a48d-19d6ca620724",
      "number": "cb648",
      "type": "internal_page",
      "date": "2021-01-07 16:31:19",
      "status_code": "000",
      "amount": 900,
      "currency": "ILS",
      "credit_terms": "regular",
      "payments": {
        "number_of_payments": 1,
        "first_payment_amount": 0,
        "rest_payments_amount": 0
      },
      "secure3D": {
        "status": false,
        "tracking": null
      },
      "approval_number": "0000000",
      "voucher_number": "07-480-074",
      "more_info": "Smart TV",
      "more_info_1": "Additional 1",
      "more_info_2": "Additional 2",
      "more_info_3": "Additional 3",
      "more_info_4": "Additional 4",
      "more_info_5": "Additional 5"
    },
    "data": {
      "customer_uid": "ef76432c-769a-43a6-ba7a-6f70272539d8",
      "terminal_uid": "97432e96-3c21-4eb2-9d64-1067e845b35a",
      "cashier_uid": "1bc7b001-d90c-43b3-a8bb-58ab8a3013ba",
      "items": [
        {
          "amount_pay": 910,
          "discount_amount": 10,
          "discount_type": "amount",
          "discount_value": 10,
          "quantity": "1",
          "quantity_price": 747,
          "product_uid": "ba4c68a6-0e26-4bc7-b26c-675f87761c3a",
          "name": "Smart TV"
        }
      ],
      "card_information": {
        "four_digits": "1175",
        "expiry_month": "06",
        "expiry_year": "25",
        "clearing_id": 4,
        "brand_id": 1,
        "issuer_id": 4
      }
    }
  }
}
```

**Response 400** — 400

```json
{}
```
