aps code