Torn X-axis cable


I have accidentally tore X-axis cable and now I’m trying to fix it myself, my question is about matching color wires with the pins, so far I assume the following:

ID: blue
GND: black
B-: purple
B+: green
A+: white
A-: orange
24V: red
Limit: yellow

Can anyone either confirm or correct me if I’m wrong?

for the future reference: the pinout is correct

Pic of my spare cable…