Skip to main content

Get Payment by ID

Get details for a specific payment by payment_ID.

Definition

URL
GET https://api-test.instarem.com:4803/api/v1/payments/id/{payment_id}

Header Parameters

ParameterDescriptionTypeRequired
authorizationAuthentication tokenStringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected value is application/json.StringYes
X-CLIENT-IDUnique id for client generated by Nium, Required only in case of partner based model (E.g. 593feb7c7c52bb2357b2df6c).StringNo

Example Request

curl --request get \\
--url "https://api-test.instarem.com:4803/api/v1/payments/id/{payment_id}" \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\

Path Parameters

ParameterDescriptionTypeRequired
payment_idAuthentication tokenStringYes

Example Response

{
"reference_number": "ZQ1101",
"payment_id": "PY10001485",
"status": "PAID",
"autobookfx_confirmation_id": "USD-MYR-SJtfvAOQb",
"sub_status": "",
"status_description": "Payment successfully done",
"created_at": "2017-06-16T17:25:52.136+05:30",
"updated_at": "2017-06-16T17:26:20.670+05:30"
}

Response Parameters

ParameterDescriptionType
reference_numberTransaction Reference NumberString
payment_idTransaction idString
statusTransaction StatusString
autobookfx_confirmation_ idUnique confirmation ID generated by Nium for successful AutoBook Fx.String
sub_statusTransaction Sub StatusString
status_descriptionTransaction Status detailsString
created_atDate and time (UTC) of transaction.String
updated_atDate and time (UTC) of transaction.String
payment_reference_numberPayment confirmation number from the bankString

Enhancements As per ISO Standards

NIUM has implemented the payments messaging as per the ISO standards for the local ACH transactions

Please note: Currently the ISO messaging will be available for the following currencies

INR, USD, AUD, GBP, EUR

Example Response

{
"reference_number": "ZQ1101",
"payment_id": "PY10001485",
"status": "RETURNED",
"autobookfx_confirmation_id": "USD-MYR-SJtfvAOQb",
"sub_status": "",
"status_description": "No account or incorrect account",
"created_at": "2017-06-16T17:25:52.136+05:30",
"updated_at": "2017-06-16T17:26:20.670+05:30",
"return_reason" : {
"status_code" : "ACO1",
"status_reason" : "IncorrectAccountNumber",
"status_description" : "Format of the account number specified is not correct"
}
}

Response Parameters

ParameterDescriptionType
reference_numberTransaction Reference NumberString
payment_idTransaction idString
statusTransaction StatusString
autobookfx_confirmation_idUnique confirmation ID generated by Nium for successful AutoBook Fx.String
sub_statusTransaction Sub StatusString
status_descriptionTransaction Status detailsString
created_atDate and time (UTC) of transaction.String
updated_atDate and time (UTC) of transaction.String
payment_reference_numberPayment confirmation number from the bankString
return_reason.status_codeStandard error code provided as per ISO 20022 standardsString
return_reason.status_reasonStandard reason corresponding to ISO error codeString
return_reason.status_descriptionEnhanced remarks provided by NIUM corresponding to ISO error codeString

GPI Enhancements for Opt-In (Subscription) Clients

Please Note:

  1. Only the response parameters of API are enhanced. URL, headers and path parameters of the request body remains the same.
  2. For opt-in clients, the entire GPI details array listing current and historical GPI parameters would appear in the response.
  3. These enhancements are for swift wire transactions only.

Example Response

{
"reference_number": "ZQ1101",
"payment_id": "PY10001485",
"status": "SENT_TO_BANK",
"autobookfx_confirmation_id": "USD-MYR-SJtfvAOQb",
"sub_status": "",
"status_description": "Payment successfully done",
"created_at": "2017-06-16T17:25:52.136+05:30",
"updated_at": "2017-06-16T17:26:20.670+05:30",
"gpi_details": [
{
"status": "SENT_TO_BANK",
"gpi_reason_code": "G002",
"gpi_status_description": "Pending credit may not be same day.",
"gpi_timestamp": "2023-08-27 11:51:47",
"gpi_forward_bank_name": "Natwest",
"gpi_forward_bank_code": "NWBKGB2LXXX",
"gpi_remarks": "Often it means that the payment is under manual due diligence in the bank and settlement may take few hours."
},
{
"status": "SENT_TO_BANK",
"gpi_reason_code": "G000",
"gpi_status_description": "Delivered to next bank",
"gpi_timestamp": "2023-08-27 11:29:47",
"gpi_forward_bank_name": "HSBC",
"gpi_forward_bank_code": "HSBCSGS2",
"gpi_remarks": "The payment has been forwarded to next participant bank in the swift network. It can be either credited to beneficiary directly or passed to next bank."
}
]
}

Response Parameters

ParameterDescriptionType
reference_numberTransaction Reference NumberString
payment_idTransaction idString
statusTransaction StatusString
autobookfx_confirmation_idUnique confirmation ID generated by Nium for successful AutoBook Fx.String
sub_statusTransaction Sub StatusString
status_descriptionTransaction Status detailsString
created_atDate and time (UTC) of transaction.String
updated_atDate and time (UTC) of transaction.String
payment_reference_numberPayment confirmation number from the bankString
gpi_details.statusTransaction Status at the instance of GPI status update (It can be different from final transaction status)String
gpi_details.gpi_reason_codeGPI code shared by Partner (GXXX)String
gpi_details.gpi_status_descriptionDescription corresponding to GPI reason codeString
gpi_details.gpi_timestampDate and time of GPI status changeString
gpi_details.gpi_forward_bank_nameName of the next participant bank in the swift network to which the payment has been forwardedString
gpi_details.gpi_forward_bank_codeBank identification code (BIC) of the next participant bank to which the payment has been forwarded.String
gpi_details.gpi_remarksDetailed description of the gpi_reason_ code. This interpretation is provided by Nium.String

Interpretation of the gpi reason codes and associated status descriptions

Statusgpi_reason_codegpi_status_descriptiongpi_remarks
SENT_TO_BANKG000Delivered to next bankThe payment has been forwarded to next participant bank in the swift network. It can be either credited to beneficiary directly or passed to next bank.
SENT_TO_BANKG001Delivered to next bank (no tracking)This often suggests the user may not receive gpi updates beyond this point and will receive a final terminal status.
SENT_TO_BANKG002Pending credit may not be same day.Often it means that the payment is under manual due diligence in the bank and settlement may take few hours.
SENT_TO_BANKG003Pending receipt of documentation from the beneficiary.This often suggests an action on the beneficiary or beneficiary bank. Sender may contact the beneficiary in case of delays or can ensure that beneficiary details provided were correct.
SENT_TO_BANKG004Pending receipt of funds from the previous bank.The forward bank has received an instruction to credit the funds the to the beneficiary, but it has not received the funds yet. Cover payment is missing but it is expected to arrive soon.
SENT_TO_BANKG005Delivered to beneficiary bank as GPI.This suggests that the payment will be credited soon.
SENT_TO_BANKG006Delivered to beneficiary bank as non-GPI.This suggests that the payment will be credited soon.