get https://partners-staging.safegold.com/v1/transactions//fetch-invoice
The endpoint is used to get the invoice for a particular transaction.
Method Type | GET |
---|---|
Staging URL | https://partners-staging.safegold.com/v1/transactions/{tx_id}/fetch-invoice |
Production URL | https://partners.safegold.com/v1/transactions/{tx_id}/fetch-invoice |
URL Params
Parameters | Value |
---|---|
tx_id | [integer] Example: tx_id = 1011 |
Success 200 Repsonse Parameters
Field | Description |
---|---|
link | The Invoice Link for the particular transaction. |
Sample Repsonse
{
"link": “https://safegold.in/invoices/qDrtGt.pdf”
}
HTTP status 200 (success)
Failure Parameters
Status Code | Code | Code Description |
---|---|---|
HTTP Status 400 | ||
1 | Invalid Transaction ID | |
2 | Vendor does not match |
Points to Remember
Once the transaction is confined by Buy Confirm API, tx_id must be passed as a parameter to this API for generating the link to download the invoice associated with that transaction ID.