# Acme Citibank Vietnam Payments (H2H) (https://docs.tryacme.com/guides/citi-vn-payments)

> For AI agents: the documentation index is at [llms.txt](https://docs.tryacme.com/llms.txt), with every page in one file at [llms-full.txt](https://docs.tryacme.com/llms-full.txt). Each page is also available as Markdown by appending `.md` to its URL.

This describes validations / allowed data formats for Acme payments going
through Citibank Vietnam (CITIVNVXXXX). These will be validated by Acme and further validated by
the bank. These rules may be stricter than what the bank requires.

> **Channel: H2H**
>
> - Batch payments, sent to Citibank as host-to-host (H2H) files. Create them with [Create a Batch Payment](https://docs.tryacme.com/reference/post-batch-payments).
> - Single payments are not supported.

### Common Definitions [#common-definitions]

- SWIFT Character Set:
  - The 26 uppercase Latin letters `A`-`Z`
  - The 26 lowercase Latin letters `a`-`z`
  - The 10 digits `0`-`9`
  - Forward slash `/`
  - Hyphen `-`
  - Question mark `?`
  - Colon `:`
  - Left and right parentheses `(` `)`
  - Full stop `.`
  - Comma `,`
  - Single quote `'`
  - Plus sign `+`
  - Space <code style={{whiteSpace: 'pre'}}> </code>

### Citibank restrictions [#citibank-restrictions]

- For SWIFT character set: Citibank may reject fields that start with `/`, `-`, or `:`.
- `amount` is in minor units. VND has no minor unit, so `5000000` is VND 5,000,000. See [Minor units format](https://docs.tryacme.com/guides/minor-units-format).
- `paymentDate` cannot be in the past.

### Receiver address mapping: [#receiver-address-mapping]

- `receiver.address.line1` and `receiver.address.line2` each take a dedicated `AdrLine` slot when present (at most 2 `AdrLine`s).
- Every other field has its own structured field in the bank file: `city` maps to `TwnNm`, `state` to `CtrySubDvsn`, `postalCode` to `PstCd`, and `country` to `Ctry`.
- Each address field is validated on its own length limit (35 for most fields; 16 for `postalCode`). Acme does not pack city, state, postal code or country into `AdrLine`s.

## ISO 20022 Migration [#iso-20022-migration]

> **Citi address requirements**
>
> - Citi is moving to the ISO 20022 (CBPR+) address format. A receiver address must carry a town name and a country.
> - In Vietnam, Acme already enforces this on every organization. It is not turned on organization by organization:
>   - `TT`: `address.city` and `address.country` are always mandatory. `country` can be any country.
>   - `VN_RTGS`: the address is optional. If you provide it, `address.city` and `address.country` are mandatory.
>   - `VN_ACH`, `VN_NAPAS` and `BKTR`: every address field is optional.
>   - On every type except `TT`, `address.country` must be `VN` if provided.
> - Address format:
>   - At most 2 address lines: `line1` and `line2`, each up to 35 characters.
>   - `postalCode` up to 16 characters.
>   - `country` is a 2-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code, for example `VN`.
> - You don't send the sender (debtor) address. Acme fills it in from your account's setup with Citi.

## BKTR [#bktr]

Book transfer between accounts held at Citibank Vietnam (CITIVNVXXXX).

> **Important**
>
> - `receiver.bank`, `receiver.intermediaryBank`, `receiver.localRoutingIdentifier` and `bankChargeBearer` must not be sent.

| field | pattern / charset | max length | mandatory/optional |
| --- | --- | --- | --- |
| payments[N].customerReference | SWIFT (uppercase only) | 15 | O |
| payments[N].paymentDetails | SWIFT | 140 | M |
| payments[N].paymentAdviceEmails[N] | Valid email address <br /> Example: `["finance@company.com"]` | 50 per email (max 1 email) | O |
| payments[N].instructionForSenderBank | SWIFT | 35 | O |
| payments[N].receiver.name | SWIFT | 35 | M |
| payments[N].receiver.bankAccountNumber | Alphanumeric | 10 | M |
| payments[N].receiver.address.line1 | SWIFT | 35 | O |
| payments[N].receiver.address.line2 | SWIFT | 35 | O |
| payments[N].receiver.address.city | SWIFT | 35 | O |
| payments[N].receiver.address.state | SWIFT | 35 | O |
| payments[N].receiver.address.postalCode | SWIFT | 16 | O |
| payments[N].receiver.address.country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), must be `VN` | 2 | O |

## TT [#tt]

Telegraphic transfer for international payments.

> **Important**
>
> - `receiver.localRoutingIdentifier` must not be sent.
> - If `bankChargeBearer` is not sent, Acme uses `SHARED`.

| field | pattern / charset | max length | mandatory/optional |
| --- | --- | --- | --- |
| payments[N].customerReference | SWIFT (uppercase only) | 15 | O |
| payments[N].paymentDetails | SWIFT | 140 | M |
| payments[N].paymentAdviceEmails[N] | Valid email address <br /> Example: `["finance@company.com"]` | 50 per email (max 1 email) | O |
| payments[N].instructionForSenderBank | SWIFT | 35 | O |
| payments[N].bankChargeBearer | `SENDER` / `RECEIVER` / `SHARED` | | O |
| payments[N].receiver.name | SWIFT | 35 | M |
| payments[N].receiver.bank | BIC (8 or 11 characters, [ISO 9362](https://en.wikipedia.org/wiki/ISO_9362)) | 11 | M |
| payments[N].receiver.intermediaryBank | BIC (8 or 11 characters) | 11 | O |
| payments[N].receiver.bankAccountNumber | Alphanumeric | 34 | M |
| payments[N].receiver.address.line1 | SWIFT | 35 | O |
| payments[N].receiver.address.line2 | SWIFT | 35 | O |
| payments[N].receiver.address.city | SWIFT | 35 | M |
| payments[N].receiver.address.state | SWIFT | 35 | O |
| payments[N].receiver.address.postalCode | SWIFT | 16 | O |
| payments[N].receiver.address.country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | 2 | M |

## VN_ACH [#vn_ach]

Vietnam domestic ACH transfer.

> **Important**
>
> - Currency must be **VND only**.
> - `paymentDate` cannot be in the past. Maximum 20 days forward.
> - `receiver.bank`, `receiver.intermediaryBank`, `instructionForSenderBank` and `bankChargeBearer` must not be sent.

| field | pattern / charset | max length | mandatory/optional |
| --- | --- | --- | --- |
| payments[N].customerReference | SWIFT (uppercase only) | 15 | O |
| payments[N].paymentDetails | SWIFT | 105 | O |
| payments[N].paymentAdviceEmails[N] | Valid email address <br /> Example: `["finance@company.com"]` | 50 per email (max 1 email) | O |
| payments[N].receiver.name | SWIFT | 70 | M |
| payments[N].receiver.localRoutingIdentifier | Numeric (8 digits exactly) | 8 | M |
| payments[N].receiver.bankAccountNumber | Alphanumeric | 34 | M |
| payments[N].receiver.address.line1 | SWIFT | 35 | O |
| payments[N].receiver.address.line2 | SWIFT | 35 | O |
| payments[N].receiver.address.city | SWIFT | 35 | O |
| payments[N].receiver.address.state | SWIFT | 35 | O |
| payments[N].receiver.address.postalCode | SWIFT | 16 | O |
| payments[N].receiver.address.country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), must be `VN` | 2 | O |

## VN_RTGS [#vn_rtgs]

Vietnam domestic RTGS transfer for high-value payments.

> **Important**
>
> - Currency must be **VND only**.
> - If `address` is provided, both `city` and `country` are mandatory.
> - `receiver.bank` and `receiver.intermediaryBank` must not be sent.
> - If `bankChargeBearer` is not sent, Acme uses `SHARED`.

| field | pattern / charset | max length | mandatory/optional |
| --- | --- | --- | --- |
| payments[N].customerReference | SWIFT (uppercase only) | 15 | O |
| payments[N].paymentDetails | SWIFT | 140 | M |
| payments[N].paymentAdviceEmails[N] | Valid email address <br /> Example: `["finance@company.com"]` | 50 per email (max 1 email) | O |
| payments[N].instructionForSenderBank | SWIFT | 35 | O |
| payments[N].bankChargeBearer | `SENDER` / `RECEIVER` / `SHARED` | | O |
| payments[N].receiver.name | SWIFT | 35 | M |
| payments[N].receiver.localRoutingIdentifier | Numeric (8 digits exactly) | 8 | M |
| payments[N].receiver.bankAccountNumber | Alphanumeric | 34 | M |
| payments[N].receiver.address.line1 | SWIFT | 35 | O |
| payments[N].receiver.address.line2 | SWIFT | 35 | O |
| payments[N].receiver.address.city | SWIFT | 35 | Conditional: M if `address` is provided |
| payments[N].receiver.address.state | SWIFT | 35 | O |
| payments[N].receiver.address.postalCode | SWIFT | 16 | O |
| payments[N].receiver.address.country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), must be `VN` | 2 | Conditional: M if `address` is provided |

## VN_NAPAS [#vn_napas]

Vietnam domestic instant transfer through NAPAS.

> **Important**
>
> - Currency must be **VND only**.
> - `paymentDate` cannot be in the past. Maximum 35 days forward.
> - Most text fields must be in uppercase, including `paymentAdviceEmails`.
> - `instructionForSenderBank` is kept with the payment, but Citi doesn't receive it.

| field | pattern / charset | max length | mandatory/optional |
| --- | --- | --- | --- |
| payments[N].customerReference | SWIFT (uppercase only) | 16 | O |
| payments[N].paymentDetails | SWIFT (uppercase only) | 140 | M |
| payments[N].paymentAdviceEmails[N] | Valid email address, uppercase <br /> Example: `["FINANCE@COMPANY.COM"]` | 50 per email (max 1 email) | O |
| payments[N].instructionForSenderBank | SWIFT | 35 | O |
| payments[N].receiver.name | SWIFT (uppercase only) | 140 | M |
| payments[N].receiver.bankName | SWIFT | 35 | M |
| payments[N].receiver.localRoutingIdentifier | Alphanumeric (8 characters exactly) | 8 | M |
| payments[N].receiver.bankAccountNumber | Alphanumeric (uppercase only) | 34 | M |
| payments[N].receiver.address.line1 | SWIFT (uppercase only) | 35 | O |
| payments[N].receiver.address.line2 | SWIFT (uppercase only) | 35 | O |
| payments[N].receiver.address.city | SWIFT (uppercase only) | 35 | O |
| payments[N].receiver.address.state | SWIFT (uppercase only) | 35 | O |
| payments[N].receiver.address.postalCode | SWIFT (uppercase only) | 16 | O |
| payments[N].receiver.address.country | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), must be `VN` | 2 | O |

## Bank references [#bank-references]

`bankReference` is `AcctSvcrRef`, else `ClrSysRef`, from Citi's status report on the payment. `bankReferences` lists every reference Citi sent, keyed by Citi's field name: `AcctSvcrRef`, `ClrSysRef` and `StsId`, as Citi sends them.

On your Citi statement: the line shows a different Citi reference. Find the payment by your `customerReference`.

What the names mean:

- `AcctSvcrRef`: Citi's own reference for the transaction.
- `ClrSysRef`: the clearing system's reference.
- `StsId`: the id of Citi's status entry.

A rejected payment keeps the references from the report that rejected it.

A completed payment sent as a file returns:

```json
{
  "bankReference": "01720322200000001",
  "bankReferences": {
    "AcctSvcrRef": "01720322200000001"
  }
}
```
