back-office API apply_payments_and_credits