Edition 2016 Upd. 2021
Multiple debit advice message
5. Segments Layout
 
Segment number:
20
-
M
9999
-
A group of segments containing information details which are relevant to all transactions specified.
-
C
5
-
A group of segments providing full details of all charges or allowances, and associated taxes, that apply to the total amount, together with information as to who bears the charges and to which account they have been directed. Where charges are subject to taxation this may also be specified.
-
C
6
-
A group of segments providing a detailed breakdown of all charges (or allowances) and associated charges (or allowances).
-
C
1
-
 
Function:
 
To specify currencies used in the transaction and relevant details for the rate of exchange.
 
EDIFACT
EAN
*
Description
C504
CURRENCY DETAILS
C
R
   
Currency usage code qualifier
M
an..3
M
*
=
Reference currency
Currency identification code
C
an..3
R
 
ISO 4217 three alpha
Currency type code qualifier
C
an..3
R
*
=
Payment currency
6348
Currency rate value
C
n..4
D
   
C504
CURRENCY DETAILS
C
D
 
The second occurrence of this composite is only used if a target currency is being specified.
Currency usage code qualifier
M
an..3
M
*
=
Target currency
Currency identification code
C
an..3
R
 
ISO 4217 three alpha
Currency type code qualifier
C
an..3
R
*
=
Invoicing currency
=
Charge calculation currency
6348
Currency rate value
C
n..4
D
   
5402
Currency exchange rate
C
n..12
D
 
The rate of exchange which applies to the currency.
The rate of exchange is only used if a target currency has been identified in the second occurrence of C504.
Exchange rate currency market identifier
C
an..3
N
   
Segment Notes:
This segment is used to provide the exchange rate related to the allowances or charges.
The CUX segment is mandatory for international exchanges.
When specifying Reference and Target Currencies for international trade, one occurrence of CUX is all that is required. The reference currency is identified in the first occurrence of composite C504, with the target currency specified in the second occurrence of C504. The rate of exchange between the two is detailed in DE 5402.
The general rule for calculating rate of exchange is as follows;
Reference Currency multiplied by Rate = Target Currency.

Example:
CUX+2:EUR:11+3:USD:4+0.90243'
For an international transaction,  the payment currency is identified as being Euro with the Invoicing currency as US Dollar.  The rate of exchange between the two is 0.90243 Euro to 1 US Dollar.

Dependency Notes:
6348: This data element are only used when a rate of exchange is provided in data element 5402. When a rate of exchange is provided then at least one currency rate base must be specified.
© Copyright GS1
Edition 2016 Upd. 2021