Fetch a Linked Account With ID
GET/v2/accounts/:account_idClick to copy
Use this endpoint to fetch details of a Linked Account using the unique identifier.
Is this page helpful?
1curl -u [YOUR_KEY_ID]:[YOUR_SECRET]2-X GET 'https://api.razorpay.com/v2/accounts/acc_GLGeLkU2JUeyDZ' \
Success
Failure
1{2"id":"acc_GLGeLkU2JUeyDZ",3"type":"route",4"reference_id":"123123",5"status":"created",6"email":"gaurav.kumar@example.org",7"profile":{8"category":"healthcare",9"subcategory":"clinic",10"addresses":{11"registered":{12"street1":"507, Koramangala 1st block",13"street2":"MG Road",14"city":"Bengaluru",15"state":"KARNATAKA",16"postal_code":560034,17"country":"IN"18},19"operation":{20"street1":"507, Koramangala 6th block",21"street2":"Kormanagala",22"city":"Bengaluru",23"state":"KARNATAKA",24"country":"IN",25}26},27"business_model":null28},29"notes":[3031],32"created_at":1611136837,33"phone":"9999999998",34"business_type":"partnership",35"legal_business_name":"Acme Corp",36"customer_facing_business_name":"Acme Corp",37"legal_info":{38"pan":"AAACL1234C",39"gst":"18AABCU9603R1ZM"40},41"apps":{42"websites":[4344],45"android":[46{47"url":null,48"name":null49}50],51"ios":[52{53"url":null,54"name":null55}56]57},58"brand":{59"color":null60},61"contact_name":"Gaurav Kumar",62"contact_info":{63"chargeback":{64"email":null,65"phone":null,66"policy_url":null67},68"refund":{69"email":null,70"phone":null,71"policy_url":null72},73"support":{74"email":null,75"phone":null,76"policy_url":null77}78}79}
Path Parameters
account_idstring The unique identifier of the Linked Account. For example, acc_GLGeLkU2JUeyDZ.
Response Parameters
idstring The unique identifier of the account generated by Razorpay. The maximum length is 18 characters. For example, acc_GLGeLkU2JUeyDZ.
typestring The account type. Possible value is route.
reference_idstring The internal reference id. This value can be maximum of 20 characters. For example, 123123.
statusstringThe status of the account. Possible values:
createdsuspended
emailstringThe account holder's email address.
phoneintegerThe account holder's phone number. The minimum length is 8 characters and the maximum length is 15.
legal_business_namestring The name of the account holder's business. For example, Acme Corp. The minimum length is 4 characters and the maximum length is 200.
business_typestringThe type of business operated by the account holder. Possible values:
.profileobjectThe account holder's business details.
Show child parameters (3)
business_modelstringThe business description. The minimum length is 1 character and the maximum length is 255.
legal_infoobjectThe legal details about the account holder's business. The mandatory
parameters should be passed depending on the business requirements.Show child parameters (2)
notesobjectContains user-defined fields stored by the partner for reference purposes.
contact_namestringThe name of the contact. The minimum length is 4 and the maximum length is 255 characters.
contact_infoobjectOptions available for contact support.
Show child parameters (3)
appsobjectThe app details of the account holder's business
Show child parameters (3)
Errors
The id provided does not exist
Error Status: 400
This error occurs when the Linked Account does not belong to the requested merchant, or it is invalid.
Solution
Linked account does not exist.
Error Status: 400
This error occurs when the requester is not the parent of the child account, or the child account does not exist.
Solution
Fetch a Linked Account With ID
GET/v2/accounts/:account_idClick to copy
Use this endpoint to fetch details of a Linked Account using the unique identifier.
Is this page helpful?
Path Parameters
account_idstring The unique identifier of the Linked Account. For example, acc_GLGeLkU2JUeyDZ.
Response Parameters
idstring The unique identifier of the account generated by Razorpay. The maximum length is 18 characters. For example, acc_GLGeLkU2JUeyDZ.
typestring The account type. Possible value is route.
reference_idstring The internal reference id. This value can be maximum of 20 characters. For example, 123123.
statusstringThe status of the account. Possible values:
createdsuspended
emailstringThe account holder's email address.
phoneintegerThe account holder's phone number. The minimum length is 8 characters and the maximum length is 15.
legal_business_namestring The name of the account holder's business. For example, Acme Corp. The minimum length is 4 characters and the maximum length is 200.
business_typestringThe type of business operated by the account holder. Possible values:
.profileobjectThe account holder's business details.
Show child parameters (3)
business_modelstringThe business description. The minimum length is 1 character and the maximum length is 255.
legal_infoobjectThe legal details about the account holder's business. The mandatory
parameters should be passed depending on the business requirements.Show child parameters (2)
notesobjectContains user-defined fields stored by the partner for reference purposes.
contact_namestringThe name of the contact. The minimum length is 4 and the maximum length is 255 characters.
contact_infoobjectOptions available for contact support.
Show child parameters (3)
appsobjectThe app details of the account holder's business
Show child parameters (3)
Errors
The id provided does not exist
Error Status: 400
This error occurs when the Linked Account does not belong to the requested merchant, or it is invalid.
Solution
Linked account does not exist.
Error Status: 400
This error occurs when the requester is not the parent of the child account, or the child account does not exist.
Solution
1curl -u [YOUR_KEY_ID]:[YOUR_SECRET]2-X GET 'https://api.razorpay.com/v2/accounts/acc_GLGeLkU2JUeyDZ' \
Success
Failure
1{2"id":"acc_GLGeLkU2JUeyDZ",3"type":"route",4"reference_id":"123123",5"status":"created",6"email":"gaurav.kumar@example.org",7"profile":{8"category":"healthcare",9"subcategory":"clinic",10"addresses":{11"registered":{12"street1":"507, Koramangala 1st block",13"street2":"MG Road",14"city":"Bengaluru",15"state":"KARNATAKA",16"postal_code":560034,17"country":"IN"18},19"operation":{20"street1":"507, Koramangala 6th block",21"street2":"Kormanagala",22"city":"Bengaluru",23"state":"KARNATAKA",24"country":"IN",25}26},27"business_model":null28},29"notes":[3031],32"created_at":1611136837,33"phone":"9999999998",34"business_type":"partnership",35"legal_business_name":"Acme Corp",36"customer_facing_business_name":"Acme Corp",37"legal_info":{38"pan":"AAACL1234C",39"gst":"18AABCU9603R1ZM"40},41"apps":{42"websites":[4344],45"android":[46{47"url":null,48"name":null49}50],51"ios":[52{53"url":null,54"name":null55}56]57},58"brand":{59"color":null60},61"contact_name":"Gaurav Kumar",62"contact_info":{63"chargeback":{64"email":null,65"phone":null,66"policy_url":null67},68"refund":{69"email":null,70"phone":null,71"policy_url":null72},73"support":{74"email":null,75"phone":null,76"policy_url":null77}78}79}