# Code types and rules

Alipay+ payment codes consist of four types: Alipay+ 19-digit code, CGCP code, AlipayCN code, and AlipayHK code. Each type of payment code complies with specific rules.

Refer to the table below for Alipay+ payment code types and corresponding rules.

| **Type** | **Rules** |
| --- | --- |
| Alipay+ 19-digit code | - Starts with 28. - The 3rd digit is fixed as 9, and the 6th digit from the end is fixed as 6. - Example: `2893612204263667830`. |
| CGCP code | - Starts with 25, 26, 27, 28, 29, or 30. - Contains 1-digit agreement ID (by default equals 1) and 3-digit routing numbers that are used to recognize the MPP. - Example: `281010897274821897274821`, where the routing number is `010`. |
| AlipayCN code | - Length: 16 to 24 digits. - Starts with 25, 26, 27, 28, 29, or 30. - Example: `28024456785672301`. |
| AlipayHK code | - Length: 17 to 19 digits. - Starts with 25, 26, 27, 28, 29, or 30. - Example: `280244567856723026`. |