PayPing
v0.3.2PayPing merchant account for agents: balance, sales, invoices; create invoices and payment links.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
payping_get_profile PayPing: account profile
Show the PayPing account behind PAYPING_TOKEN: username, name, email, phone and verification flags.
payping_get_balance PayPing: wallet balance
Current PayPing wallet balance in Toman (money received and not yet withdrawn).
payping_get_sales_summary PayPing: sales summary
Sales totals for a period (default last 30 days): amount in Toman, count, daily averages.
| Parameter | Type | Description |
|---|---|---|
from_date | First day, YYYY-MM-DD UTC. | |
to_date | Last day, YYYY-MM-DD UTC. |
payping_list_transactions PayPing: list transactions
List payments, newest first, with total count. Use payping_get_payment for one payment's detail.
| Parameter | Type | Description |
|---|---|---|
from_date | First day, YYYY-MM-DD UTC. | |
kind | received = to you, paid = by you; omit for both. | |
limit | integer | |
offset | integer | |
to_date | Last day, YYYY-MM-DD UTC. |
payping_get_payment PayPing: payment detail
One payment by code: amount, payer, fees, refund state, paymentStatus and status_text. Use to check a payment succeeded.
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_list_withdrawals PayPing: list withdrawals
List settlements (withdrawals to your bank) with total count.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
payping_get_withdrawal PayPing: withdrawal detail
One settlement by code: amount, dates, IBAN, bank tracking number.
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_list_customers PayPing: list customers
List saved customers with total count.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer | |
search |
payping_get_customer PayPing: customer detail
One customer by code.
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_list_products PayPing: list products
List products (PayPing "financial items") with total count.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean | Include archived items. |
limit | integer | |
offset | integer | |
search |
payping_get_product PayPing: product detail
One product by code.
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_list_coupons PayPing: list coupons
List discount coupons (type 0 = percent, 1 = Toman) with total count.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean | Include archived items. |
limit | integer | |
offset | integer | |
search |
payping_get_coupon PayPing: coupon detail
One coupon by code: expiry, max uses, buyers and their spend.
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_list_invoices PayPing: list invoices
List invoices (status 0 draft, 1 awaiting payment, 2 paid, 3 overdue, 4 cancelled) with total count.
| Parameter | Type | Description |
|---|---|---|
customer_code | ||
limit | integer | |
offset | integer | |
search | ||
status |
payping_get_invoice PayPing: invoice detail
One invoice by code with items, customer, status and `url` (public pay page).
| Parameter | Type | Description |
|---|---|---|
code * | string |
payping_create_customer PayPing: create customer
Save a new customer; returns its `code` (needed for invoices). Confirm details with the user first.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | |
last_name * | string | |
business_name | ||
email | ||
is_business | boolean | Company (legal person). |
memo | Private note. | |
national_id | National or economic code. | |
phone | e.g. 09121234567. |
payping_create_product PayPing: create product
Create a product; returns its `code`. Then payping_create_payment_link makes its public page. Confirm title and price with the user first.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
amount_set_by_payer | boolean | Payer types the amount; no price. |
amount_toman | Price in Toman. | |
description | ||
has_tax | boolean | Add VAT to the price. |
quantity | Stock; omit for unlimited. |
payping_create_payment_link PayPing: create payment link
Make a permanent public payment page for a product; returns `url`. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
product_code * | string | |
ask_address | boolean | Ask the payer for a postal address. |
redirect_url | https:// page after payment. |
payping_create_coupon PayPing: create coupon
Create an active discount coupon; returns its `code`. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Percent (1-100) or Toman, per `kind`. |
kind * | string | Percent off or fixed Toman off. |
name * | string | |
coupon_code | Omit to generate. | |
expires_on | Last valid day (YYYY-MM-DD). | |
max_uses | ||
product_codes | Omit for all products. |
payping_create_invoice PayPing: create invoice
Create an invoice for a saved customer; returns `code`, `payCode`, `url` (pay page). Not sent: use payping_send_invoice or share the url. Confirm customer, items and prices with the user first.
| Parameter | Type | Description |
|---|---|---|
customer_code * | string | From payping_create_customer. |
items * | array | |
due_date | Pay by this day (YYYY-MM-DD). | |
notes | Shown to the customer. | |
title |
payping_send_invoice PayPing: send invoice
Send an invoice to its customer by SMS/email. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
code * | string |