Corporate
Payroll API
Payroll API

Description

Securely upload and process bulk employee salary payments with real-time status tracking.

In order to subscribe, Please

  • Overview
  • APIs Offered
    Payroll API (File based)

    The Payroll API (File-Based) allows corporate clients to submit employee salary payments in bulk [NWPS LCY and FCY/ WPS] through a secure file upload. Files are validated and processed as defined workflows, with status updates provided for easy tracking.

    Payroll API (File based)
    View API Specifications

    The Payroll API (File-Based) allows corporate clients to submit employee salary payments in bulk [NWPS LCY and FCY/ WPS] through a secure file upload. Files are validated and processed as defined workflows, with status updates provided for easy tracking.

    NOTE:

    • This API offers 2 operation types namely initiatePayroll and enquirePayroll.
    • Applications must get the token using the “Get Token API," which will provide the access token details. This token must be used for the subsequent interactions of RESTful APIs. Tokens will be valid for 180s

    Flow Chart

    Image
    Flow Chart Payroll API

    What operations can be performed?

    1. initiate: Initiate Payroll API allows to upload the bulk payroll file. i.e., NWPS LCY/FCY files and WPS files.

    Request Headers:

    Fields
    Mandatory
    Data Type
    Description
    clientID
    Mandatory
    STRING
    Client ID
    Authorization
    Mandatory
    STRING
    Bearer <Token received from get token API with respect to Scope>

    Request Parameters:

    Fields
    Description
    Domestic Fund Transfers
    NWPS/ WPS
    Data Type and Length
    Sample Value
    cifNumber
    Unique CIF number
    Mandatory
    Mandatory
    Max 9
    010150935
    batchReference
    Unique Batch Reference Number
    Mandatory
    Mandatory
    Min6
    Max16
    TESTPAY30012604
    templateId
    Name of the file template having region name mentioned
    Mandatory
    Mandatory
    Min1
    Max16
    WPS:
    WPSUAE or WPSQATAR,
    NWPS:
    TMPXXXXXX (where 'XXXXXX' represents the Template ID
    file
    File Name along with format
    Mandatory
    Mandatory
     
    WPSUAE -.SIF
    NON WPS - .txt or .csv
    QATAR WPS - .csv
    debitAccountNumber
    Debit account number Applicable only for WPS.
    Optional
    Optional
    Min 12
    Max 23 [UAE]
    Max 29 [QATAR]
    010493142944
    valueDate
    DD-MM-YYYY is the date format Applicable only for WPS.
    Optional
    Optional
    Max 8
    01-10-2025

    Response Parameters:

    Fields
    Description
    Mandatory/ Optional
    Data Type
    Length
    Sample Value
    cifNumber
    CIF Identification Number
    Mandatory
     
     
     
    statusCode
     
    Mandatory
     
     
    201 or 400 or 500
    status
    Transaction status
    Mandatory
     
     
    INITIATED/ REJECTED/ FAILED
    description
    Request Initiated. Please try enquiry after some time with same msTxnRefNo or batchReference
    Mandatory
     
     
     
    isFinalStatus
    It can be Y or N.
    Y = No further status of transaction is expected Transaction is concluded.

    N = Transaction is still in transit and status is expected to change.
    Mandatory
     
     
     
    batchReference
    Unique Batch Reference Number
    Mandatory
     
     
    TESTAANI30012605
    templateId
    Name of the file template having region name mentioned
    Mandatory
     
     
    TMP112200
    msTxnRefNo
    Unique MS Transaction Reference Number
    Mandatory
     
     
    MSGk91e8998aac2e
    fileName
    File Name
    Mandatory
     
     
    TMP112195_010150935_BULK091001.csv
    debitAccountNumber
    Debit account number Applicable only for WPS.
    Optional
     
     
    010493142944
    valueDate
    X'
    Optional
     
     
    19-02-2026

    Status Code Information:

    Status code
    Message
    Description
    200
    INITIATED
    Transaction request has been initiated and under processing.
    400
    REJECTED
    Transaction rejected due to invalid request.
    401
    REJECTED
    Transaction rejected due to Unauthorized user.
    500
    FAILED
    Failed to initiate transaction due to internal sever error, Please try after sometime.
    400
    REJECTED
    INVALID_DEBIT_ACCOUNT_NUMBER
    400
    REJECTED
    No Accounts mapped for this user.
    401
    REJECTED
    API Banking is not enabled for this user.

    2. enquire:  This is a GET method and enables corporates to retrieve a Payroll files transaction latest status. Mashreq exposes this service to retrieve the transaction status.

    Request Parameters:

    Fields
    Description
    Mandatory/ Optional
    Data Type
    Length
    Sample Value
    clientId
    Unique client ID provided by Mashreq to corporate.
    Mandatory
     
     
     
    cifNumber
    Unique CIF number
    Mandatory
    STRING
    9
    010150935
    batchReference
    Unique batchReference passed by the corporate/client.
    Optional
     
    Max16
    TESTAANI30012607
    msTxnRefNo
    Batch reference number assigned by the bank
    Optional
     
    Max16
    MS7W2ffb0e5d499d

    Response Parameters:

    Fields
    Description
    Mandatory/ Optional
    Data Type
    Length
    Sample Value
    cifNumber
    CIF Identification Number
    Mandatory
     
     
     
    statusCode
     
    Mandatory
     
     
    201 or 400 or 500
    Status
    Transaction status
    Mandatory
     
     
     
    isFinalStatus
    It can be Y or N. Y = No further status of transaction is expected; transaction is concluded. N = Transaction is still in transit and status is expected to change.
     
     
     
     
    batchReference
    Unique Batch Reference Number
     
     
     
     
    templateId
     
     
     
     
    TMP112200
    reqType
     
     
     
     
     
    msTxnRefNo
    Unique MS Transaction Reference Number
     
     
     
     
    fileName
    File Name
     
     
     
     
    fileReference
    Unique File Reference Number
     
     
     
     
    debitAccountNumber
    Debit account number. Applicable only for WPS.
     
     
     
     
    valueDate
    DD-MM-YYY is the date format
    Applicable only for WPS.
     
     
     
     
    recordDetails
    List of transaction details block
    Mandatory
     
     
     
     
    All transactions will fall under array, and it would repeat for every new transaction
     
     
     
    {
    transactionReference
    Transaction Reference Number
    Mandatory
    STRING
     
     
    status
    Status for the transactions
    Mandatory
    STRING
     
     
    description
    Transaction reference
    Mandatory
    STRING
     
     
     
    End of array
     
     
     
    }

    Status Code Information:

    Status code
    Message
    Description
    200
    INITIATED
    Transaction request has been initiated and under processing.
    400
    REJECTED
    Invalid transaction inquiry, customer reference not available.
    401
    REJECTED
    Enquiry Rejected due to Unauthorised user
    500
    FAILED
    Failed to initiate transaction due to internal sever error, Please try after sometime.
    401
    REJECTED
    API Banking is not enabled for this user.
    IMPORTANTS NOTES:
    • “isFinalStatusFlag” It can be Y or N. if “Y” it means no further status of transaction is expected i.e. either Transaction is completed or rejected. Please read this with “processingStatus” If “N” it means transaction is still in transit and status update is expected to change.
    • Please verify CURL URLs as they may differ in CURL please align as defined in the URL document.
    • Public key to be used to encrypt the payment initiation request.
Number of API/s
1
Number of APIs
APIC Calls
160
K
Calls per month
Active users
250
Active users
Regions
Overview
Overview

The Payroll API (File-Based) allows corporate clients to submit employee salary payments in bulk [NWPS LCY and FCY/ WPS] through a secure file upload. Files are validated and processed as defined workflows, with status updates provided for easy tracking.

What are the benefits?
  • Automated Salary Disbursement

    Enables seamless and automated salary payments to employees, reducing manual processing and operational effort.

  • Real-Time Payment Status

    Provides instant visibility into payroll transaction status, helping organizations track salary payments efficiently

  • Faster Payroll Processing

    Accelerates salary file submission, validation, and payment execution, ensuring timely employee payouts.

  • Seamless ERP & HRMS Integration

    Integrates directly with corporate payroll, HRMS, and ERP systems, eliminating manual data exchange.

  • Reduced Operational Costs

    Minimizes administrative workload and manual intervention, improving overall payroll efficiency.

  • Enhanced Security & Compliance

    Supports secure authentication, authorization, and audit trails to ensure payroll data confidentiality and regulatory compliance.

  • Improved Reconciliation

    Provides consolidated payroll transaction details and reporting, simplifying reconciliation and exception handling.

  • Scalable Corporate Payroll Management

    Supports bulk salary payments across large employee bases, making it ideal for organizations of any size.

 
Which APIs are offered?
  • Payroll Initiate API: Initiate Payroll API allows to upload the bulk payroll file. i.e., NWPS LCY/FCY files and WPS files
  • Payroll Enquiry API: This service is a GET method and enables corporates to retrieve a Payroll files transaction latest status. Mashreq exposes this service for corporates to retrieve the transaction status.
What can I do with this API ?
icon
icon
icon
Product benefits
Retrieve records using LC/BG Reference Number.
Access employee payroll information through a single integrated interface.
Connect payroll data directly with HRMS and ERP platforms.
Access payroll data for reporting and reconciliation purposes.
Payroll API
Engage with us
Get started today or reach out to learn more.
 
Register today to access and get started with our tools and API documentation.
 
Schedule a call with our team to understand how our offering can support you and your customers.