---
updatedAt: 2025-10-23T05:33:40.000Z
---

# Amend - Retrieve by Transaction ID - 400 Bad Request

```json JSON
curl --request GET \
     --url 'https://sandboxapi.moneygram.com/amend/v1/transactions/7d83fc1a-2a90-4b5a-a138-b75be6f21234?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519' \
     --header 'X-MG-ClientRequestId: 4c79b06f-a2af-4859-82c8-28cbb0bf361b' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer cKTfJamIMU2yEEexGWb2lCx3043l'
```

```node Node
import moneygramDeveloper from '@api/moneygram-developer';

moneygramDeveloper.auth('cKTfJamIMU2yEEexGWb2lCx3043l');
moneygramDeveloper.amendTransactionLookup({
  targetAudience: 'AGENT_FACING',
  userLanguage: 'EN-US',
  agentPartnerId: '30150519',
  transactionId: '7d83fc1a-2a90-4b5a-a138-b75be6f21234',
  'X-MG-ClientRequestId': '4c79b06f-a2af-4859-82c8-28cbb0bf361b'
})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
```

```python Python
import requests

url = "https://sandboxapi.moneygram.com/amend/v1/transactions/7d83fc1a-2a90-4b5a-a138-b75be6f21234?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519"

headers = {
    "accept": "application/json",
    "X-MG-ClientRequestId": "4c79b06f-a2af-4859-82c8-28cbb0bf361b",
    "authorization": "Bearer cKTfJamIMU2yEEexGWb2lCx3043l"
}

response = requests.get(url, headers=headers)

print(response.text)
```

```java Java
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandboxapi.moneygram.com/amend/v1/transactions/7d83fc1a-2a90-4b5a-a138-b75be6f21234?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519")
  .get()
  .addHeader("accept", "application/json")
  .addHeader("X-MG-ClientRequestId", "4c79b06f-a2af-4859-82c8-28cbb0bf361b")
  .addHeader("authorization", "Bearer cKTfJamIMU2yEEexGWb2lCx3043l")
  .build();

Response response = client.newCall(request).execute();
```

```json Response Example
{
    "errors": [
        {
            "category": "IP-20000",
            "code": "697",
            "message": "Invalid Transaction ID"
        }
    ]
}
```

# 400 Bad Request

<!-- json@1-5 -->
<!-- node@1-12 -->
<!-- python@1-13 -->
<!-- java@1-11 -->

The application must call 'Retrieve a transaction' endpoint with a GET HTTP method. The application must build to handle the following response scenario.

**Retrieve a Transaction Failed | 400 Bad Request HTTP Status**

When the 'Retrieve a transaction' endpoint responds with 400 HTTP Status, specific error code/s will be returned with an array of offending fields. The application will need to resolve these errors and resubmit the request.