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

# Amend - Modify Recevier's Name - Provide Amend ID

```json JSON
curl --request PATCH \
     --url 'https://sandboxapi.moneygram.com/amend/v1/transactions/7d83fc1a-2a90-4b5a-a138-b75be6f2b356/receiver/name?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519' \
     --header 'X-MG-ClientRequestId: 4c79b06f-a2af-4859-82c8-28cbb0bf361b' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer HGxpf3iMaZlqVOY3i5qTZ2gLI5G3' \
     --header 'content-type: application/json' \
     --data '
{
  "receiver": {
    "name": {
      "firstName": "Palua",
      "lastName": "Patel"
    }
  },
  "amendId": "301505191E17422399650427089969"
}
'
```

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

moneygramDeveloper.auth('HGxpf3iMaZlqVOY3i5qTZ2gLI5G3');
moneygramDeveloper.amendReceiverName({
  receiver: {
    name: {firstName: 'Palua', lastName: 'Patel'}
  },
  amendId: '301505191E17422399650427089969'
}, {
  targetAudience: 'AGENT_FACING',
  userLanguage: 'EN-US',
  agentPartnerId: '30150519',
  transactionId: '7d83fc1a-2a90-4b5a-a138-b75be6f2b356',
  '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-b75be6f2b356/receiver/name?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519"

payload = {
    "receiver": { "name": {
            "firstName": "Palua",
            "lastName": "Patel"
        } },
    "amendId": "301505191E17422399650427089969"
}
headers = {
    "accept": "application/json",
    "X-MG-ClientRequestId": "4c79b06f-a2af-4859-82c8-28cbb0bf361b",
    "content-type": "application/json",
    "authorization": "Bearer HGxpf3iMaZlqVOY3i5qTZ2gLI5G3"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

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

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"receiver\":{\"name\":{\"firstName\":\"Palua\",\"lastName\":\"Patel\"}},\"amendId\":\"301505191E17422399650427089969\"}");
Request request = new Request.Builder()
  .url("https://sandboxapi.moneygram.com/amend/v1/transactions/7d83fc1a-2a90-4b5a-a138-b75be6f2b356/receiver/name?targetAudience=AGENT_FACING&userLanguage=EN-US&agentPartnerId=30150519")
  .patch(body)
  .addHeader("accept", "application/json")
  .addHeader("X-MG-ClientRequestId", "4c79b06f-a2af-4859-82c8-28cbb0bf361b")
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Bearer HGxpf3iMaZlqVOY3i5qTZ2gLI5G3")
  .build();

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

```json Response Example
{"success":true}
```

# Provide Amend ID

<!-- json@15 -->
<!-- node@8 -->
<!-- python@10 -->
<!-- java@4 -->

To modify the transaction, it is required to pass the amendId which was returned on the previous <a href="https://moneygram-group.readme.io/moneygram-developer/docs/retrieve-a-transaction-amend" target="_blank">Retrieve a Transaction API</a> response and all other required fields.