Creates a new payment file record for the business.

Request

POST https://apimy.yourpayroll.io/api/v2/business/{businessId}/paymentfiles

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

The request body takes a complete MyBankDetailsModel resource, containing the following writable properties:

{
    "accountName": "string",
    "accountNumber": "string",
    "bankCode": "string",
    "branchCode": "string",
    "corporateId": "string",
    "fileFormat": "string",
    "hsbcConnectCustomerId": "string",
    "hsbcnetCustomerId": "string",
    "id": "int32",
    "lodgementReference": "string",
    "organisationCode": "string",
    "paymentAdditionalContent": "string",
    "paymentCode": "string",
    "valueDateDaysBeforeDatePaid": "int32"
}

Properties

Name Type Description
accountName string String
accountNumber string String
bankCode string String
branchCode string String
corporateId string String
fileFormat string BankFileFormatMy

Possible values are:

  • HSBC
  • Maybank
  • HSBCnet
  • AmBank
  • CIMBBulkPayment
  • PublicBankECP
  • HongLeongConnectFirst
  • HongLeongConnectBiz
  • OCBCGiro
  • Maybank2UBiz
  • Maybank2E_StaffPayroll
  • RHBSmartPayroll
  • AllianceBizSmart
  • EAmPayday
hsbcConnectCustomerId string String
hsbcnetCustomerId string String
id int32 Nullable
lodgementReference string String
organisationCode string String
paymentAdditionalContent string PaymentFilePaymentAdditionalContent

Possible values are:

  • None
  • PeriodEndingDate
  • PaymentDate
  • EmployeeId
  • PayRunId
paymentCode string String
valueDateDaysBeforeDatePaid int32 Nullable

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK