{ "opencollection": "1.0.0", "info": { "name": "Moyasar Invoices Payments API", "version": "1.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Payments", "type": "folder" }, "items": [ { "info": { "name": "List payments", "type": "http" }, "http": { "method": "GET", "url": "https://api.moyasar.com/v1/payments", "params": [ { "name": "page", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "query" }, { "name": "status", "value": "", "type": "query" }, { "name": "created[gt]", "value": "", "type": "query" }, { "name": "created[lt]", "value": "", "type": "query" }, { "name": "card_last_digits", "value": "", "type": "query" }, { "name": "receipt_no", "value": "", "type": "query" } ] }, "docs": "Lists payments on the account with filtering and pagination." }, { "info": { "name": "Create a payment", "type": "http" }, "http": { "method": "POST", "url": "https://api.moyasar.com/v1/payments", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a payment. Can be called with a publishable key from the client side or a secret key from the backend. The `source` object selects the payment method (creditcard, token, applepay, samsungpay, stcpay)." }, { "info": { "name": "Fetch a payment", "type": "http" }, "http": { "method": "GET", "url": "https://api.moyasar.com/v1/payments/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The payment UUID." } ] }, "docs": "Retrieves a single payment by its ID." }, { "info": { "name": "Refund a payment", "type": "http" }, "http": { "method": "POST", "url": "https://api.moyasar.com/v1/payments/:id/refund", "params": [ { "name": "id", "value": "", "type": "path", "description": "The payment UUID." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Refunds a paid payment in full or in part. Omit `amount` for a full refund." }, { "info": { "name": "Capture a payment", "type": "http" }, "http": { "method": "POST", "url": "https://api.moyasar.com/v1/payments/:id/capture", "params": [ { "name": "id", "value": "", "type": "path", "description": "The payment UUID." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Captures an authorized payment, in full or in part. Omit `amount` to capture the full authorized amount." }, { "info": { "name": "Void a payment", "type": "http" }, "http": { "method": "POST", "url": "https://api.moyasar.com/v1/payments/:id/void", "params": [ { "name": "id", "value": "", "type": "path", "description": "The payment UUID." } ] }, "docs": "Voids an authorized payment that has not yet been captured." } ] } ], "bundled": true }