View Categories

Mandates API Endpoints

Create Mandates Request #

This endpoint provides the following functionalities:

  • Subscriptions payment via online banking (bank account and credit card).
  • Subscriptions payment via Visa/Mastercard (credit card, debit card, foreign card).

screenshot 2023 11 30 155313
Request Body ParameterTypeValidationDescriptionExample
customer_namestringmaxLength: 50Name of customerTan Boon Hua
emailstring($email)maxLength: 50Email of customeruser@example.com
merchant_reference_numberstringmaxLength: 40You may input any reference number here
id_typeinteger
Enum:
[ 1, 2, 3, 4, 5 ]
ID type of customer1 – New IC Number,
2 – Old IC Number,
3 – Passport Number,
4 – Business Registration,
5 – Others
id_numberstringmaxLength: 18ID number of customer900525086780
fpx_modestringEnum:
[ 01, 02 ]
Whether or not the FPX user uses a retail or corporate bank account for FPX payment01 – retail,
02 – corporate
fpx_buyer_bank_idstringmaxLength: 10Bank code of FPX buyerTEST0021

Refer to list of FPX buyer bank code
effective_date
required
string($yyyyMMdd)For example, 20/05/2023 means collect payment on every 20th of month.20/05/2023
expiry_datestring($yyyyMMdd)You may leave it blank if you do not have a date (i.e. if you choose 30/12/2023, the last collection will fall on 20/12/2023)
max_amountintegerminimum: 100
Cannot be lower than 100 (RM1.00)
This refers to the maximum amount of charge to be deducted (e.g. monthly/daily/ weekly).

Values should be in cents.
Example if MYR 10.00 should be inputed as 1000. Maximum of MYR 30,000.00 for FPX, and MYR 1,000,000.00 for FPX Corporate
1000
initial_amountintegerminimum: 100
Cannot be lower than 100 (RM1.00)
This refers to upfront charge during authorization of mandate by customers. Only applicable when debit_type = “AD” (using cards). Specify initial charge of mandate, to be charged on authorization of mandate, outside of the specified collection schedule.

Example, if create a mandate where
auto is set to “false
initial_amount is set to “1000″
max_amount is set to “20000“, merchant will charge immediately 1000 upfront, and every month will charge 20000.

In other words, can for one-time-charges, upfront fees, etc.
1000
frequency
required
stringEnum:
[ DL, WK, MT, QR, YR ]
Frequency of deduction/charge. DL – daily,
WK – weekly,
MT – monthly,
QR – quarterly,
YR – yearly
frequency_interval
required
integerminimum: 1Frequency of deduction/charge interval.

frequency_interval‘ = “3“, and ‘frequency‘ = “MT“, means every 3 months

Example, if merchant wants to deduct twice a month to input
frequency_interval‘ = “2“, and ‘frequency‘ = “WK“.

Note: If our frequency_interval does meet requirement, can create schedule on merchant end.
1
max_frequency
required
integerminimum: 1
maximum: 999
Max number of charges within a collection cycle1
purpose
required
stringmaxLength: 200Free-text field for any additional information regarding the purpose of payment.Monthly subscription
debit_typestringEnum:
[ DD, AD ]
Omit parameter if allow customer to choose debit type. Specify debit type to determine debit type for customerDD – direct debit (using bank account),
AD – auto debit (using card)
return_urlstringmaxLength: 150Upon payment, customers can click on a button e.g. return to merchant site.

Return_url is the link where you want the customer to go back to after clicking the button.
<any valid domain>
callback_urlstringmaxLength: 150URL to your server for Payex to update on mandate response<any valid domain>
accept_urlstringmaxLength: 150Redirect URL upon accepted payment. If not provided, return_url will be used by default.

Note: This is for merchants who manually create payment link directly from Payex portal i.e. after payment is successful → where they want customers to be redirected to.
<any valid domain>
reject_urlstringmaxLength: 150Redirect URL upon rejected payment. If not provided, return_url will be used by default.

Note: This is for merchants who manually create payment link directly from Payex portal i.e.
after payment is rejected
where they want customers to be redirected to.
<any valid domain>
addressstringmaxLength: 200Address of customer48 Jalan Gembira, Taman Desa
postcodestringmaxLength: 10Postcode of customer57100
citystringmaxLength: 150City of customerPetaling Jaya
statestringmaxLength: 50State of customerSelangor
countrystringmaxLength: 2Country of customerMalaysia
metadataAny data as long as in the form of dictionary.
statusstringEnum:
[ Pending, Draft ]
Pending
autobooleanEnable this to auto collect every monthtrue
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countintegermaximum: 44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)4

Create Mandates Response #

A successful Mandate Request creation returns a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
Status Codes:
– For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
– For auto debit collection, refer to Response Codes with Type = ‘Card’
– For direct debit collection, refer to Response Codes with Type = ‘BILLING’
resultstring($email)maxLength: 50
statusstringEnum:
[ 00, 99 ]
Status: 00 if create successfully
Status: 99 if error occurred
reference_numberstring<System generated>
keystring<System generated>
urlstring<System generated>
errorstring<Error Description>Invalid Data Format
messagestringSuccess

Create Mandate Response Codes #
  • For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
  • For auto debit collection, refer to Response Codes with Type = ‘Card’
  • For direct debit collection, refer to Response Codes with Type = ‘BILLING’

Authorization Callback Response (Mandate Authorization Completion) #

This refers to callback response upon mandate authorization completion (for both Direct Debit and Auto Debit) which will be sent via webhook to the specified callback_url. We will be using the charged by cards (Auto Debit) example below:

Body ParameterTypeValidationDescriptionExample
amountstringFor authorization purpose and non-refundable1.00
currencystringCurrencyMYR
customer_namestringName of CustomerTest Customer
descriptionstringFree-text field for any additional information regarding the mandate authorization payment method. Monthly Subscription Plan
reference_numberstringRefers to mandate’s ‘merchant_reference_number’ passed by merchant as optional parameter. <any string>
mandate_reference_numberstringRefers to reference number for mandate generated by PayexMN10000011621583965
payment_intentstringThis refers to Payment Intent endpoint for creating payment forms.b96165b897c746c0a2a42032e8bfafea
collection_idstringCollection IDowbnr7xq
invoice_idstringInvoice ID
txn_idstringTransaction IDPX10000011627008035
txn_datestring
($yyyyMMddHHmmss)
Transaction Date20210723104035
external_txn_idstringExternal Transaction ID2009151119230241
responsestringDescription of auth_codeApproved
auth_codestring– For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
– For auto debit collection, refer to Response Codes with Type = ‘Card’
– For direct debit collection, refer to Response Codes with Type = ‘BILLING’
00
auth_numberstringAuthorization Number15733223
fpx_modestringnull
fpx_buyer_namestringnull
fpx_buyer_bank_idstringnull
fpx_buyer_bank_namestringnull
card_holder_namestringN@me()/ .-_,&Buyer’`~*;:
card_numberstring411111******1111
card_expirystring03/27
card_brandstringCan be any of “VISA”, “MASTERCARD”, “UNIONPAY”VISA
card_on_filestring64 alphanumeric key lengthType of “credential-on-file” / “card-on-file” payment for subsequent usage. Indicates future card-on-file usage where customer can save the card for future checkout.761d35566422d504c96a0f28f3637eeea0d9808a73897f533b53dd9850e4dfbb
signaturestringSHA512(secret + | + txn_id)3b0806197e8b948a81b2faff2839b3194b9f52707a336e5039a52204a2591abfbd5d4e5aceec4381b15cf0431e02aa6e2c9d17c255e6e7083e47ccfe
c182cbaa
txn_typestringEnum:
[ Mandate – Authorization, Auto Debit – Authorization, Malaysia Debit Card, Malaysia Credit Card, Foreign Card ]
Used to differentiate between different callback responses (refer to the list below) 
List of available ‘txn_type’ for callback 
1. Mandate – Authorization
2. Auto Debit – Authorization
3. Mandate – Approval
4. Malaysian Debit Card
5. Malaysian Credit Card
6. Foreign Card

When ‘txn_type’ is either of ‘Mandate – Authorization’ will incur a non-refundable amount of MYR 1.00 to your customer
Auto Debit – Authorization
noncestringlenKjMY3VInjYHmtSX398aT2socMZGCOkLIQ8OPPeIaerXSVRW0Arzd33dLnd5M8

Approval Callback (Mandate Approval for Direct Debit only) #

This refers to response upon mandate approval completion which will be sent via webhook to the specified callback_url. There’s two callback for Direct Debit, as first callback is for customer authorization while second callback is for bank approval.

Body ParameterTypeValidationDescriptionExample
application_typestringRefer to mandate authorization, maintenance or rejection. 01
approval_statusstringMandate approval status00
approval_datestringMandate approval date20210721
txn_idstringTransaction ID of PayexPX10000171626952548
reference_numberstringRefers to mandate’s ‘merchant_reference_number’ passed by merchant as optional parameter. <any string>
mandate_reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
record_numberstringRefers to bank reference numberE-20210721Q964879
fpx_modestringEnum:
[ 01, 02 ]
Whether or not the customer uses a retail or corporate bank account for FPX payment01 – Retail, 02 – Corporate
fpx_buyer_namestringName of FPX buyerN@me()/ .-_,&Buyer’`~*;:
fpx_buyer_bank_namestringBank name of FPX buyerCIMB Bank
fpx_buyer_bank_accountstringBank account of FPX buyer********1234
signaturestring68f21dfb966f264dbd996ad809828b8e763bc5798fbefb5ada434af3
c6a87873d525f7066c5b9e9963ef676f2e672d2835779bc59b09522
3a43058dc935b04f3
txn_typestringEnum:
[ Mandate – Approval ]
This is applicable to Direct Debit only.Mandate – Approval

Get Mandate Response #

This endpoint allows you to retrieve the details of mandate payment by the following parameters (optional fields):

screenshot 2023 12 18 225312

Note: Limit is how many rows to get, for example, 10 limit means will return up to 10 rows, and 10 limit and page 2, means rows 11 to 20 of the results

If successful, this endpoint returns HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
Status Codes:
– For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
result
id

integer
datestring($yyyyMMddHHmmss)Date when mandate is created
midstringMerchant ID
namestringName of merchant
titlestring
collection_idstringCollection IDowbnr7xq
customer_namestringName of CustomerTest Customer
contact_numberstringContact number of Customer0123456789
emailstringEmail of Customertest@payex.io
txn_idstringTransaction ID of PayexPX10000171626952548
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
merchant_reference_numberstringRefers to mandate’s ‘merchant_reference_number’ passed by merchant as optional parameter.<any string>
record_numberstringRefers to bank reference numberE-20210721Q964879
status_codestringEnum:
[ 01, 02, 03, 04, 05, 06, 07 ]
Status code of mandate authorisation02
statusstringEnum:
[ Draft, Pending Authorization, Pending Approval, Approved, Rejected, Terminated, Expiry ]
Status of mandate authorisation by customerPending Authorization
approval_status_codestringStatus code of approval00
approval_statusstringStatus of approvalApproved
currencystringCurrencyMYR
max_amountnumber($double)minimum: 100This refers to the maximum amount of charge to be deducted. RM500
amountnumber($double)For authorization purpose and non-refundableRM1.00
fpx_modestringEnum:
[ 01, 02 ]
Whether or not the customer uses a retail or corporate bank account for FPX payment01 – retail,
02 – corporate
fpx_buyer_bank_idstringmaxLength: 10Bank code of FPX buyerTEST0021

Refer to list of FPX buyer bank code
fpx_buyer_bank_namestringBank name of FPX buyerCIMB Bank
fpx_buyer_namestringName of FPX buyerN@me()/ .-_,&Buyer’`~*;:
fpx_buyer_bank_accountstringBank account of FPX buyer********1234
card_holder_namestringCardholder nameN@me()/ .-_,&Buyer’`~*;:
card_numberstringCard number411111******1111
card_expirystringCard expiration date03/27
card_brandstringCan be any of “VISA”, “MASTERCARD”, “UNIONPAY”VISA
card_typestringType of card used for auto debitDebit or Credit
card_idstring64 characters unique identifierID of the store card on file, similar to card_on_file

Type of “credential-on-file” / “card-on-file” payment for subsequent usage. Indicates future card-on-file usage where customer can save the card for future checkout.
761d35566422d504c96a0f28f3637eeea0d9808a73897f533b53dd9850e4dfbb
id_typestringEnum:
[ 1, 2, 3, 4, 5 ]
ID type of customer1 – New IC Number,
2 – Old IC Number,
3 – Passport Number,
4 – Business Registration,
5 – Others
id_numberstringID number of customer900525086780
addressstringAddress of customer48 Jalan Gembira Taman Mega
postcodestringPostcode of customer57100
citystringCity of customerPetaling Jaya
statestringState of customerSelangor
countrystringCountry of customerMalaysia
effective_datestring($yyyyMMdd)For example, 20/05/2023 means collect payment on every 20th of month. 20/05/2023 
expiry_datestring($yyyyMMdd)You may leave it blank if you do not have a date (i.e. if you choose 30/12/2023, the last collection will fall on 20/12/2023)30/12/2023
frequencystringEnum:
[ DL, WK, MT, QR, YR ]
Frequency of deduction/chargeDL – daily,
WK – weekly,
MT – monthly,
QR – quarterly,
YR – yearly
frequency_intervalinteger‘frequency_interval’ = 3, and ‘frequency’ = “MT”, means every 3 months1
max_frequencyintegerMax number of charges within a collection cycle1
dayintegerminimum: 0
maximum: 31
Day of mandate creation
monthintegerminimum: 1
maximum: 12
Month of mandate creation
purposestringmaxLength: 200Purpose of paymentMonthly Subscription
debit_typestringEnum:
[ DD, AD ]
Type of mandateDD – direct debit, AD – auto debit
activebooleanEnable this to make active or active the mandatetrue
autobooleanEnable this to auto collect every monthtrue
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countinteger44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)4
metadata{
}
Any data as long as in the form of dictionary
keystring<System generated>
messagestringSuccess
total_pagesinteger

Update Mandates Request #

This endpoint allows you to update mandates (only in Draft status) that have been created using ‘reference_number’ as the request parameter below (required field):

‘reference_number’ refers to reference number for mandate generated by Payex (e.g. MN10000171626860885)

screenshot 2023 12 19 140040
Request Body ParameterTypeValidationDescriptionExample
customer_name
required
stringmaxLength: 50Name of CustomerTest Customer
email
required
string($email)maxLength: 50Email of Customertest@payex.io
contact_numberstringmaxLength: 20Contact Number of Customer0123456789
id_typeintegerEnum:
[ 1, 2, 3, 4, 5 ]
ID Type of Customer1 – New IC Number,
2 – Old IC Number,
3 – Passport Number,
4 – Business Registration,
5 – Others
id_numberstringmaxLength: 18ID Number of Customer900525086780
fpx_modestringEnum:
[ 01, 02 ]
Whether or not the customer uses a retail or corporate bank account for FPX payment01 – retail, 02 – corporate
fpx_buyer_bank_idstringmaxLength: 10Bank code of FPX buyerRefer to list of FPX buyer bank code
effective_date
required
string($yyyyMMdd)yyyyMMddFor example, 20/05/2023 means collect payment on every 20th of month. 20/05/2023
expiry_datestring($yyyyMMdd)yyyyMMddYou may leave it blank if you do not have a date (i.e. if you choose 30/12/2023, the last collection will fall on 20/12/2023)30/12/2023
max_amountintegerminimum: 100Values should be in cents.
Example if MYR 10.00 should be inputed as 1000. Maximum of MYR 30,000.00 for FPX, and MYR 1,000,000.00 for FPX Corporate
1000
initial_amountintegerminimum: 100Only applicable when debit_type = “AD”
frequency
required
stringEnum:
[ DL, WK, MT, QR, YR ]
Frequency of deduction/chargeDL – daily,
WK – weekly,
MT – monthly,
QR – quarterly,
YR – yearly
frequency_interval
required
integerminimum: 1‘frequency_interval’ = 3, and ‘frequency’ = “MT”, means every 3 months1
max_frequency
required
integerminimum: 1
maximum: 999
Max number of charges within a collection cycle1
purpose
required
stringmaxLength: 200Purpose of paymentMonthly Subscription
debit_typestringEnum:
[ DD, AD ]
Only applicable when debit_type = “AD”. Specify initial charge of mandate, to be charged on authorization of mandate, outside of the specified collection schedule. Can use used for one-time-charges, upfront fees, etc.DD – direct debit, AD – auto debit
statusstringEnum:
[ Draft ]
Only “Draft” status of mandate can be updated.Draft
autobooleanEnable this to auto collect every month. If auto is set to false, true
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countintegermaximum: 44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)4
metadataAny data as long as in the form of dictionary

A successful Update Mandate Request will return a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
Status Codes:
– For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
result
status
stringEnum:
[ 00, 99 ]
Status: 00 if create successfully
Status: 99 if error occurred
00
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
keystring<System generated>
urlstring<System generated>
When update requires customers’ authorization.
errorstring<Error Description>Invalid Data Format
messagestringSuccess

Delete Mandates Request #

This endpoint allows you to delete mandates using reference_number as the request parameter below (required field):

‘reference_number’ refers to reference number for mandate generated by Payex (e.g. MN10000171626860885)

screenshot 2023 12 19 152825 1

Note: reference_number is the required parameter for this endpoint and it refers to a list/array of reference numbers for mandate generated by Payex. You may choose to delete multiple mandates at a time and the parameter format will be [“MNxxxx”,”MNxxxx”].

A successful Delete Mandates will return a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
Status Codes:
– For mandate authorization, refer to Response Codes with Type = ‘FPX’ for Direct Debit and Response Codes with Type = ‘Card’ for Auto Debit
result
status

string

Enum:
[ 00, 99 ]
Status: 00 if create successfully
Status: 99 if error occurred
00
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
keystring<System generated>
urlstring<System generated>
When termination requires customers’ authorization.
errorstring<Error Description>Invalid Data Format
messagestringSuccess

Update Mandate Collection Settings Request #

This endpoint allows you to update mandate collection settings with ‘reference_number’ as required parameter:

‘reference_number’ refers to reference number for mandate generated by Payex (e.g. MN10000171626860885)

screenshot 2023 12 19 152415

Body ParameterTypeValidationDescriptionExample
amountintegerminimum: 100For example, if max amount was set as rm100, then here can set to any amount less or equal to max amount for the auto collection.100
dayintegerminimum: 0
maximum: 31
Day of mandate
monthintegerminimum: 1
maximum: 12
Month of mandate
activebooleanEnable this to make active or inactive the mandatetrue
autobooleanEnable this to auto collect every month. If auto is set to false, Payex will wait for merchant’s instructions before next deduction.true
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countintegermaximum: 44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)4

A successful Update Mandate Collection Settings Request will return a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
resultstringList []
messagestring

Create Collections Request #

This endpoint allows you to create collection request upon authorisation of mandate by your customers.

screenshot 2023 12 19 155528

Body ParameterTypeValidationDescriptionExample
reference_number
required
stringRefers to reference number for mandate generated by PayexMN10000011621583965
collection_reference_numberstringPassed by merchant as optional parameter<any string>
collection_date
required
string($yyyyMMdd)Date of collection
amountintegerValues should be in cents. For example, MYR 10.00 should be inputed as 1000. Value must be less than or equal to “max_amount” of mandate. Maximum of MYR 30,000.00 for FPX, and MYR 1,000,000.00 for FPX Corporate.
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countintegermax: 44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)
metadataAny data as long as in the form of dictionary

A successful Create Collection Request will return a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
– For auto debit collection, refer to Response Codes with Type = ‘Card’
– For direct debit collection, refer to Response Codes with Type = ‘BILLING’
result
status
stringEnum:
[ 00, 99 ]
Status: 00 if create successfully
Status: 99 if error occurred
reference_numberstringRefers to reference number for mandate generated by PayexMN10000011621583965
collection_numberstringRefers to collection number generated by PayexCL10000023077b6050c4
errorstring<Error Description>Invalid Data Format
messagestring

Collection Callback #

Response upon mandate collection completion which will be sent via webhook to the specified callback_url.

Body ParameterTypeValidationDescriptionExample
collection_statusstringDirect Debit (Refer to BILLING response codes) and Auto Debit (Refer to Card response codes)Approved
collection_datestringDate of Collection15/01/2023
txn_idstringTransaction ID of PayexPX10000171626952548
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
mandate_reference_numberstringRefers to mandate’s ‘merchant_reference_number’ passed by merchant as optional parameter.<any string>
batch_numberstringBatch number is unique number for the batch of collections submitted to bank
collection_numberstringRefers to collection number generated by PayexCL10000023077b6050c4
collection_reference_numberstringPassed by merchant as optional parameter<any string>
amountstringValues should be in cents. For example, MYR 10.00 should be inputed as 1000. Value must be less than or equal to “max_amount” of mandate. Maximum of MYR 30,000.00 for FPX, and MYR 1,000,000.00 for FPX Corporate.
signaturestringSHA512(secret + | + txn_id)3b0806197e8b948a81b2faff2839b3194b9f52707a336e5039a52204a2591abfbd5d4e5aceec4381b15cf0431e02aa6e2c9d17c255e6e7083e47ccfe
c182cbaa
txn_typestringEnum:
[ Direct Debit, Malaysia Debit Card, Malaysia Credit Card, Foreign Card ]
Transaction Type

Read Collections Response #

This endpoint allows you to read collections by the following parameters (optional fields):

screenshot 2023 12 21 085730

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
result
id
integer
datestring($yyyyMMddHHmmss)
collection_datestring($yyyyMMdd)Date of Collection15/01/2023
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
merchant_reference_numberintegerRefers to mandate’s ‘merchant_reference_number’ passed by merchant as optional parameter.<any string>
batch_numberintegerBatch number is unique number for the batch of collections submitted to bank
collection_numberstringRefers to collection number generated by PayexCL10000023077b6050c4
collection_reference_numberstringPassed by merchant as optional parameter<any string>
amountnumber($double)For example, if max amount was set as rm100, then here will be any amount less or equal to max amount for the auto collection.
batch_status_codestringRefers to batch status code under Batch response codes01
batch_statusstringRefers to batch status under Batch response codesPending
collection_status_codestringStatus code of collection00
collection_statusstringDirect Debit (Refer to BILLING response codes) and Auto Debit (Refer to Card response codes)Approved
autobooleanEnable this to auto collect every month. If auto is set to false, Payex will wait for merchant’s instructions before next deduction.true
retrybooleanEnable this to let system auto retry if previous collection has failedtrue
retry_countintegermaximum: 44 (the maximum retry count for system is 4) (i.e. payment failed to collect on 20th, system will retry on 21st, 22nd, 23rd & 24th)4
retry_leftintegerNumber of retry remaining3
retry_datestring($yyyyMMdd)Date of retry
metadataAny data as long as in the form of dictionary
messagestringSuccess
total_pagesinteger

Delete Collections Response #

This endpoint allows you to delete collections with ‘collection_number’ as the required parameter below:

screenshot 2023 12 21 093353

A successful Delete Collection will return a HTTP 200 status code with the following response parameters.

Body ParameterTypeValidationDescriptionExample
statusstringEnum:
[ 00, 99 ]
result
status

string

Enum:
[ 00, 99 ]
reference_numberstringRefers to reference number for mandate generated by PayexMN10000171626860885
collection_numberstringRefers to collection number generated by PayexCL10000023077b6050c4
errorstring<Error Description>Invalid Data Format
messagestringSuccess
Scroll to Top