curl --request POST \
--url https://api.paytring.com/api/v1/subscription/subscription/fetch/receipt \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"id": "<string>",
"hash": "<string>"
}
'{
"status": true,
"subscription": {
"subscription_id": "677361288237548476",
"mer_reference_id": "TXN934579",
"amount": 500,
"initial_amount": "<unknown>",
"currency": "USD",
"subscription_status": "active",
"pg": "Transactbridge",
"customer": {
"name": "Preetam Sharma",
"email": "[email protected]",
"phone": "7027445661"
},
"notes": {
"udf1": "",
"udf2": "",
"udf3": "",
"udf4": "",
"udf5": "",
"udf6": "",
"udf8": "",
"udf9": "",
"udf10": ""
},
"billing_address": {
"firstname": "FirstName",
"lastname": "LastName",
"phone": "9999999999",
"line1": "",
"line2": "",
"city": "",
"state": "",
"country": "",
"zipcode": ""
},
"shipping_address": {
"firstname": "FirstName",
"lastname": "LastName",
"phone": "9999999999",
"line1": "",
"line2": "",
"city": "",
"state": "",
"country": "",
"zipcode": ""
}
},
"request_id": "66ebdb6678097"
}curl --request POST \
--url https://api.paytring.com/api/v1/subscription/subscription/fetch/receipt \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"id": "<string>",
"hash": "<string>"
}
'{
"status": true,
"subscription": {
"subscription_id": "677361288237548476",
"mer_reference_id": "TXN934579",
"amount": 500,
"initial_amount": "<unknown>",
"currency": "USD",
"subscription_status": "active",
"pg": "Transactbridge",
"customer": {
"name": "Preetam Sharma",
"email": "[email protected]",
"phone": "7027445661"
},
"notes": {
"udf1": "",
"udf2": "",
"udf3": "",
"udf4": "",
"udf5": "",
"udf6": "",
"udf8": "",
"udf9": "",
"udf10": ""
},
"billing_address": {
"firstname": "FirstName",
"lastname": "LastName",
"phone": "9999999999",
"line1": "",
"line2": "",
"city": "",
"state": "",
"country": "",
"zipcode": ""
},
"shipping_address": {
"firstname": "FirstName",
"lastname": "LastName",
"phone": "9999999999",
"line1": "",
"line2": "",
"city": "",
"state": "",
"country": "",
"zipcode": ""
}
},
"request_id": "66ebdb6678097"
}{
"key": "string", // Merchant key, available in dashboard profile section
"id": "string", // Merchant reference subscription ID (receipt ID)
"hash": "string" // Calculated hash for request validation
}
{
"status": true,
"subscription": {
"subscription_id": "string",
"mer_reference_id": "string",
"amount": 500,
"currency": "USD",
"subscription_status": "active",
"pg": "string",
"customer": {
"name": "string",
"email": "string",
"phone": "string"
}
},
"request_id": "string"
}
{
"status": false,
"error": {
"message": "string",
"code": 400
}
}
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
200
true
Show child attributes
"677361288237548476"
"TXN934579"
500
"USD"
"active"
"Transactbridge"
Show child attributes
"Preetam Sharma"
"7027445661"
Show child attributes
""
""
""
""
""
""
""
""
""
Show child attributes
"FirstName"
"LastName"
"9999999999"
""
""
""
""
""
""
Show child attributes
"FirstName"
"LastName"
"9999999999"
""
""
""
""
""
""
"66ebdb6678097"