API

API

    ›Admin

    Getting Started

    • Introduction

    Authencation

    • Register
    • Login
    • Password reset
    • Resend Mobile Verification
    • Resend Email Verification

    Profile

    • Get profile
    • Update profile
    • Change email
    • Change password
    • List companies

    Dashboard

    • Get dashboard
    • Get recent activity
    • List cards

    Pay

    • List payments
    • Get payment detail
    • List schedules
    • List schedules compact
    • Get schedule detail
    • List payees
    • Get payee details
    • Update favorite payment
    • Cancel Schedule

    Fetch

    • List payment collections
    • List payers
    • Get payer details

    Payment Collection

    • Resend Collected Payment Request
    • Create Collected Payment Request
    • Validate Collected Payment Request
    • Delete Collected Payment
    • Create Collected Tax Payment
    • Update Collected Tax Payment
    • Create Collected Invoice Item
    • Update Collected Invoice Item
    • Create Payment Collection Payer
    • Update Payment Collection Payer
    • Delete Payment Collection Payer
    • Create Collected Account
    • Update Collected Account
    • Update Collected Account Additional Setting
    • Update Collected Account Other Setting
    • Update Collected Account Draft Setting
    • User Mark Payment As Completed

    Coupon

    • Apply Coupon
    • Remove Coupon Usage

    Response

    • Response

    Other

    • Upload Files
    • Upload Files Public
    • Validate And Search UEN
    • Validate Amount

    Webhook

    • Mailgun Failed Email Webhoob
    • Twilio message webhook
    • Mailgun Receive Email Webhook
    • Active Campaign Import Contact Webhook
    • WP Webhook
    • Webhook Finmo Payout
    • Verify Email
    • 3ds Callback
    • 3ds Frame Post
    • 3ds Payment Update Callback
    • Resend Verify Email With Redirection
    • TripleA Refund Callback

    Admin

    • Add Coupons For Admin
    • Edit Coupons For Admin
    • Add Localized Strings For Admin
    • Update Localized Strings For Admin
    • Mark Payment As Completed For Admin
    • Admin Deposit International Payment
    • Bulk Mark Payments As Completed For Admin
    • Request Login
    • Admin Fully Refund A Payment
    • Admin Hold Payment
    • Admin Partial Refund A Payment Fee
    • Admin Partial Refund A Payment Principal
    • Admin Partial Refund Payment Principal With Fees
    • Admin Process Refund Payment
    • Admin Expedite Payment
    • Admin Assign Account Manager
    • Admin Resend Verify Email
    • Admin Change Status Collected Account
    • Admin Add Document Collected Account
    • Admin Cancel Payments
    • Admin Edit Payment Payee Request
    • Admin Add Or Update UEN
    • Admin Delete UEN
    • Upload Admin Files
    • Block User For Admin
    • Un Block User For Admin
    • Admin Change Status Comply Advantage Report
    • Handle Admin Update Payout
    • Admin Payments For Approval

    Add Coupons For Admin

    Add Coupons For Admin.

    Request

    Request header:

    POST https://api.ipaymy.com/v2/admin/coupons
    Host: api.ipaymy.com
    Accept: application/json
    

    Request body:

    {
      "code": "",
      "fee": 0,
      "max_per_account": 0,
      "max_amount": 0,
      "min_amount": 0,
      "purposes": "",
      "schedule_frequency": "one-time | schedule | both",
      "min_schedule_cycles": 0,
      "card_brand_id": "",
      "is_recurring_charge": true,
      "start_date": "",
      "end_date": "",
      "is_active": true,
      "whitelist": [""],
      "has_whitelist": "yes | no",
      "is_production": true,
      "first_time_user_only": true,
      "amount_off": 0,
      "group_id": 0,
      "is_global": true,
      "country_whitelist": [
        {
          "country_id": 0,
          "currency_id": 0
        }
      ],
      "invoice_type": "",
      "ignore_rate_check": true,
      "special_mastercard_only": true,
      "boc_mastercard_only": true,
      "is_business_account": true,
      "bank_id": 0,
      "is_wholesale": true
    }
    

    Response

    Response body:

    {
      "data": "",
      "error": 0
    }
    

    Response codes:

    • 200: Good stuff, and the response body should be easy to parse.
    • 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.
    ← TripleA Refund CallbackEdit Coupons For Admin →
    Copyright © 2024 ipaymy.com