### CreateContact API Request Examples (Node, Ruby, PHP, Python) Source: https://docs.payplus.co.il/reference/sms-contacts Examples of how to call the CreateContact API endpoint using different programming languages. These snippets show how to construct the request with the necessary parameters and headers. ```javascript // Node.js Example (using fetch) const url = 'https://restapi.payplus.co.il/api/v1.0/SMS/CreateContact'; const options = { method: 'POST', headers: { 'accept': 'application/json', 'content-type': 'application/json', 'api-key': 'YOUR_API_KEY', 'secret-key': 'YOUR_SECRET_KEY' }, body: JSON.stringify({ first_name: 'John', last_name: 'Doe', phone: '9725346587912', customer_uid: 'optional_uid', birthday: '24-02-1987', language_code: 'HE' }) }; fetch(url, options) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` ```ruby # Ruby Example (using Net::HTTP) require 'net/http' require 'uri' require 'json' uri = URI.parse('https://restapi.payplus.co.il/api/v1.0/SMS/CreateContact') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true request = Net::HTTP::Post.new(uri.request_uri) request['accept'] = 'application/json' request['content-type'] = 'application/json' request['api-key'] = 'YOUR_API_KEY' request['secret-key'] = 'YOUR_SECRET_KEY' body = { first_name: 'John', last_name: 'Doe', phone: '9725346587912', customer_uid: 'optional_uid', birthday: '24-02-1987', language_code: 'HE' }.to_json request.body = body response = http.request(request) puts JSON.parse(response.body) ``` ```php // PHP Example (using cURL) $url = 'https://restapi.payplus.co.il/api/v1.0/SMS/CreateContact'; $apiKey = 'YOUR_API_KEY'; $secretKey = 'YOUR_SECRET_KEY'; $data = array( 'first_name' => 'John', 'last_name' => 'Doe', 'phone' => '9725346587912', 'customer_uid' => 'optional_uid', 'birthday' => '24-02-1987', 'language_code' => 'HE' ); $payload = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'accept: application/json', 'content-type: application/json', 'api-key: ' . $apiKey, 'secret-key: ' . $secretKey )); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { print_r(json_decode($response, true)); } curl_close($ch); ``` ```python # Python Example (using requests) import requests import json url = 'https://restapi.payplus.co.il/api/v1.0/SMS/CreateContact' headers = { 'accept': 'application/json', 'content-type': 'application/json', 'api-key': 'YOUR_API_KEY', 'secret-key': 'YOUR_SECRET_KEY' } data = { 'first_name': 'John', 'last_name': 'Doe', 'phone': '9725346587912', 'customer_uid': 'optional_uid', 'birthday': '24-02-1987', 'language_code': 'HE' } response = requests.post(url, headers=headers, data=json.dumps(data)) print(response.json()) ``` -------------------------------- ### CreateContact cURL Request Example Source: https://docs.payplus.co.il/reference/sms-contacts This cURL example demonstrates how to make a POST request to the CreateContact API endpoint. It includes the URL, request method, and necessary headers for content type and acceptance. ```shell curl --request POST \ --url https://restapi.payplus.co.il/api/v1.0/SMS/CreateContact \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` -------------------------------- ### Add Customer Request Examples (Node.js, Ruby, PHP, Python) Source: https://docs.payplus.co.il/reference/customers Illustrates how to make a POST request to the 'Add Customer' endpoint using various programming languages including Node.js, Ruby, PHP, and Python. These examples show request construction and header management. ```javascript // Node.js example (requires 'axios' or similar library) // const axios = require('axios'); // const url = 'https://restapi.payplus.co.il/api/v1.0/Customers/Add'; // const headers = { // 'accept': 'application/json', // 'content-type': 'application/json', // 'api-key': 'YOUR_API_KEY', // 'secret-key': 'YOUR_SECRET_KEY' // }; // const data = { // email: 'customer@example.com', // customer_name: 'John Doe', // // ... other parameters // }; // axios.post(url, data, { headers: headers }) // .then(response => console.log(response.data)) // .catch(error => console.error(error)); ``` ```ruby # Ruby example (requires 'net/http' or 'httparty') # require 'net/http' # require 'uri' # require 'json' # url = URI.parse('https://restapi.payplus.co.il/api/v1.0/Customers/Add') # http = Net::HTTP.new(url.host, url.port) # http.use_ssl = true # request = Net::HTTP::Post.new(url) # request['accept'] = 'application/json' # request['content-type'] = 'application/json' # request['api-key'] = 'YOUR_API_KEY' # request['secret-key'] = 'YOUR_SECRET_KEY' # payload = { # email: 'customer@example.com', # customer_name: 'John Doe', # # ... other parameters # }.to_json # request.body = payload # response = http.request(request) # puts JSON.parse(response.body) ``` ```php // PHP example (using cURL) // $url = 'https://restapi.payplus.co.il/api/v1.0/Customers/Add'; // $headers = [ // 'accept: application/json', // 'content-type: application/json', // 'api-key: YOUR_API_KEY', // 'secret-key: YOUR_SECRET_KEY' // ]; // $data = [ // 'email' => 'customer@example.com', // 'customer_name' => 'John Doe', // // ... other parameters // ]; // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_POST, true); // curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); // curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); // if (curl_errno($ch)) { // echo 'Error:' . curl_error($ch); // } else { // print_r(json_decode($response)); // } // curl_close($ch); ``` ```python # Python example (requires 'requests' library) # import requests # import json # url = 'https://restapi.payplus.co.il/api/v1.0/Customers/Add' # headers = { # 'accept': 'application/json', # 'content-type': 'application/json', # 'api-key': 'YOUR_API_KEY', # 'secret-key': 'YOUR_SECRET_KEY' # } # data = { # 'email': 'customer@example.com', # 'customer_name': 'John Doe', # # ... other parameters # } # response = requests.post(url, headers=headers, data=json.dumps(data)) # print(response.json()) ``` -------------------------------- ### Add Recurring Charge Ruby Example Source: https://docs.payplus.co.il/reference/recurring-charges Example implementation in Ruby for adding a recurring charge using the PayPlus API. It illustrates setting up the HTTP request with headers and the JSON payload. ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://restapi.payplus.co.il/api/v1.0/RecurringPayments/AddRecurringCharge/uid") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Post.new(url) request["accept"] = "application/json" request["content-type"] = "application/json" request["api-key"] = "YOUR_API_KEY" request["secret-key"] = "YOUR_SECRET_KEY" request.body = JSON.dump({ "terminal_uid": "YOUR_TERMINAL_UID", "card_token": "YOUR_CARD_TOKEN", "charge_date": "2020-12-16", "valid": true, "items": [ { # item details } ] }) response = http.request(request) puts response.read_body ``` -------------------------------- ### Submit Expense Record/File - Ruby Example Source: https://docs.payplus.co.il/reference/invoice-expenses Ruby code snippet for submitting a new expense record with a file attachment. This example would typically use the 'net/http' library or a gem like 'httparty' to make the API call. ```ruby # Ruby example not provided in the input text. # Placeholder for future implementation. ``` -------------------------------- ### Retrieve Bank List - Python Source: https://docs.payplus.co.il/reference/dictionary Python example using the 'requests' library to get the bank list from PayPlus API. It sends a GET request with the specified headers. ```python import requests url = "https://restapi.payplus.co.il/api/v1.0/Banks/List" headers = { "accept": "application/json" } response = requests.get(url, headers=headers) if response.status_code == 200: print(response.json()) else: print(f"Error: {response.status_code} - {response.text}") ``` -------------------------------- ### Add Product Ruby Example Source: https://docs.payplus.co.il/reference/products This Ruby code snippet demonstrates how to send a POST request to the PayPlus API using the 'net/http' library to add a product. It sets up the request with the correct URL, headers, and JSON body. ```ruby require 'net/http' require 'uri' require 'json' uri = URI.parse('https://restapi.payplus.co.il/api/v1.0/Products/Add') https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true request = Net::HTTP::Post.new(uri.request_uri) request['accept'] = 'application/json' request['content-type'] = 'application/json' body = { 'currency_code' => 'ILS', 'vat_type' => 0 }.to_json request.body = body response = https.request(request) puts "Status Code: #{response.code}" puts "Response Body: #{response.body}" ``` -------------------------------- ### Get IssuersCompanies (OpenAPI JSON) Source: https://docs.payplus.co.il/reference/clearingcompanies-copy This snippet represents the OpenAPI definition for the GET request to the /IssuersCompanies endpoint. It details the expected response structure for a successful request (200 OK), including an example JSON payload of issuer companies with their IDs, codes, and names. It also defines the structure for error responses (400 Bad Request). ```json { "openapi": "3.1.0", "info": { "title": "PayPlus - API Documentation - Production", "version": "1.0" }, "tags": [ { "name": "Dictionary" } ], "servers": [ { "url": "https://restapi.payplus.co.il/api/v1.0/", "description": "Production" }, { "url": "https://restapidev.payplus.co.il/api/v1.0/", "description": "Staging" } ], "security": [ {} ], "paths": { "/IssuersCompanies": { "get": { "tags": [ "Dictionary" ], "summary": "IsuersCompanies", "description": "", "operationId": "clearingcompanies-copy", "responses": { "200": { "description": "200", "content": { "application/json": { "examples": { "Result": { "value": "{\"isuuer\": [\n{\n\"id\": 1,\n\"code\": 1,\n\"name\": \"isracard\"\n},\n{\n\"id\": 2,\n\"code\": 2,\n\"name\": \"visacal\"\n},\n{\n\"id\": 3,\n\"code\": 3,\n\"name\": \"dinners\"\n},\n{\n\"id\": 5,\n\"code\": 5,\n\"name\": \"jcb\"\n},\n{\n\"id\": 6,\n\"code\": 6,\n\"name\": \"MAX\"\n},\n{\n\"id\": 4,\n\"code\": 4,\n\"name\": \"amex\"\n},\n{\n\"id\": 7,\n\"code\": 0,\n\"name\": \"foreign-card\"\n}\n]{ }" } } } } }, "400": { "description": "400", "content": { "application/json": { "examples": { "Result": { "value": "{}" } }, "schema": { "type": "object", "properties": {} } } } } }, "deprecated": false } } }, "x-readme": { "explorer-enabled": true, "proxy-enabled": true } } ``` -------------------------------- ### POST /websites/payplus_co_il/customers Source: https://docs.payplus.co.il/reference/create-a-resource This endpoint allows you to create a new customer in the system. ```APIDOC ## POST /websites/payplus_co_il/customers ### Description This endpoint allows you to create a new customer in the system. ### Method POST ### Endpoint /websites/payplus_co_il/customers ### Parameters #### Request Body - **name** (string) - Required - The name of the customer. - **email** (string) - Required - The email address of the customer. - **phone** (string) - Optional - The phone number of the customer. ### Request Example { "name": "John Doe", "email": "john.doe@example.com", "phone": "123-456-7890" } ### Response #### Success Response (201) - **id** (string) - The unique identifier of the newly created customer. - **message** (string) - A success message. #### Response Example { "id": "cust_12345", "message": "Customer created successfully." } ``` -------------------------------- ### Retrieve Bank List - Node.js Source: https://docs.payplus.co.il/reference/dictionary Example of retrieving a bank list using Node.js with the 'axios' library. This code makes a GET request to the PayPlus API and handles the JSON response. ```javascript const axios = require('axios'); const options = { method: 'GET', url: 'https://restapi.payplus.co.il/api/v1.0/Banks/List', headers: { 'accept': 'application/json' } }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); }); ``` -------------------------------- ### Retrieve Charged Payments (Ruby) Source: https://docs.payplus.co.il/reference/reports-recurring-payments This Ruby example uses the 'httparty' gem to send a GET request to the Charged endpoint. It illustrates how to specify the URL, query parameters, and headers required for the API call. ```ruby require 'httparty' url = 'https://restapi.payplus.co.il/api/v1.0/RecurringPaymentsReports/Charged' options = { query: { currency_code: 'ILS' }, headers: { 'accept' => 'application/json' } } response = HTTParty.get(url, options) puts response.body ``` -------------------------------- ### Add Product cURL Request Example Source: https://docs.payplus.co.il/reference/products This cURL command demonstrates how to send a POST request to the PayPlus API to add a new product. It includes the endpoint URL, required headers, and a sample JSON body specifying currency and VAT type. ```shell curl --request POST \ --url https://restapi.payplus.co.il/api/v1.0/Products/Add \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data \ '''{ "currency_code": "ILS", "vat_type": 0 } ''' ``` -------------------------------- ### Retrieve Charged Payments (Python) Source: https://docs.payplus.co.il/reference/reports-recurring-payments This Python example utilizes the 'requests' library to perform a GET request to the Charged endpoint. It demonstrates how to pass query parameters and headers for retrieving charged payment data. ```python import requests url = "https://restapi.payplus.co.il/api/v1.0/RecurringPaymentsReports/Charged" params = { "currency_code": "ILS" } headers = { "accept": "application/json" } response = requests.get(url, params=params, headers=headers) print(response.json()) ``` -------------------------------- ### List Payment Pages (cURL) Source: https://docs.payplus.co.il/reference/get_paymentpages-list Example using cURL to make a GET request to the PayPlus API to retrieve a list of payment pages. It requires the terminal UID and API/Secret keys for authentication. The response will be a JSON array of payment page objects. ```Shell curl -X GET "https://yourapi.com/PaymentPages/list/?terminal_uid={terminal_uid}" \ -H 'Authorization: {Authorization}' ``` -------------------------------- ### POST /Customers/Add Source: https://docs.payplus.co.il/reference/create-a-resource This endpoint allows you to create a new customer in the system. It requires API and secret keys for authentication and accepts customer details in the request body. ```APIDOC ## POST /Customers/Add ### Description This endpoint allows you to create a new customer in the system. ### Method POST ### Endpoint https://restapi.payplus.co.il/api/v1.0/Customers/Add ### Parameters #### Header Parameters - **api-key** (string) - Required - API Key - **secret-key** (string) - Required - Secret Key #### Request Body - **email** (string) - Required - Customer email address. - **customer_name** (string) - Required - Customer name. - **paying_vat** (boolean) - Optional - Let's the system know if the customer is paying VAT or not. (default: true) - **vat_number** (integer) - Optional - Customer or Company VAT number. - **customer_number** (string) - Optional - Internal customer number in the system. - **notes** (string) - Optional - Notes, comments, or additional information about the customer. - **phone** (string) - Optional - Customer phone number. - **contacts** (array) - Optional - Contact details associated with the customer. - **full_name** (string) - Contact's full name. - **cell_phone** (string) - Contact's cell phone number. - **contact_email** (string) - Contact's email address. - **contact_address** (string) - Contact's address. - **contact_city** (string) - Contact's city. - **contact_postal_code** (string) - Contact's postal code. - **contact_country_iso** (string) - Contact's country code (e.g., "IL"). - **job_position** (string) - Optional - Contact's job position. Enum: ["main-contact-person", "management", "technical-department", "accounting-and-finance", "legal-department", "personnel-department", "marketing-and-advertising-department", "other"] - **business_address** (object) - Optional - Business address details. ### Request Example ```json { "email": "test@example.com", "customer_name": "Test Customer", "paying_vat": true, "phone": "123456789", "contacts": [ { "full_name": "John Doe", "contact_email": "john.doe@example.com", "job_position": "main-contact-person" } ] } ``` ### Response #### Success Response (200) - **customer_id** (string) - The unique identifier for the newly created customer. - **status** (string) - Indicates the status of the operation (e.g., "success"). #### Response Example ```json { "customer_id": "cust_12345abc", "status": "success" } ``` ``` -------------------------------- ### Add Product Python Example Source: https://docs.payplus.co.il/reference/products This Python code snippet demonstrates how to use the 'requests' library to send a POST request to the PayPlus API for adding a product. It includes the necessary headers and a JSON payload for the request. ```python import requests import json url = 'https://restapi.payplus.co.il/api/v1.0/Products/Add' headers = { 'accept': 'application/json', 'content-type': 'application/json' } payload = { 'currency_code': 'ILS', 'vat_type': 0 } try: response = requests.post(url, headers=headers, data=json.dumps(payload)) response.raise_for_status() # Raise an exception for bad status codes print(response.json()) except requests.exceptions.RequestException as e: print(f'Error adding product: {e}') ``` -------------------------------- ### Get Transaction History with Python Source: https://docs.payplus.co.il/reference/reports-transactions This Python script provides an example of how to call the PayPlus Transactions History API. It uses the 'requests' library to construct and send a POST request, including the required API keys, terminal UID, and filter parameters. The script demonstrates error handling and printing the response data. ```python import requests import json api_key = 'YOUR_API_KEY' secret_key = 'YOUR_SECRET_KEY' terminal_uid = 'YOUR_TERMINAL_UID' url = 'https://restapi.payplus.co.il/api/v1.0/TransactionReports/TransactionsHistory' headers = { 'accept': 'application/json', 'content-type': 'application/json', 'api-key': api_key, 'secret-key': secret_key } payload = { 'terminal_uid': terminal_uid, 'filter': { # Add your filter parameters here }, 'skip': '0', 'take': '10' } try: response = requests.post(url, headers=headers, data=json.dumps(payload)) response.raise_for_status() # Raise an exception for bad status codes transactions = response.json() print(json.dumps(transactions, indent=2)) except requests.exceptions.RequestException as e: print(f"Error fetching transactions: {e}") ``` -------------------------------- ### Create Customer cURL Request Source: https://docs.payplus.co.il/reference/invoice-customers Example of how to create a new customer using a cURL request. This includes the POST method, URL, and necessary headers like 'accept' and 'content-type'. ```shell curl --request POST \ --url https://restapi.payplus.co.il/api/v1.0/books/customers \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` -------------------------------- ### Install Dependencies (Bash) Source: https://docs.payplus.co.il/reference/hosted-fields Command to install project dependencies using npm. This is a prerequisite for running the hosted fields demo locally. ```bash npm i ``` -------------------------------- ### Generate Payment Link Node.js Request Source: https://docs.payplus.co.il/update/reference/post_paymentpages-generatelink This example shows how to generate a payment link using Node.js with the 'axios' library. It constructs the request with the appropriate URL, headers, and data payload, mirroring the cURL example. ```javascript const axios = require('axios'); const requestData = { payment_page_uid: '7a0bc4d4-f35f-4301-a945-926378a2416d', currency_code: 'ILS', sendEmailApproval: true, sendEmailFailure: false }; const headers = { 'accept': 'application/json', 'content-type': 'application/json', 'api-key': 'YOUR_API_KEY', // Replace with your actual API Key 'secret-key': 'YOUR_SECRET_KEY' // Replace with your actual Secret Key }; axios.post('https://restapi.payplus.co.il/api/v1.0/PaymentPages/generateLink', requestData, { headers }) .then(response => { console.log('Payment link generated:', response.data); }) .catch(error => { console.error('Error generating payment link:', error.response ? error.response.data : error.message); }); ``` -------------------------------- ### GET /Products/View Source: https://docs.payplus.co.il/reference/get_products-view Retrieves a list of products. Filters can be applied using UID, currency code, or barcode. Pagination is supported with skip and take parameters. ```APIDOC ## GET /Products/View ### Description This endpoint allows you to retrieve a list of products with optional filters for UID, currency code, or barcode. ### Method GET ### Endpoint `/Products/View` ### Parameters #### Query Parameters - **barcode** (string) - Optional - View a specific product by its barcode. - **currency_code** (string) - Optional - View all products with the same currency code. Allowed values: ILS, USD, EUR, GPB. - **uid** (string) - Optional - View a specific product by its UID. - **skip** (string) - Optional - From where you want to start taking records. Example: "0". - **take** (string) - Optional - Required if skip has a value. Max 500. Specifies the number of records to take. Example: "5". #### Headers - **api-key** (string) - Required - API Key - **secret-key** (string) - Required - Secret Key ### Request Example ```json { "query": { "barcode": "12345", "currency_code": "USD", "uid": "product-abc", "skip": "0", "take": "10" }, "headers": { "api-key": "YOUR_API_KEY", "secret-key": "YOUR_SECRET_KEY" } } ``` ### Response #### Success Response (200) - **(object)** - Represents the product data. The schema for the product object is not detailed in the provided OpenAPI definition. #### Response Example ```json { "products": [ { "uid": "product-1", "name": "Sample Product 1", "currency_code": "USD", "barcode": "11111", "price": 19.99 }, { "uid": "product-2", "name": "Sample Product 2", "currency_code": "USD", "barcode": "22222", "price": 25.50 } ], "total_count": 2 } ``` #### Error Response (400) - **(object)** - Represents an error response. The schema for error objects is not detailed in the provided OpenAPI definition. #### Error Response Example ```json { "error": { "code": "INVALID_PARAMETER", "message": "Invalid currency code provided." } } ``` ``` -------------------------------- ### Payplus API Request Parameters and Response Example Source: https://docs.payplus.co.il/reference/get_books-docs-list This snippet details the query parameters for searching documents, including status, amounts, tags, payment types, and external IDs. It also includes required header parameters like 'api-key' and 'secret-key'. The example response shows the structure of a successful API call, returning document details such as barcode, brand information, customer data, and document links. ```json { "barcode": "472819632332439", "brand": { "name": "Company Name", "uuid": "67a8cc93-75ac-4832-8386-3eb5b24bf3d0" }, "copyDocAddress": "https://restapi.payplus.co.il/getdoc/s/c/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf", "currency_code": "ILS", "customer": { "customer_name": "John Doe", "email": "johndoe@example.com", "phone": "123456789", "subject_code": "987654321", "uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc", "vat_number": "1231231" }, "customer_uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc", "docUID": "1fa79282-61d1-4898-b7b9-afa67f46d34a", "doc_date": "2022-11-15", "doc_type": "inv_tax", "more_info": null, "number": "SCP/50042", "originalDocAddress": "https://restapi.payplus.co.il/getdoc/s/o/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf", "total_items_base_currency": 150, "validDocumentGenerated": true } ``` -------------------------------- ### Add Recurring Charge Node.js Example Source: https://docs.payplus.co.il/reference/recurring-charges Example implementation in Node.js for adding a recurring charge using the PayPlus API. It shows how to construct the request with appropriate headers and data. ```javascript const url = 'https://restapi.payplus.co.il/api/v1.0/RecurringPayments/AddRecurringCharge/uid'; const apiKey = 'YOUR_API_KEY'; const secretKey = 'YOUR_SECRET_KEY'; fetch(url, { method: 'POST', headers: { 'accept': 'application/json', 'content-type': 'application/json', 'api-key': apiKey, 'secret-key': secretKey }, body: JSON.stringify({ terminal_uid: 'YOUR_TERMINAL_UID', card_token: 'YOUR_CARD_TOKEN', charge_date: '2020-12-16', valid: true, items: [ { // item details } ] }) }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### Add Customer Request (cURL) Source: https://docs.payplus.co.il/reference/customers Example cURL request for adding a new customer. This demonstrates the POST method, URL, and necessary headers like 'accept' and 'content-type'. ```shell curl --request POST \ --url https://restapi.payplus.co.il/api/v1.0/Customers/Add \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` -------------------------------- ### GET Deposit List Request (cURL) Source: https://docs.payplus.co.il/reference/deposit This cURL command demonstrates how to make a GET request to the PayPlus API to list deposits. It requires the base URL and specifies the 'accept' header for JSON responses. ```Shell curl --request GET \ --url https://restapi.payplus.co.il/api/v1.0/Deposit/list \ --header 'accept: application/json' ```