Create and share a payment link
curl -X POST "https://test-api.kashier.io/v2/payment-link/create-and-share" \ -H "Content-Type: application/json" \ -d '{ "customer": { "name": "John Doe", "emailAddress": "[email protected]" }, "totalAmount": 100, "description": "Invoice for services", "isManualCapture": false, "paymentType": "simple", "currency": "EGP", "state": "submitted", "extraFees": [], "items": [], "isSuspendedPayment": false, "referenceId": "123ss456" }'{ "message": "string", "data": { "_id": "string", "paymentLinkId": "string", "paymentRequestId": "string", "merchantId": "string", "merchantInfo": { "storeName": "string" }, "storeName": "string", "description": "string", "customerName": "string", "customer": null, "currency": "string", "totalAmount": 0, "totalAmountWithoutFees": 0, "availableAmountForRefund": 0, "paymentType": "string", "paymentStatus": "string", "state": "string", "dueDate": null, "creationDate": "string", "referenceId": "string", "invoiceReferenceId": "string", "isSuspendedPayment": true, "isManualCapture": true, "isDeleted": true, "isPaymentLink": true, "isBulkCreated": true, "extraFees": [ { "name": "string", "flatFee": 0, "rate": 0 } ], "invoiceItems": [ { "description": "string", "unitPrice": 0, "quantity": 0, "subTotal": 0 } ], "labels": [ "string" ], "transactions": [ {} ], "virtualAmount": null, "virtualCurrency": null, "virtualExchangeRate": null, "virtualRateRecordedAt": null }}Creates a payment link and immediately sends it to the customer, in a single call. The body is the same as createPaymentLink; the customer's email address or phone number determines the channel the link is sent on.
Authorization
secretKey Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
Re-share payment links POST
Re-sends one or more existing payment links to the customers they were originally shared with, on the channel used the first time. Useful for chasing unpaid links in bulk without re-entering each c…
Export payment links POST
Exports the payment links matching the given filters. The export is generated asynchronously and delivered to the merchant account's email address, so the response only acknowledges that the reques…